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!
This commit is contained in:
parent
8ef25c6c87
commit
2a377ca888
4 changed files with 59 additions and 0 deletions
15
textproc/translate-shell/DESCR
Normal file
15
textproc/translate-shell/DESCR
Normal file
|
@ -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!
|
35
textproc/translate-shell/Makefile
Normal file
35
textproc/translate-shell/Makefile
Normal file
|
@ -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"
|
3
textproc/translate-shell/PLIST
Normal file
3
textproc/translate-shell/PLIST
Normal file
|
@ -0,0 +1,3 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2017/09/03 18:12:18 wiz Exp $
|
||||
bin/trans
|
||||
man/man1/trans.1
|
6
textproc/translate-shell/distinfo
Normal file
6
textproc/translate-shell/distinfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue