pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/translate-shell



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Sep  3 18:12:18 UTC 2017

Added Files:
        pkgsrc/textproc/translate-shell: DESCR Makefile PLIST distinfo

Log Message:
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!


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/translate-shell/DESCR \
    pkgsrc/textproc/translate-shell/Makefile \
    pkgsrc/textproc/translate-shell/PLIST \
    pkgsrc/textproc/translate-shell/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/textproc/translate-shell/DESCR
diff -u /dev/null pkgsrc/textproc/translate-shell/DESCR:1.1
--- /dev/null   Sun Sep  3 18:12:18 2017
+++ pkgsrc/textproc/translate-shell/DESCR       Sun Sep  3 18:12:18 2017
@@ -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!
Index: pkgsrc/textproc/translate-shell/Makefile
diff -u /dev/null pkgsrc/textproc/translate-shell/Makefile:1.1
--- /dev/null   Sun Sep  3 18:12:18 2017
+++ pkgsrc/textproc/translate-shell/Makefile    Sun Sep  3 18:12:18 2017
@@ -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"
Index: pkgsrc/textproc/translate-shell/PLIST
diff -u /dev/null pkgsrc/textproc/translate-shell/PLIST:1.1
--- /dev/null   Sun Sep  3 18:12:18 2017
+++ pkgsrc/textproc/translate-shell/PLIST       Sun Sep  3 18:12:18 2017
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/03 18:12:18 wiz Exp $
+bin/trans
+man/man1/trans.1
Index: pkgsrc/textproc/translate-shell/distinfo
diff -u /dev/null pkgsrc/textproc/translate-shell/distinfo:1.1
--- /dev/null   Sun Sep  3 18:12:18 2017
+++ pkgsrc/textproc/translate-shell/distinfo    Sun Sep  3 18:12:18 2017
@@ -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