Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/gobject-introspection: ChangeLog gobject-introspection-1.30.0-r2.ebuild
Date: Sun, 08 Jan 2012 23:03:15
Message-Id: 20120108230303.E66462004C@flycatcher.gentoo.org
1 tetromino 12/01/08 23:03:03
2
3 Modified: ChangeLog
4 Added: gobject-introspection-1.30.0-r2.ebuild
5 Log:
6 Force building cairo-gobject support, and add a PDEPEND on cairo[glib] (PDEPEND instead of RDEPEND to avoid circular dependencies). Fixes bug #391213; thanks to Pacho Ramos, Rafał Mużyło, and the many helpful testers.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.51 dev-libs/gobject-introspection/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gobject-introspection/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gobject-introspection/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gobject-introspection/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 31 Dec 2011 21:58:21 -0000 1.50
24 +++ ChangeLog 8 Jan 2012 23:03:03 -0000 1.51
25 @@ -1,6 +1,16 @@
26 # ChangeLog for dev-libs/gobject-introspection
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/ChangeLog,v 1.50 2011/12/31 21:58:21 tetromino Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/ChangeLog,v 1.51 2012/01/08 23:03:03 tetromino Exp $
31 +
32 +*gobject-introspection-1.30.0-r2 (08 Jan 2012)
33 +
34 + 08 Jan 2012; Alexandre Rostovtsev <tetromino@g.o>
35 + +gobject-introspection-1.30.0-r2.ebuild,
36 + +files/gobject-introspection-1.30.0-forced-cairo.patch:
37 + Force building cairo-gobject support, and add a PDEPEND on cairo[glib]
38 + (PDEPEND instead of RDEPEND to avoid circular dependencies). Fixes bug
39 + #391213; thanks to Pacho Ramos, Rafał Mużyło, and the many helpful
40 + testers.
41
42 31 Dec 2011; Alexandre Rostovtsev <tetromino@g.o>
43 gobject-introspection-0.10.8.ebuild, gobject-introspection-1.30.0.ebuild,
44
45
46
47 1.1 dev-libs/gobject-introspection/gobject-introspection-1.30.0-r2.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gobject-introspection/gobject-introspection-1.30.0-r2.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gobject-introspection/gobject-introspection-1.30.0-r2.ebuild?rev=1.1&content-type=text/plain
51
52 Index: gobject-introspection-1.30.0-r2.ebuild
53 ===================================================================
54 # Copyright 1999-2012 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/gobject-introspection-1.30.0-r2.ebuild,v 1.1 2012/01/08 23:03:03 tetromino Exp $
57
58 EAPI="4"
59 GCONF_DEBUG="no"
60 GNOME2_LA_PUNT="yes"
61 PYTHON_DEPEND="2:2.5"
62
63 inherit autotools gnome2 python
64
65 DESCRIPTION="Introspection infrastructure for generating gobject library bindings for various languages"
66 HOMEPAGE="http://live.gnome.org/GObjectIntrospection/"
67 SRC_URI="${SRC_URI} mirror://gentoo/${P}-patches-1.tar.xz"
68
69 LICENSE="LGPL-2 GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
72
73 IUSE="doc test"
74
75 RDEPEND=">=dev-libs/glib-2.29.7:2
76 virtual/libffi"
77 DEPEND="${RDEPEND}
78 dev-util/pkgconfig
79 sys-devel/flex
80 virtual/yacc
81 doc? ( >=dev-util/gtk-doc-1.15 )"
82 # PDEPEND to avoid circular dependencies, bug #391213
83 PDEPEND="x11-libs/cairo[glib]"
84
85 pkg_setup() {
86 DOCS="AUTHORS CONTRIBUTORS ChangeLog NEWS README TODO"
87 G2CONF="${G2CONF}
88 --disable-static
89 YACC=$(type -p yacc)
90 $(use_enable test tests)"
91
92 python_set_active_version 2
93 python_pkg_setup
94 }
95
96 src_prepare() {
97 # Useful upstream patches, will be in 1.31
98 epatch ../patches/*.patch
99
100 # https://bugzilla.gnome.org/show_bug.cgi?id=659824
101 sed -i -e '/^TAGS/s/[{}]//g' "${S}/giscanner/docbookdescription.py" || die
102
103 # Enable cairo-gobject support even if cairo is not installed, bug #391213
104 epatch "${FILESDIR}/${PN}-1.30.0-forced-cairo.patch"
105
106 # FIXME: Parallel compilation failure with USE=doc
107 use doc && MAKEOPTS="-j1"
108
109 # Don't pre-compile .py
110 echo > py-compile
111 echo > build-aux/py-compile
112
113 eautoreconf
114 gnome2_src_prepare
115
116 if use test && ! has_version "x11-libs/cairo[glib]"; then
117 # We only PDEPEND on cairo to avoid circular dependencies
118 G2CONF="${G2CONF} --disable-tests"
119 skip_tests=yes
120 ewarn "Tests will be skipped because x11-libs/cairo[glib] is not present"
121 ewarn "on your system. Consider installing it to get tests to run."
122 else
123 skip_tests=
124 fi
125 }
126
127 src_test() {
128 [[ -z ${skip_tests} ]] && default
129 }
130
131 src_install() {
132 gnome2_src_install
133 python_convert_shebangs 2 "${ED}"usr/bin/g-ir-{annotation-tool,doc-tool,scanner}
134 }
135
136 pkg_postinst() {
137 python_mod_optimize /usr/$(get_libdir)/${PN}/giscanner
138 python_need_rebuild
139 }
140
141 pkg_postrm() {
142 python_mod_cleanup /usr/lib*/${PN}/giscanner
143 }