summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-08-12 23:11:47 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-08-12 23:21:40 +0900
commit0f0b2c8b7c4d48faa49167d3f227ce3a63ac18d3 (patch)
treee29189afce67ea5d52229e00cdc78710680b291e /app-i18n/tomoe-gtk
parentsci-libs/indilib: x86 stable (diff)
downloadgentoo-0f0b2c8b7c4d48faa49167d3f227ce3a63ac18d3.tar.gz
gentoo-0f0b2c8b7c4d48faa49167d3f227ce3a63ac18d3.tar.bz2
gentoo-0f0b2c8b7c4d48faa49167d3f227ce3a63ac18d3.zip
app-i18n/tomoe-gtk: fix build with USE=python
Gentoo-Bug: 567632 Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/tomoe-gtk')
-rw-r--r--app-i18n/tomoe-gtk/metadata.xml16
-rw-r--r--app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild38
2 files changed, 18 insertions, 36 deletions
diff --git a/app-i18n/tomoe-gtk/metadata.xml b/app-i18n/tomoe-gtk/metadata.xml
index bb5bed5adfa2..b26c59a53cf3 100644
--- a/app-i18n/tomoe-gtk/metadata.xml
+++ b/app-i18n/tomoe-gtk/metadata.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
- </maintainer>
- <upstream>
- <remote-id type="sourceforge">tomoe</remote-id>
- <remote-id type="sourceforge-jp">tomoe</remote-id>
- </upstream>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ <remote-id type="sourceforge-jp">tomoe</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild b/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild
index 6bb529d3d143..91da3cffbfdc 100644
--- a/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild
+++ b/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild
@@ -1,59 +1,41 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI="6"
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
-MY_P="tomoe-gtk-${PV}"
DESCRIPTION="Tomoe GTK+ interface widget library"
HOMEPAGE="http://tomoe.sourceforge.jp/"
-SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~x86"
-
IUSE="python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RDEPEND="
- >=app-i18n/tomoe-0.6.0
+RDEPEND="app-i18n/tomoe[python(+)?,${PYTHON_USEDEP}]
python? (
${PYTHON_DEPS}
- >=app-i18n/tomoe-0.6.0[python,${PYTHON_USEDEP}]
- dev-python/pygtk:2[${PYTHON_USEDEP}]
dev-python/pygobject:2[${PYTHON_USEDEP}]
- )
-"
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
- virtual/pkgconfig
sys-devel/gettext
-"
-
-S="${WORKDIR}/${MY_P}"
+ virtual/pkgconfig"
pkg_setup() {
- if use python ; then
- python-single-r1_pkg_setup
- fi
+ use python && python-single-r1_pkg_setup
}
src_configure() {
- local myconf
- #--with-python b0rked hard
- unset PYTHON
- use python || myconf="${myconf} --without-python"
-
- # Rely on precompiled gtk-doc files,
- # https://wiki.gentoo.org/wiki/Project:GNOME/Gnome_Team_Ebuild_Policies#gtk-doc
econf \
- --disable-gtk-doc \
- --without-gucharmap \
$(use_enable static-libs static) \
- ${myconf}
+ $(use_with python python "") \
+ --without-gucharmap
}
src_install() {