summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-09-04 17:32:27 +0200
committerMartin Väth <martin@mvath.de>2016-09-04 17:32:27 +0200
commite9caa5dc23f330945e26869199d570f829824e2c (patch)
treee1fac560359f222eff3ae28c09431a9d4fa84470 /app-accessibility
parentapp-shells/schily-tools: Version bump (diff)
downloadmv-e9caa5dc23f330945e26869199d570f829824e2c.tar.gz
mv-e9caa5dc23f330945e26869199d570f829824e2c.tar.bz2
mv-e9caa5dc23f330945e26869199d570f829824e2c.zip
app-accessibility/gespeaker: Fix python dep. First gtk:3 version
Diffstat (limited to 'app-accessibility')
-rw-r--r--app-accessibility/gespeaker/Manifest1
-rw-r--r--app-accessibility/gespeaker/gespeaker-0.8.6-r1.ebuild (renamed from app-accessibility/gespeaker/gespeaker-0.8.6.ebuild)3
-rw-r--r--app-accessibility/gespeaker/gespeaker-0.8.6_p0.ebuild39
3 files changed, 41 insertions, 2 deletions
diff --git a/app-accessibility/gespeaker/Manifest b/app-accessibility/gespeaker/Manifest
index a16c06ba..96569425 100644
--- a/app-accessibility/gespeaker/Manifest
+++ b/app-accessibility/gespeaker/Manifest
@@ -1 +1,2 @@
DIST gespeaker-0.8.6.tar.gz 152467 SHA256 b5db76a35bed5a2ade3cdb653ecbea75cd8b006cfae92c8c034dfcd074387d15
+DIST gespeaker-0.8.6_p0.tar.gz 112785 SHA256 449831a5213e9b07e450ae8bfb4b5dff8037da942648581153e7e3db23bbc97d
diff --git a/app-accessibility/gespeaker/gespeaker-0.8.6.ebuild b/app-accessibility/gespeaker/gespeaker-0.8.6-r1.ebuild
index fe4a624c..597d59f5 100644
--- a/app-accessibility/gespeaker/gespeaker-0.8.6.ebuild
+++ b/app-accessibility/gespeaker/gespeaker-0.8.6-r1.ebuild
@@ -18,7 +18,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
IUSE="linguas_ar linguas_bg linguas_de linguas_en linguas_es linguas_fo linguas_fr linguas_it linguas_pl linguas_tr linguas_vi"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-DEPEND="<dev-lang/python-3"
RDEPEND="app-accessibility/espeak
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/pygtk[${PYTHON_USEDEP}]
@@ -28,7 +27,7 @@ RDEPEND="app-accessibility/espeak
src_prepare() {
distutils-r1_python_prepare_all
- use prefix || sed -i \
+ ! use prefix || sed -i \
-e '1s"^#!/usr/bin/env python$"#!'"${EPREFIX}/usr/bin/python"'"' \
-- "${S}/setup.py" "${S}/src/gespeaker.py" || die
python_setup 'python2*'
diff --git a/app-accessibility/gespeaker/gespeaker-0.8.6_p0.ebuild b/app-accessibility/gespeaker/gespeaker-0.8.6_p0.ebuild
new file mode 100644
index 00000000..60cc7b10
--- /dev/null
+++ b/app-accessibility/gespeaker/gespeaker-0.8.6_p0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+RESTRICT="mirror"
+PYTHON_COMPAT=( python2_7 )
+inherit distutils-r1
+
+DESCRIPTION="A GTK+ frontend for espeak"
+HOMEPAGE="http://www.muflone.com/gespeaker/english/index.html"
+EGIT_COMMIT="3936e33cf3ec5523a0466950d93261fb82987d0f"
+SRC_URI="https://github.com/muflone/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+KEYWORDS=""
+
+IUSE="linguas_ar linguas_bg linguas_de linguas_en linguas_es linguas_fo linguas_fr linguas_it linguas_pl linguas_tr linguas_vi"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RDEPEND="app-accessibility/espeak
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ gnome-base/librsvg
+ ${PYTHON_DEPS}"
+
+src_prepare() {
+ distutils-r1_python_prepare_all
+ python_setup 'python2*'
+ python_fix_shebang "${S}"
+ sed -i \
+ -e 's!share/doc/gespeaker/dbus!share/gtk-doc/gspeaker!' \
+ -e "s!share/doc/gespeaker!share/doc/${PF}!" \
+ -- "${S}/setup.py" || die
+ eapply_user
+}