blob: 70ed29a7e91694f9f2b587720231459683825c62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit autotools python gnome2 git
EGIT_REPO_URI="git://git.gnome.org/gobject-introspection"
DESCRIPTION="Introspection infrastructure for gobject library bindings"
HOMEPAGE="http://live.gnome.org/GObjectIntrospection/"
SRC_URI=""
LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=dev-libs/glib-2.19.0
>=dev-lang/python-2.5
virtual/libffi"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-1.12
dev-util/pkgconfig
sys-devel/flex"
src_prepare() {
G2CONF="${G2CONF} --disable-static"
# FIXME: Parallel compilation failure with USE=doc
use doc && MAKEOPTS="-j1"
# Don't pre-compile .py
ln -sf $(type -P true) py-compile
}
src_unpack() {
git_src_unpack
cd ${S}
gtkdocize
eautoreconf
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/${PN}/giscanner
python_need_rebuild
}
pkg_postrm() {
python_mod_cleanup /usr/lib*/${PN}/giscanner
}
|