summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Erki <erkiferenc@gmail.com>2018-03-26 06:47:38 +0200
committerPatrice Clement <monsieurp@gentoo.org>2018-04-09 00:42:04 +0200
commit408d48af944b785f2fa98f219cb3635d3b99bdf9 (patch)
tree359b809f81f8844eb6dffdef6c500e386d28e4e3 /app-i18n/translate-shell
parentx11-plugins/gkrellm-imonc-0.2-r1: fix HOMEPAGE. (diff)
downloadgentoo-408d48af944b785f2fa98f219cb3635d3b99bdf9.tar.gz
gentoo-408d48af944b785f2fa98f219cb3635d3b99bdf9.tar.bz2
gentoo-408d48af944b785f2fa98f219cb3635d3b99bdf9.zip
app-i18n/translate-shell: version bump to 0.9.6.7.
Closes: https://bugs.gentoo.org/652150 Closes: https://github.com/gentoo/gentoo/pull/7767 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-i18n/translate-shell')
-rw-r--r--app-i18n/translate-shell/Manifest1
-rw-r--r--app-i18n/translate-shell/files/translate-shell-0.9.6.7-remove-online-tests.patch44
-rw-r--r--app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild37
3 files changed, 82 insertions, 0 deletions
diff --git a/app-i18n/translate-shell/Manifest b/app-i18n/translate-shell/Manifest
index 81526c27abec..80db0ba2c4c4 100644
--- a/app-i18n/translate-shell/Manifest
+++ b/app-i18n/translate-shell/Manifest
@@ -1 +1,2 @@
DIST translate-shell-0.9.6.6.tar.gz 73189 BLAKE2B ad4de403f2c95a1e4de5c963cb017f5a744f08d3bb8256dcc22f28c0916f6a0e693bce171a5dc500de5353c954bab7681f1227df9e48be286ad5aa07c5d06fa4 SHA512 c5451e537f44e325ee2f59d54942f91b8e2ccc0e322c42a2c4a0e98b8a933fe0630798a45e6f587ad5aee2cbb092204710ae36779c94b8333376a8072678d868
+DIST translate-shell-0.9.6.7.tar.gz 74290 BLAKE2B 640e895b7f05c214a3f6fefab98fc85345fa155c29126bc9f14282e345f574cfa077ff7a55e5f1ed51fad3dbd50710a3831b894cabe48d16ce3d903fd63b2f47 SHA512 2648ea5adccd1ba19438bc683b41b7d3c4e1b3fcd79f9273a17ade90df6184a60d0f342f1745857ffb8d5457115bd60d0239a3e77343866a25b64529904ab416
diff --git a/app-i18n/translate-shell/files/translate-shell-0.9.6.7-remove-online-tests.patch b/app-i18n/translate-shell/files/translate-shell-0.9.6.7-remove-online-tests.patch
new file mode 100644
index 000000000000..f68fec1fdae1
--- /dev/null
+++ b/app-i18n/translate-shell/files/translate-shell-0.9.6.7-remove-online-tests.patch
@@ -0,0 +1,44 @@
+diff --git a/Makefile b/Makefile
+index bb932fc..622e136 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,10 +27,6 @@ test: build
+
+ check: test
+ $(BUILDDIR)/$(COMMAND) -V
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b 忍者`" = 'Ninja' ] &&\
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b -e bing 忍者`" = 'Ninja' ] &&\
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b -e yandex 忍者`" = 'Ninja' ] &&\
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b -e deepl Ninja`" = 'Ninja' ]
+
+ install: build
+ @mkdir -p $(DESTDIR)$(PREFIX)/bin &&\
+diff --git a/test/TestUtils.awk b/test/TestUtils.awk
+index 08bb2e9..3465327 100644
+--- a/test/TestUtils.awk
++++ b/test/TestUtils.awk
+@@ -30,24 +30,6 @@ BEGIN {
+ assertTrue(newerVersion("2", "1.9.9999"))
+ }
+
+- T("curl()", 1)
+- {
+- delete tokens; delete ast
+- tokenize(tokens, curl("https://httpbin.org/get"))
+- parseJson(ast, tokens)
+- assertEqual(unparameterize(ast[0 SUBSEP "url"]),
+- "https://httpbin.org/get")
+- }
+-
+- T("curlPost()", 1)
+- {
+- delete tokens; delete ast
+- tokenize(tokens, curlPost("https://httpbin.org/post", "fizz=buzz"))
+- parseJson(ast, tokens)
+- assertEqual(unparameterize(ast[0 SUBSEP "url"]),
+- "https://httpbin.org/post")
+- }
+-
+ T("dump()", 3)
+ {
+ delete group
diff --git a/app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild b/app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild
new file mode 100644
index 000000000000..6447ab3f65e0
--- /dev/null
+++ b/app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Online command-line translator"
+HOMEPAGE="https://www.soimort.org/translate-shell/"
+SRC_URI="https://github.com/soimort/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+curl +bidi test tts"
+
+RDEPEND="
+ app-misc/rlwrap
+ >=sys-apps/gawk-4.0.2
+ curl? ( net-misc/curl[ssl] )
+ bidi? ( dev-libs/fribidi )
+ tts? ( || (
+ media-sound/mpg123
+ app-accessibility/espeak
+ media-video/mpv
+ media-video/mplayer
+ )
+ )"
+DEPEND="${RDEPEND}
+ test? ( app-editors/emacs )
+ "
+
+PATCHES=(
+ "${FILESDIR}/${P}-remove-online-tests.patch"
+)
+
+src_install() {
+ emake PREFIX="${D}/usr" install
+}