/[gentoo-x86]/dev-libs/libindicate/libindicate-0.6.1-r201.ebuild
Gentoo

Contents of /dev-libs/libindicate/libindicate-0.6.1-r201.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Jul 21 18:40:45 2012 UTC (10 months ago) by ssuominen
Branch: MAIN
Changes since 1.4: +4 -3 lines
Fix building with dev-libs/glib >= 2.31 wrt #427480

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 johu 1.4 # Copyright 1999-2012 Gentoo Foundation
2 ssuominen 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-0.6.1-r201.ebuild,v 1.4 2012/05/04 13:12:52 johu Exp $
4 ssuominen 1.1
5     EAPI=4
6    
7     PYTHON_DEPEND="2:2.7"
8    
9     inherit autotools eutils python
10    
11     PV_vala_version=0.14
12    
13     DESCRIPTION="A library to raise flags on DBus for other components of the desktop to pick up and visualize"
14     HOMEPAGE="http://launchpad.net/libindicate"
15     SRC_URI="http://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz"
16    
17     LICENSE="LGPL-2.1 LGPL-3"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86"
20     IUSE="+introspection"
21    
22     # note: pull in SLOT="3" to install headers and libs (see rm -rf in src_install)
23     RDEPEND=">=dev-libs/dbus-glib-0.76
24     >=dev-libs/glib-2.18:2
25 ssuominen 1.2 >=dev-libs/libdbusmenu-0.3.97:0[introspection?]
26 ssuominen 1.1 dev-libs/libxml2:2
27     dev-python/pygtk:2
28     >=x11-libs/gtk+-2.12:2
29     ${CATEGORY}/${PN}:3
30 zmedico 1.3 introspection? ( dev-libs/gobject-introspection )
31     !<${CATEGORY}/${PN}-0.6.1-r201"
32 ssuominen 1.1 DEPEND="${RDEPEND}
33     gnome-base/gnome-common
34     app-text/gnome-doc-utils
35     dev-util/gtk-doc-am
36 johu 1.4 dev-lang/vala:${PV_vala_version}[vapigen]
37     virtual/pkgconfig"
38 ssuominen 1.1
39     RESTRICT="test" # for -no-mono.patch
40    
41     pkg_setup() {
42     python_set_active_version 2
43     python_pkg_setup
44     }
45    
46     src_prepare() {
47     epatch "${FILESDIR}"/${P}-no-mono.patch
48    
49     sed -i -e 's:-Werror::' {examples,libindicate,libindicate-gtk}/Makefile.{am,in} || die
50    
51     # for slotted dev-lang/vala
52     sed -i -e "s:vapigen:vapigen-${PV_vala_version}:" configure.ac || die
53    
54 ssuominen 1.5 sed -i -e '/^#include.*glib.*gmessages/d' ${PN}/indicator.c || die #427480
55    
56 ssuominen 1.1 eautoreconf
57    
58 ssuominen 1.5 >py-compile
59 ssuominen 1.1 }
60    
61     src_configure() {
62     econf \
63     --disable-static \
64     $(use_enable introspection) \
65     --with-gtk=2
66     }
67    
68     src_install() {
69     emake DESTDIR="${D}" install
70     find "${ED}"usr -name '*.la' -exec rm -f {} +
71    
72     # note: purposely not installing documentation and colliding files to
73     # support SLOT="3"
74     rm -rf \
75     "${ED}"usr/include/${PN}-0.6/${PN}* \
76     "${ED}"usr/share/doc \
77     "${ED}"usr/share/gir-1.0/Indicate-0.6.gir \
78     "${ED}"usr/share/gtk-doc \
79     "${ED}"usr/share/vala/vapi/Indicate-0.6.vapi \
80     "${ED}"usr/lib*/girepository-1.0/Indicate-0.6.typelib \
81     "${ED}"usr/lib*/${PN}.so* \
82     "${ED}"usr/lib*/pkgconfig/indicate-0.6.pc
83     }
84    
85     pkg_postinst() {
86     python_mod_optimize indicate
87     }
88    
89     pkg_postrm() {
90     python_mod_cleanup indicate
91     }

  ViewVC Help
Powered by ViewVC 1.1.13