app-i18n/translate-shell: version bump to 0.9.6.7.
authorFerenc Erki <erkiferenc@gmail.com>
Mon, 26 Mar 2018 04:47:38 +0000 (06:47 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 8 Apr 2018 22:42:04 +0000 (00:42 +0200)
Closes: https://bugs.gentoo.org/652150
Closes: https://github.com/gentoo/gentoo/pull/7767
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-i18n/translate-shell/Manifest
app-i18n/translate-shell/files/translate-shell-0.9.6.7-remove-online-tests.patch [new file with mode: 0644]
app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild [new file with mode: 0644]

index 81526c27abecb396f4e6eb567247115f19e5dcee..80db0ba2c4c4ae0d7e49913b1b3b7a7fd9348e96 100644 (file)
@@ -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 (file)
index 0000000..f68fec1
--- /dev/null
@@ -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 (file)
index 0000000..6447ab3
--- /dev/null
@@ -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
+}