summaryrefslogtreecommitdiff
path: root/app-i18n/translate-shell
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-i18n/translate-shell
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/translate-shell')
-rw-r--r--app-i18n/translate-shell/Manifest7
-rw-r--r--app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch42
-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/metadata.xml27
-rw-r--r--app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild37
-rw-r--r--app-i18n/translate-shell/translate-shell-0.9.6.7.ebuild37
6 files changed, 194 insertions, 0 deletions
diff --git a/app-i18n/translate-shell/Manifest b/app-i18n/translate-shell/Manifest
new file mode 100644
index 000000000000..1536d266ea83
--- /dev/null
+++ b/app-i18n/translate-shell/Manifest
@@ -0,0 +1,7 @@
+AUX translate-shell-0.9.6.6-remove-online-tests.patch 1199 BLAKE2B 3d502db0cbbf9b7174c136b7d01f040b07bb72a5a60aa40c4874a75f2e49cd15fcae5509fcec96182762c2e8b69411d0998ebc6e24e0f2567e1b165fe6eed166 SHA512 111e11c9c9756e7de709ac6e2477aa1a3e81ddcfc8227db1d6435c77c0196411ec5aef8dba584a767b4b43f94132efbf63e30bb0d3975116bcb3920350431098
+AUX translate-shell-0.9.6.7-remove-online-tests.patch 1351 BLAKE2B 61eb05917872e07bbc0121e8562ce292d8aa3405fca943815e772debfe39f5c24c53d5d7b9739d8165596558a8ab58eff07e8c69e305f564df2c85a2d4de8e3d SHA512 3910dda851bc71122e07d47df4a63f00fc44b4b2c4b851fddd7686dd93376a0e9e06b5488ded5eb655d17015d7a16da3d4d0ed4d2f0c081eb105320c561045e3
+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
+EBUILD translate-shell-0.9.6.6.ebuild 753 BLAKE2B d6e963c5d674047164ee290f1e6fa9eecae232b641861c1de3c1c3b87a20587f1acfb72a5be7bba6b13d2834cf5e5d6f97994bf19f08ede63bbfe899d905fb98 SHA512 6ca520bdf93406d25e88eee30e7fd47c19bbcc4cc4fbad662ac9a42aefc8d7d4e367dae81d00b5b31d91989e9ad3e3896024e3d34c09a6574cb4f98fbc8cce96
+EBUILD translate-shell-0.9.6.7.ebuild 753 BLAKE2B d6e963c5d674047164ee290f1e6fa9eecae232b641861c1de3c1c3b87a20587f1acfb72a5be7bba6b13d2834cf5e5d6f97994bf19f08ede63bbfe899d905fb98 SHA512 6ca520bdf93406d25e88eee30e7fd47c19bbcc4cc4fbad662ac9a42aefc8d7d4e367dae81d00b5b31d91989e9ad3e3896024e3d34c09a6574cb4f98fbc8cce96
+MISC metadata.xml 856 BLAKE2B 0bfbb3ab59d613c16732c000d7b66f618b05be517ea8976fc187deea834b214f9dc405b1140fa51d98940935beadd3a3c94d35274fc75444360491f5be99662a SHA512 3c5b5a99f2ca8d41ea076b0190ea06a23e7334282a55c5664dd417e34c92cc5df7d03f33bd1d9b1708a1632de66c4d02587c6fe3e6761a70be75783e447c3d00
diff --git a/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch b/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch
new file mode 100644
index 000000000000..2eaf607b4bc8
--- /dev/null
+++ b/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch
@@ -0,0 +1,42 @@
+diff --git a/Makefile b/Makefile
+index acc96e0..622e136 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,8 +27,6 @@ test: build
+
+ check: test
+ $(BUILDDIR)/$(COMMAND) -V
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b 忍者`" = 'Ninja' ] &&\
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b 'hello world'`" = 'hello world' ]
+
+ 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/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/metadata.xml b/app-i18n/translate-shell/metadata.xml
new file mode 100644
index 000000000000..bea3adaede38
--- /dev/null
+++ b/app-i18n/translate-shell/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>erkiferenc@gmail.com</email>
+ <name>Ferenc Erki</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Translate Shell (formerly Google Translate CLI) is a command-line
+ translator powered by Google Translate (default), Bing Translator, and
+ Yandex.Translate.
+ </longdescription>
+ <use>
+ <flag name="tts">Enable text-to-speech support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">soimort/translate-shell</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild b/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild
new file mode 100644
index 000000000000..6447ab3f65e0
--- /dev/null
+++ b/app-i18n/translate-shell/translate-shell-0.9.6.6.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
+}
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
+}