Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-libs/gobject-introspection/
Date: Mon, 16 Apr 2012 11:27:49
Message-Id: 1334575609.db62b3fde1c3528bea18c15285bacb4f0620364f.tetromino@gentoo
1 commit: db62b3fde1c3528bea18c15285bacb4f0620364f
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 16 11:26:49 2012 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Mon Apr 16 11:26:49 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=db62b3fd
7
8 dev-libs/gobject-introspection: moved to gx86 + sync 9999 with gx86
9
10 ---
11 .../gobject-introspection-1.31.22.ebuild | 94 --------------------
12 .../gobject-introspection-9999.ebuild | 13 ++-
13 2 files changed, 9 insertions(+), 98 deletions(-)
14
15 diff --git a/dev-libs/gobject-introspection/gobject-introspection-1.31.22.ebuild b/dev-libs/gobject-introspection/gobject-introspection-1.31.22.ebuild
16 deleted file mode 100644
17 index 4d57120..0000000
18 --- a/dev-libs/gobject-introspection/gobject-introspection-1.31.22.ebuild
19 +++ /dev/null
20 @@ -1,94 +0,0 @@
21 -# Copyright 1999-2011 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gobject-introspection/gobject-introspection-0.10.8.ebuild,v 1.10 2011/05/02 04:39:55 jer Exp $
24 -
25 -EAPI="4"
26 -GCONF_DEBUG="no"
27 -GNOME2_LA_PUNT="yes"
28 -PYTHON_DEPEND="2:2.7"
29 -
30 -inherit python gnome2
31 -if [[ ${PV} = 9999 ]]; then
32 - inherit gnome2-live
33 -fi
34 -
35 -DESCRIPTION="Introspection infrastructure for generating gobject library bindings for various languages"
36 -HOMEPAGE="http://live.gnome.org/GObjectIntrospection/"
37 -
38 -LICENSE="LGPL-2 GPL-2"
39 -SLOT="0"
40 -if [[ ${PV} = 9999 ]]; then
41 - KEYWORDS=""
42 -else
43 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 -fi
45 -
46 -IUSE="doc doctool test"
47 -
48 -RDEPEND=">=dev-libs/glib-2.29.7:2
49 - doctool? ( dev-python/mako )
50 - virtual/libffi"
51 -DEPEND="${RDEPEND}
52 - dev-util/pkgconfig
53 - sys-devel/bison
54 - sys-devel/flex
55 - doc? ( >=dev-util/gtk-doc-1.15 )
56 - test? ( x11-libs/cairo )"
57 -# PDEPEND to avoid circular dependencies, bug #391213
58 -PDEPEND="x11-libs/cairo[glib]"
59 -
60 -pkg_setup() {
61 - DOCS="AUTHORS CONTRIBUTORS ChangeLog NEWS README TODO"
62 - G2CONF="${G2CONF}
63 - --disable-static
64 - YACC=$(type -p yacc)
65 - $(use_enable doctool)
66 - $(use_enable test tests)"
67 -
68 - python_set_active_version 2
69 - python_pkg_setup
70 -}
71 -
72 -src_prepare() {
73 - # FIXME: Parallel compilation failure with USE=doc
74 - use doc && MAKEOPTS="-j1"
75 -
76 - gnome2_src_prepare
77 -
78 - python_clean_py-compile_files
79 -
80 - gi_skip_tests=
81 - if ! has_version "x11-libs/cairo[glib]"; then
82 - # Bug #391213: enable cairo-gobject support even if it's not installed
83 - # We only PDEPEND on cairo to avoid circular dependencies
84 - export CAIRO_LIBS="-lcairo"
85 - export CAIRO_CFLAGS="-I${EPREFIX}/usr/include/cairo"
86 - export CAIRO_GOBJECT_LIBS="-lcairo-gobject"
87 - export CAIRO_GOBJECT_CFLAGS="-I${EPREFIX}/usr/include/cairo"
88 - if use test; then
89 - G2CONF="${G2CONF} --disable-tests"
90 - gi_skip_tests=yes
91 - ewarn "Tests will be skipped because x11-libs/cairo[glib] is not present"
92 - ewarn "on your system. Consider installing it to get tests to run."
93 - fi
94 - fi
95 -}
96 -
97 -src_test() {
98 - [[ -z ${gi_skip_tests} ]] && default
99 -}
100 -
101 -src_install() {
102 - gnome2_src_install
103 - python_convert_shebangs 2 "${ED}"usr/bin/g-ir-{annotation-tool,scanner}
104 - use doctool && python_convert_shebangs 2 "${ED}"usr/bin/g-ir-doc-tool
105 -}
106 -
107 -pkg_postinst() {
108 - python_mod_optimize /usr/$(get_libdir)/${PN}/giscanner
109 - python_need_rebuild
110 -}
111 -
112 -pkg_postrm() {
113 - python_mod_cleanup /usr/lib*/${PN}/giscanner
114 -}
115
116 diff --git a/dev-libs/gobject-introspection/gobject-introspection-9999.ebuild b/dev-libs/gobject-introspection/gobject-introspection-9999.ebuild
117 index 4d57120..f6648d8 100644
118 --- a/dev-libs/gobject-introspection/gobject-introspection-9999.ebuild
119 +++ b/dev-libs/gobject-introspection/gobject-introspection-9999.ebuild
120 @@ -25,15 +25,15 @@ fi
121
122 IUSE="doc doctool test"
123
124 -RDEPEND=">=dev-libs/glib-2.29.7:2
125 +RDEPEND=">=dev-libs/gobject-introspection-common-${PV}
126 + >=dev-libs/glib-2.31.22:2
127 doctool? ( dev-python/mako )
128 virtual/libffi"
129 DEPEND="${RDEPEND}
130 dev-util/pkgconfig
131 sys-devel/bison
132 sys-devel/flex
133 - doc? ( >=dev-util/gtk-doc-1.15 )
134 - test? ( x11-libs/cairo )"
135 + doc? ( >=dev-util/gtk-doc-1.15 )"
136 # PDEPEND to avoid circular dependencies, bug #391213
137 PDEPEND="x11-libs/cairo[glib]"
138
139 @@ -82,6 +82,11 @@ src_install() {
140 gnome2_src_install
141 python_convert_shebangs 2 "${ED}"usr/bin/g-ir-{annotation-tool,scanner}
142 use doctool && python_convert_shebangs 2 "${ED}"usr/bin/g-ir-doc-tool
143 +
144 + # Prevent collision with gobject-introspection-common
145 + rm -v "${ED}"usr/share/aclocal/introspection.m4 \
146 + "${ED}"usr/share/gobject-introspection-1.0/Makefile.introspection || die
147 + rmdir "${ED}"usr/share/aclocal || die
148 }
149
150 pkg_postinst() {
151 @@ -90,5 +95,5 @@ pkg_postinst() {
152 }
153
154 pkg_postrm() {
155 - python_mod_cleanup /usr/lib*/${PN}/giscanner
156 + python_mod_cleanup /usr/$(get_libdir)/${PN}/giscanner
157 }