summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-09-03 18:12:18 +0000
committerwiz <wiz@pkgsrc.org>2017-09-03 18:12:18 +0000
commit3923c5f749a4de8bb9123611c0816427e43f3a63 (patch)
treebf27fcdb4a57fe4afd247a838c989a7ceb267c77 /textproc
parent946e0719fd22add6de2256faccc6ee7b84b9d64e (diff)
downloadpkgsrc-3923c5f749a4de8bb9123611c0816427e43f3a63.tar.gz
Import translate-shell-0.9.6.4 as textproc/translate-shell.
Packaged for wip by Yorick Hardy and myself. Translate Shell (formerly Google Translate CLI) is a command-line translator powered by Google Translate (default), Bing Translator, and Yandex.Translate. It gives you easy access to one of these translation engines your terminal: $ trans 'Saluton, Mondo!' Saluton, Mondo! Hello, World! Translations of Saluton, Mondo! [ Esperanto -> English ] Saluton , Hello, Mondo ! World!
Diffstat (limited to 'textproc')
-rw-r--r--textproc/translate-shell/DESCR15
-rw-r--r--textproc/translate-shell/Makefile35
-rw-r--r--textproc/translate-shell/PLIST3
-rw-r--r--textproc/translate-shell/distinfo6
4 files changed, 59 insertions, 0 deletions
diff --git a/textproc/translate-shell/DESCR b/textproc/translate-shell/DESCR
new file mode 100644
index 00000000000..7861647c05e
--- /dev/null
+++ b/textproc/translate-shell/DESCR
@@ -0,0 +1,15 @@
+Translate Shell (formerly Google Translate CLI) is a command-line translator
+powered by Google Translate (default), Bing Translator, and Yandex.Translate.
+It gives you easy access to one of these translation engines your terminal:
+
+$ trans 'Saluton, Mondo!'
+Saluton, Mondo!
+
+Hello, World!
+
+Translations of Saluton, Mondo!
+[ Esperanto -> English ]
+Saluton ,
+ Hello,
+Mondo !
+ World!
diff --git a/textproc/translate-shell/Makefile b/textproc/translate-shell/Makefile
new file mode 100644
index 00000000000..93a26e4f23b
--- /dev/null
+++ b/textproc/translate-shell/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2017/09/03 18:12:18 wiz Exp $
+
+DISTNAME= translate-shell-0.9.6.4
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=soimort/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://www.soimort.org/translate-shell/
+COMMENT= Command-line translator
+LICENSE= unlicense
+
+WRKSRC= ${WRKDIR}/translate-shell-${PKGVERSION_NOREV}
+USE_LANGUAGES= # none
+USE_TOOLS+= bash:run gawk:run
+
+DEPENDS+= rlwrap-[0-9]*:../../misc/rlwrap
+
+SUBST_CLASSES+= shebang
+SUBST_FILES.shebang= build/trans
+SUBST_SED.shebang= -e 's,/usr/bin/env bash,${BASH},'
+SUBST_STAGE.shebang= post-build
+
+BUILD_TARGET= build
+
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/trans ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/man/trans.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../audio/mpg123/buildlink3.mk"
+.include "../../converters/fribidi/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/translate-shell/PLIST b/textproc/translate-shell/PLIST
new file mode 100644
index 00000000000..7d465fbe31c
--- /dev/null
+++ b/textproc/translate-shell/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/03 18:12:18 wiz Exp $
+bin/trans
+man/man1/trans.1
diff --git a/textproc/translate-shell/distinfo b/textproc/translate-shell/distinfo
new file mode 100644
index 00000000000..2f65a47b9cf
--- /dev/null
+++ b/textproc/translate-shell/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/09/03 18:12:18 wiz Exp $
+
+SHA1 (translate-shell-0.9.6.4.tar.gz) = 968b20c09be5b6b28366ee5afbcb495e0f9d5365
+RMD160 (translate-shell-0.9.6.4.tar.gz) = 2d5e32ee48edde9e5d3c640e787beb9f57106032
+SHA512 (translate-shell-0.9.6.4.tar.gz) = 98c4a329794d38a5d22d98bf7bb821f1adc3e42dac96d2fd791e7cf64d785458d0f6006e83b21497f259525b1a70f306ab69090d3a12996610f742323a371147
+Size (translate-shell-0.9.6.4.tar.gz) = 69788 bytes