pkgsrc-WIP-changes archive

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

translate-shell: import translate-shell-0.9.3.2



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Fri Apr 22 23:11:35 2016 +0200
Changeset:	1e33a929cf95adbc2d05c2c0be8b9f5a7f2531c3

Modified Files:
	Makefile
Added Files:
	translate-shell/DESCR
	translate-shell/Makefile
	translate-shell/PLIST
	translate-shell/distinfo

Log Message:
translate-shell: import translate-shell-0.9.3.2

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e33a929cf95adbc2d05c2c0be8b9f5a7f2531c3

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

diffstat:
 Makefile                 |  1 +
 translate-shell/DESCR    | 15 +++++++++++++++
 translate-shell/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
 translate-shell/PLIST    |  3 +++
 translate-shell/distinfo |  6 ++++++
 5 files changed, 63 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 53d9697..acbfd85 100644
--- a/Makefile
+++ b/Makefile
@@ -4065,6 +4065,7 @@ SUBDIR+=	trac-plugins-TimingAndEstimation
 SUBDIR+=	trac-plugins-screenshots
 SUBDIR+=	trac-plugins-spamfilter
 SUBDIR+=	trackballs
+SUBDIR+=	translate-shell
 SUBDIR+=	trayion
 SUBDIR+=	treetool
 SUBDIR+=	treeviewx
diff --git a/translate-shell/DESCR b/translate-shell/DESCR
new file mode 100644
index 0000000..7861647
--- /dev/null
+++ b/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/translate-shell/Makefile b/translate-shell/Makefile
new file mode 100644
index 0000000..e4cb874
--- /dev/null
+++ b/translate-shell/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	translate-shell
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}-0.9.3.2
+CATEGORIES=	textproc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=soimort/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	${MASTER_SITE_GITHUB:=soimort/translate-shell/}
+COMMENT=	Command-line translator
+LICENSE=	public-domain
+
+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/translate-shell/PLIST b/translate-shell/PLIST
new file mode 100644
index 0000000..b9c662c
--- /dev/null
+++ b/translate-shell/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/trans
+man/man1/trans.1
diff --git a/translate-shell/distinfo b/translate-shell/distinfo
new file mode 100644
index 0000000..d3cf572
--- /dev/null
+++ b/translate-shell/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (translate-shell/v0.9.3.2.tar.gz) = 4fe218065c3f079023a8dabf8754e991300de566
+RMD160 (translate-shell/v0.9.3.2.tar.gz) = 1ae0634b04ab1eb6755ae9aad0a2c346a57cc16c
+SHA512 (translate-shell/v0.9.3.2.tar.gz) = 15e8fa2d347303f1158d1a44564084030bbcf741cbde06b142f4ac29dd22fb0d1c73bf6d224772425cd733cc23eba87b6805ea27816dd018b1440c836ee6db04
+Size (translate-shell/v0.9.3.2.tar.gz) = 67175 bytes


Home | Main Index | Thread Index | Old Index