aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2014-08-25 06:36:16 +0800
committernivit <nivit@FreeBSD.org>2014-08-25 06:36:16 +0800
commit8535f63ee3a6128572b479de9320c98b59a02454 (patch)
tree2f270a01db286ec7d7aaa49ad712816dc4ef35bf /textproc
parent5bf43f8c9aac7a1b0d2115694950b319f057b0f4 (diff)
downloadfreebsd-ports-gnome-8535f63ee3a6128572b479de9320c98b59a02454.tar.gz
freebsd-ports-gnome-8535f63ee3a6128572b479de9320c98b59a02454.tar.zst
freebsd-ports-gnome-8535f63ee3a6128572b479de9320c98b59a02454.zip
- Unbreak by updating to 0.8.19
- Fix LICENSE_PERMS - Add lang/gawk to (BUILD|TEST)_DEPENDS - Remove conflicts with misc/translate - Add 3 new options (default off) to support RTL languages, enable text-to-speech functionality and readline-style editing and history in interactive mode - Remove pkg-plist Build Log: https://redports.org/buildarchive/20140824220804-65990/
Diffstat (limited to 'textproc')
-rw-r--r--textproc/google-translate-cli/Makefile61
-rw-r--r--textproc/google-translate-cli/distinfo4
-rw-r--r--textproc/google-translate-cli/pkg-plist7
3 files changed, 22 insertions, 50 deletions
diff --git a/textproc/google-translate-cli/Makefile b/textproc/google-translate-cli/Makefile
index bcbdb37099dd..9ba818e47f29 100644
--- a/textproc/google-translate-cli/Makefile
+++ b/textproc/google-translate-cli/Makefile
@@ -2,71 +2,50 @@
# $FreeBSD$
PORTNAME= google-translate-cli
-PORTVERSION= 0.0.1
+PORTVERSION= 0.8.19
#PORTREVISION= 0
CATEGORIES= textproc
MAINTAINER= nivit@FreeBSD.org
COMMENT= Google Translate to serve as a command line tool
-BROKEN= Checksum and size mismatch, strange LICENSE_PERMS for Beerware
-
LICENSE= BW
LICENSE_NAME= Beerware
LICENSE_TEXT= http://www.sax.de/~joerg/beerware-license.txt
-LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
+ gawk:${PORTSDIR}/lang/gawk
+TEST_DEPENDS= gawk:${PORTSDIR}/lang/gawk
-RUN_DEPENDS= gawk:${PORTSDIR}/lang/gawk
+ALL_TARGET= build
-# same binary file bin/translate
-CONFLICTS_INSTALL= translate-*
+FRIBIDI_RUN_DEPENDS= fribidi:${PORTSDIR}/converters/fribidi
GH_ACCOUNT= soimort
-GH_COMMIT= 2f59fc6
+GH_COMMIT= ae2696e
+GH_PROJECT= translate-shell
GH_TAGNAME= ${GH_COMMIT}
-gawk_CMD= ${SETENV} -S gawk
-gawk_OLD_CMD= /usr/bin/gawk
-MARKDOWN_CMD= ${LOCALBASE}/bin/markdown
+OPTIONS_DEFINE= DOCS FRIBIDI READLINE TEXT2SPEECH
-OPTIONS_DEFINE= DOCS
+PLIST_FILES= bin/trans man/man1/trans.1.gz
-SHEBANG_FILES= ${WRKSRC}/translate.awk
-SHEBANG_LANG= gawk
+READLINE_RUN_DEPENDS= rlwrap:${PORTSDIR}/devel/rlwrap
+
+TEXT2SPEECH_DESC= Enable Text-to-Speech functionality via espeak
+TEXT2SPEECH_RUN_DEPENDS= espeak:${PORTSDIR}/audio/espeak
USE_GITHUB= yes
-USES= shebangfix
.include <bsd.port.options.mk>
-post-patch:
- @${REINPLACE_CMD} -e 's,^gawk,${LOCALBASE}/bin/&,1' \
- -e 's,translate.awk,${DATADIR}/&,1' ${WRKSRC}/translate
-
-.if !${PORT_OPTIONS:MDOCS}
-NO_BUILD= yes
-.else
-BUILD_DEPENDS+= markdown:${PORTSDIR}/textproc/discount
-
-do-build:
- @(cd ${WRKSRC} && \
- ${MARKDOWN_CMD} README.md > README.tmp && \
- echo "<!DOCTYPE html><html><head><meta charset="UTF-8"><title>${COMMENT}</title></head><body>" | \
- ${CAT} - ${WRKSRC}/README.tmp $(${ECHO_CMD} "</body></html>") > README.html)
-
-post-install:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR}
-.endif
-
do-install:
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/translate ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/translate.awk ${STAGEDIR}${DATADIR}
- ${LN} -sf ${DATADIR}/translate ${STAGEDIR}${PREFIX}/bin/translate
- ${LN} -sf ${DATADIR}/translate ${STAGEDIR}${PREFIX}/bin/trs
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/trans ${STAGEDIR}${PREFIX}/bin/trans
+ ${INSTALL_MAN} ${WRKSRC}/man/trans.1 ${STAGEDIR}${MANPREFIX}/man/man1/trans.1
regression-test test: build
- @(cd ${WRKSRC} ; ${MAKE} test)
+ @(cd ${WRKSRC} && ${MAKE} test)
.include <bsd.port.mk>
diff --git a/textproc/google-translate-cli/distinfo b/textproc/google-translate-cli/distinfo
index ff2d6fdadadb..0d02fc16ba5d 100644
--- a/textproc/google-translate-cli/distinfo
+++ b/textproc/google-translate-cli/distinfo
@@ -1,2 +1,2 @@
-SHA256 (google-translate-cli-0.0.1.tar.gz) = ba778fadbbd91f93b431bfc769b6ea537931cd5475f2c811b024b4fe7dc70a02
-SIZE (google-translate-cli-0.0.1.tar.gz) = 4741
+SHA256 (google-translate-cli-0.8.19.tar.gz) = 807e94e4b63ba1b81fa9b089a2ab619afe231ef990dff0feb24edd01be9f45d6
+SIZE (google-translate-cli-0.8.19.tar.gz) = 25881
diff --git a/textproc/google-translate-cli/pkg-plist b/textproc/google-translate-cli/pkg-plist
deleted file mode 100644
index 170abdfa934c..000000000000
--- a/textproc/google-translate-cli/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-bin/translate
-bin/trs
-%%PORTDOCS%%%%DOCSDIR%%/README.html
-%%DATADIR%%/translate
-%%DATADIR%%/translate.awk
-@dirrmtry %%DATADIR%%
-%%PORTDOCS%%@dirrmtry %%DOCSDIR%%