/[gentoo-x86]/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild
Gentoo

Contents of /app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Oct 17 03:39:29 2012 UTC (7 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
x86 stable wrt bug #393005

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild,v 1.5 2012/10/11 16:41:08 ago Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7
8 inherit autotools eutils python
9
10 MY_P="tomoe-gtk-${PV}"
11 DESCRIPTION="Tomoe GTK+ interface widget library"
12 HOMEPAGE="http://tomoe.sourceforge.jp/"
13 SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="doc +gucharmap python static-libs"
19
20 RDEPEND=">=app-i18n/tomoe-0.6.0[python?]
21 python? (
22 dev-python/pygtk:2
23 dev-python/pygobject:2
24 )
25 gucharmap? ( gnome-extra/gucharmap:0 )"
26 DEPEND="${RDEPEND}
27 dev-util/gtk-doc-am
28 virtual/pkgconfig
29 sys-devel/gettext
30 doc? ( >=dev-util/gtk-doc-1.4 )"
31
32 S="${WORKDIR}/${MY_P}"
33
34 pkg_setup() {
35 if use python ; then
36 python_set_active_version 2
37 fi
38 }
39
40 src_prepare() {
41 # Fix compilation with gucharmap-2.24, bug #243160
42 epatch "${FILESDIR}/${P}-gucharmap2.patch"
43 epatch "${FILESDIR}/${P}-underlinking.patch"
44
45 eautoreconf
46 }
47
48 src_configure() {
49 local myconf
50 #--with-python b0rked
51 use python || myconf="${myconf} --without-python"
52
53 econf \
54 $(use_enable doc gtk-doc) \
55 $(use_with gucharmap) \
56 $(use_enable static-libs static) \
57 ${myconf} || die
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "make install failed"
62
63 if use python ; then
64 find "${ED}$(python_get_sitedir)" \( -name "*.la" -o -name "*.a" \) -type f -delete || die
65 fi
66 if ! use static-libs ; then
67 find "${ED}" -name "*.la" -type f -delete || die
68 fi
69
70 dodoc AUTHORS ChangeLog NEWS README || die
71 }

  ViewVC Help
Powered by ViewVC 1.1.13