# Created by: Nicola Vitale # $FreeBSD$ PORTNAME= google-translate-cli PORTVERSION= 0.8.19 #PORTREVISION= 0 CATEGORIES= textproc MAINTAINER= nivit@FreeBSD.org COMMENT= Google Translate to serve as a command line tool LICENSE= BW LICENSE_NAME= Beerware LICENSE_TEXT= http://www.sax.de/~joerg/beerware-license.txt 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 ALL_TARGET= build FRIBIDI_RUN_DEPENDS= fribidi:${PORTSDIR}/converters/fribidi GH_ACCOUNT= soimort GH_COMMIT= ae2696e GH_PROJECT= translate-shell GH_TAGNAME= ${GH_COMMIT} OPTIONS_DEFINE= DOCS FRIBIDI READLINE TEXT2SPEECH PLIST_FILES= bin/trans man/man1/trans.1.gz 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 .include do-install: ${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) .include