pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/translate-shell Import translate-shell-0.9.6....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8526bb84bd50
branches:  trunk
changeset: 367538:8526bb84bd50
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 03 18:12:18 2017 +0000

description:
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:

 textproc/translate-shell/DESCR    |  15 +++++++++++++++
 textproc/translate-shell/Makefile |  35 +++++++++++++++++++++++++++++++++++
 textproc/translate-shell/PLIST    |   3 +++
 textproc/translate-shell/distinfo |   6 ++++++
 4 files changed, 59 insertions(+), 0 deletions(-)

diffs (75 lines):

diff -r 91e12740a5b1 -r 8526bb84bd50 textproc/translate-shell/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/translate-shell/DESCR    Sun Sep 03 18:12:18 2017 +0000
@@ -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 -r 91e12740a5b1 -r 8526bb84bd50 textproc/translate-shell/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/translate-shell/Makefile Sun Sep 03 18:12:18 2017 +0000
@@ -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@localhost
+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 -r 91e12740a5b1 -r 8526bb84bd50 textproc/translate-shell/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/translate-shell/PLIST    Sun Sep 03 18:12:18 2017 +0000
@@ -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 -r 91e12740a5b1 -r 8526bb84bd50 textproc/translate-shell/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/translate-shell/distinfo Sun Sep 03 18:12:18 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index