commit:     408d48af944b785f2fa98f219cb3635d3b99bdf9
Author:     Ferenc Erki <erkiferenc <AT> gmail <DOT> com>
AuthorDate: Mon Mar 26 04:47:38 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Apr  8 22:42:04 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=408d48af

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

 app-i18n/translate-shell/Manifest                  |  1 +
 ...anslate-shell-0.9.6.7-remove-online-tests.patch | 44 ++++++++++++++++++++++
 .../translate-shell/translate-shell-0.9.6.7.ebuild | 37 ++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/app-i18n/translate-shell/Manifest 
b/app-i18n/translate-shell/Manifest
index 81526c27abe..80db0ba2c4c 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 00000000000..f68fec1fdae
--- /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 00000000000..6447ab3f65e
--- /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
+}

Reply via email to