Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2014 18:41:18 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r366338 - branches/2014Q3/textproc/google-translate-cli
Message-ID:  <201408271841.s7RIfIsS015551@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Aug 27 18:41:17 2014
New Revision: 366338
URL: http://svnweb.freebsd.org/changeset/ports/366338
QAT: https://qat.redports.org/buildarchive/r366338/

Log:
  MFH: r366021
  
  - 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/

Deleted:
  branches/2014Q3/textproc/google-translate-cli/pkg-plist
Modified:
  branches/2014Q3/textproc/google-translate-cli/Makefile
  branches/2014Q3/textproc/google-translate-cli/distinfo   (contents, props changed)
Directory Properties:
  branches/2014Q3/   (props changed)

Modified: branches/2014Q3/textproc/google-translate-cli/Makefile
==============================================================================
--- branches/2014Q3/textproc/google-translate-cli/Makefile	Wed Aug 27 18:24:04 2014	(r366337)
+++ branches/2014Q3/textproc/google-translate-cli/Makefile	Wed Aug 27 18:41:17 2014	(r366338)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	google-translate-cli
-PORTVERSION=	0.0.1
+PORTVERSION=	0.8.19
 #PORTREVISION=	0
 CATEGORIES=	textproc
 
@@ -12,59 +12,40 @@ COMMENT=	Google Translate to serve as a 
 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
 
-RUN_DEPENDS=	gawk:${PORTSDIR}/lang/gawk
+BUILD_DEPENDS=	gawk:${PORTSDIR}/lang/gawk
+RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
+		gawk:${PORTSDIR}/lang/gawk
+TEST_DEPENDS=	gawk:${PORTSDIR}/lang/gawk
 
-# same binary file bin/translate
-CONFLICTS_INSTALL=	translate-*
+ALL_TARGET=	build
+
+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
+
+PLIST_FILES=	bin/trans man/man1/trans.1.gz
 
-OPTIONS_DEFINE=	DOCS
+READLINE_RUN_DEPENDS=	rlwrap:${PORTSDIR}/devel/rlwrap
 
-SHEBANG_FILES=	${WRKSRC}/translate.awk
-SHEBANG_LANG=	gawk
+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>

Modified: branches/2014Q3/textproc/google-translate-cli/distinfo
==============================================================================
--- branches/2014Q3/textproc/google-translate-cli/distinfo	Wed Aug 27 18:24:04 2014	(r366337)
+++ branches/2014Q3/textproc/google-translate-cli/distinfo	Wed Aug 27 18:41:17 2014	(r366338)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408271841.s7RIfIsS015551>