blob: c47ad970023c3c713444997b0c9a806dc88931b5 (
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.9.6.10
DISTVERSIONPREFIX= v
#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:lang/gawk
RUN_DEPENDS= bash:shells/bash \
gawk:lang/gawk
TEST_DEPENDS= gawk:lang/gawk
ALL_TARGET= build
FRIBIDI_RUN_DEPENDS= fribidi:converters/fribidi
GH_ACCOUNT= soimort
GH_PROJECT= translate-shell
OPTIONS_DEFINE= DOCS FRIBIDI READLINE TEXT2SPEECH
PLIST_FILES= bin/trans man/man1/trans.1.gz
READLINE_RUN_DEPENDS= rlwrap:devel/rlwrap
TEXT2SPEECH_DESC= Enable Text-to-Speech functionality via espeak
TEXT2SPEECH_RUN_DEPENDS= espeak: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>
|