blob: 476389a67c7f1952c277abcf7d71bd3f2340902a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $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_PROJECT= translate-shell
GH_TAGNAME= ae2696e
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 <bsd.port.options.mk>
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 <bsd.port.mk>
|