Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/libtomoe-gtk/
Date: Sun, 31 Jul 2016 11:54:04
Message-Id: 1469966023.4847fab661493c957f8a49e046c997cef5729814.pacho@gentoo
1 commit: 4847fab661493c957f8a49e046c997cef5729814
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 11:52:40 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 11:53:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4847fab6
7
8 app-i18n/libtomoe-gtk: Disable gucharmap support (#565296), no need to rebuild gtk-doc.
9
10 Package-Manager: portage-2.3.0
11
12 app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r4.ebuild | 69 ++++++++++++++++++++++
13 1 file changed, 69 insertions(+)
14
15 diff --git a/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r4.ebuild b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r4.ebuild
16 new file mode 100644
17 index 0000000..365bb3f
18 --- /dev/null
19 +++ b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r4.ebuild
20 @@ -0,0 +1,69 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +PYTHON_COMPAT=( python2_7 )
27 +
28 +inherit python-single-r1
29 +
30 +MY_P="tomoe-gtk-${PV}"
31 +DESCRIPTION="Tomoe GTK+ interface widget library"
32 +HOMEPAGE="http://tomoe.sourceforge.jp/"
33 +SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +IUSE="python static-libs"
40 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
41 +
42 +RDEPEND="
43 + >=app-i18n/tomoe-0.6.0
44 + python? (
45 + ${PYTHON_DEPS}
46 + >=app-i18n/tomoe-0.6.0[python,${PYTHON_USEDEP}]
47 + dev-python/pygtk:2[${PYTHON_USEDEP}]
48 + dev-python/pygobject:2[${PYTHON_USEDEP}]
49 + )
50 +"
51 +DEPEND="${RDEPEND}
52 + dev-util/gtk-doc-am
53 + virtual/pkgconfig
54 + sys-devel/gettext
55 +"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +pkg_setup() {
60 + if use python ; then
61 + python-single-r1_pkg_setup
62 + fi
63 +}
64 +
65 +src_configure() {
66 + local myconf
67 + #--with-python b0rked hard
68 + unset PYTHON
69 + use python || myconf="${myconf} --without-python"
70 +
71 + # Rely on precompiled gtk-doc files,
72 + # https://wiki.gentoo.org/wiki/Project:GNOME/Gnome_Team_Ebuild_Policies#gtk-doc
73 + econf \
74 + --disable-gtk-doc \
75 + --without-gucharmap \
76 + $(use_enable static-libs static) \
77 + ${myconf}
78 +}
79 +
80 +src_install() {
81 + default
82 +
83 + if use python ; then
84 + find "${D}$(python_get_sitedir)" \( -name "*.la" -o -name "*.a" \) -type f -delete || die
85 + fi
86 + if ! use static-libs ; then
87 + find "${ED}" -name "*.la" -type f -delete || die
88 + fi
89 +}