Gentoo Archives: gentoo-commits

From: Locke Shinseiko <wizzleby@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: dev-libs/libindicate/, dev-libs/libindicate/files/
Date: Mon, 04 Apr 2011 02:44:59
Message-Id: 0528e56ad89cd6ac94d9f061555d8faf959297f4.wizzleby@gentoo
1 commit: 0528e56ad89cd6ac94d9f061555d8faf959297f4
2 Author: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
3 AuthorDate: Mon Apr 4 02:43:11 2011 +0000
4 Commit: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
5 CommitDate: Mon Apr 4 02:44:32 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=0528e56a
7
8 [dev-libs/libindicate-0.4.4] Add app-text/gnome-doc-utils to DEPEND, revbump.
9
10 ---
11 .../libindicate-0.4.4-fix-python-version.patch | 11 +++
12 dev-libs/libindicate/libindicate-0.4.4-r3.ebuild | 84 ++++++++++++++++++++
13 2 files changed, 95 insertions(+), 0 deletions(-)
14
15 diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch b/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch
16 new file mode 100644
17 index 0000000..198114b
18 --- /dev/null
19 +++ b/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch
20 @@ -0,0 +1,11 @@
21 +--- bindings/python/Makefile.am.orig 2010-12-01 11:02:01.089105608 +0100
22 ++++ bindings/python/Makefile.am 2010-12-01 11:02:32.619126150 +0100
23 +@@ -21,7 +21,7 @@
24 + indicatedir = $(pkgpyexecdir)/indicate
25 + indicate_LTLIBRARIES = _indicate.la
26 +
27 +-_indicate_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_indicate -lpyglib-2.0-python2.6 -lpython2.6
28 ++_indicate_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_indicate -lpyglib-2.0-python@PYTHON_VERSION@ -lpython@PYTHON_VERSION@
29 + _indicate_la_LIBADD = $(INDICATE_PYTHON_LIBS) -L$(top_builddir)/libindicate/.libs/ -lindicate -L$(top_builddir)/libindicate-gtk/.libs -lindicate-gtk $(LIBINDICATEGTK_LIBS)
30 + _indicate_la_SOURCES = indicatemodule.c
31 + nodist__indicate_la_SOURCES = indicate.c
32
33 diff --git a/dev-libs/libindicate/libindicate-0.4.4-r3.ebuild b/dev-libs/libindicate/libindicate-0.4.4-r3.ebuild
34 new file mode 100644
35 index 0000000..91199df
36 --- /dev/null
37 +++ b/dev-libs/libindicate/libindicate-0.4.4-r3.ebuild
38 @@ -0,0 +1,84 @@
39 +# Copyright 1999-2011 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-0.4.4-r2.ebuild,v 1.1 2011/02/07 10:05:34 tampakrap Exp $
42 +
43 +EAPI=2
44 +
45 +inherit autotools eutils versionator
46 +
47 +DESCRIPTION="Library to raise flags on DBus for other components of the desktop to pick up and visualize"
48 +HOMEPAGE="https://launchpad.net/libindicate/"
49 +SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
50 +
51 +LICENSE="LGPL-3"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +IUSE="doc +introspection"
55 +
56 +RESTRICT="test"
57 +
58 +# For the dependency on dev-libs/libdbusmenu see launchpad-bug #552667
59 +RDEPEND="dev-libs/glib:2[introspection=]
60 + dev-libs/dbus-glib
61 + <dev-libs/libdbusmenu-0.3.50[introspection=]
62 + dev-libs/libxml2:2
63 + x11-libs/gtk+:2
64 + dev-python/pygtk
65 + dev-dotnet/gtk-sharp
66 + dev-dotnet/gtk-sharp-gapi"
67 +DEPEND="${RDEPEND}
68 + doc? ( dev-util/gtk-doc )
69 + introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
70 + app-text/gnome-doc-utils
71 + dev-util/gtk-doc-am
72 + dev-util/pkgconfig"
73 +
74 +src_prepare() {
75 + # Without patches:
76 + # Make python optional, launchpad-bug #643921
77 + # Make mono optional, launchpad-bug #643922
78 +
79 + # Incomplete patches:
80 + # Make gtk optional, needs optional-python or code modifications, launchpad-bug #431311
81 + #epatch "${FILESDIR}/${P}-optional-gtk.patch"
82 +
83 + # Make doc optional, launchpad-bug #643911
84 + epatch "${FILESDIR}/${P}-optional-doc.patch"
85 + # Do not compile mono-example by default, launchpad-bug #643912
86 + epatch "${FILESDIR}/${P}-optional-mono-example.patch"
87 + # Do not compile examples by default, launchpad-bug #643917
88 + epatch "${FILESDIR}/${P}-optional-examples.patch"
89 + # Fix trouble with autoreconf and m4 directory, launchpad-bug #683552
90 + epatch "${FILESDIR}/${P}-fix-aclocal.patch"
91 + # Fixup undeclared HAVE_INTROSPECTION, launchpad-bug #552537
92 + epatch "${FILESDIR}/${P}-fix-introspection.patch"
93 + # Fix out-of-source builds, launchpad-bug #643913
94 + epatch "${FILESDIR}/${P}-fix-out-of-source-build.patch"
95 + # Fix compilation for python != 2.6, launchpad-bug #594992
96 + epatch "${FILESDIR}/${P}-fix-python-version.patch"
97 + # Fix parallel-make for mono bindings, launchpad-bug #709954
98 + epatch "${FILESDIR}/${P}-mono-parallel-make.patch"
99 + # Drop -Werror in a release
100 + sed -e 's:-Werror::g' -i libindicate/Makefile.am libindicate-gtk/Makefile.am || die "sed failed"
101 + eautoreconf
102 +}
103 +
104 +src_configure() {
105 + # gobject-instrospection is a nightmare in this package, it's fixable for libindicate
106 + # and not for libindicate-gtk, disable it until its fixed on upstream
107 + econf \
108 + --disable-dependency-tracking \
109 + --docdir=/usr/share/doc/${PF} \
110 + $(use_enable doc) \
111 + $(use_enable introspection) \
112 + || die "configure failed"
113 +}
114 +
115 +src_test() {
116 + emake check || die "testsuite failed"
117 +}
118 +
119 +src_install() {
120 + emake DESTDIR="${D}" install || die "make install failed"
121 + dodoc AUTHORS || die "dodoc failed"
122 +}