Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/glib: metadata.xml ChangeLog glib-2.30.0.ebuild
Date: Tue, 27 Sep 2011 13:00:00
Message-Id: 20110927125946.1EB2C20036@flycatcher.gentoo.org
1 nirbheek 11/09/27 12:59:46
2
3 Modified: metadata.xml ChangeLog
4 Added: glib-2.30.0.ebuild
5 Log:
6 Bump to 2.30, from the GNOME overlay. Ebuild updates and patches by tetromino.
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 dev-libs/glib/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 25 Sep 2010 00:02:51 -0000 1.2
24 +++ metadata.xml 27 Sep 2011 12:59:45 -0000 1.3
25 @@ -5,5 +5,7 @@
26 <use>
27 <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg>
28 for introspection</flag>
29 + <flag name="systemtap">Build support for profiling and tracing using
30 + <pkg>dev-util/systemtap</pkg></flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.483 dev-libs/glib/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.483&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.483&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.482&r2=1.483
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v
45 retrieving revision 1.482
46 retrieving revision 1.483
47 diff -u -r1.482 -r1.483
48 --- ChangeLog 14 Aug 2011 09:44:14 -0000 1.482
49 +++ ChangeLog 27 Sep 2011 12:59:45 -0000 1.483
50 @@ -1,6 +1,13 @@
51 # ChangeLog for dev-libs/glib
52 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.482 2011/08/14 09:44:14 ssuominen Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.483 2011/09/27 12:59:45 nirbheek Exp $
55 +
56 +*glib-2.30.0 (27 Sep 2011)
57 +
58 + 27 Sep 2011; Nirbheek Chauhan <nirbheek@g.o>
59 + +files/glib-2.29.18-external-gdbus-codegen.patch, +glib-2.30.0.ebuild:
60 + Bump to 2.30, from the GNOME overlay. Ebuild updates and patches by
61 + tetromino.
62
63 14 Aug 2011; Samuli Suominen <ssuominen@g.o> glib-2.28.8.ebuild:
64 Revert last libtool file preservation since we have usable pkg-config files
65
66
67
68 1.1 dev-libs/glib/glib-2.30.0.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.30.0.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.30.0.ebuild?rev=1.1&content-type=text/plain
72
73 Index: glib-2.30.0.ebuild
74 ===================================================================
75 # Copyright 1999-2011 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.30.0.ebuild,v 1.1 2011/09/27 12:59:45 nirbheek Exp $
78
79 EAPI="4"
80
81 inherit autotools gnome.org libtool eutils flag-o-matic multilib pax-utils virtualx
82
83 DESCRIPTION="The GLib library of C routines"
84 HOMEPAGE="http://www.gtk.org/"
85 SRC_URI="${SRC_URI}
86 http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
87
88 LICENSE="LGPL-2"
89 SLOT="2"
90 IUSE="debug doc fam selinux +static-libs systemtap test xattr"
91 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh
92 ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
93
94 RDEPEND="virtual/libiconv
95 >=dev-libs/libffi-3.0.0
96 sys-libs/zlib
97 xattr? ( sys-apps/attr )
98 fam? ( virtual/fam )"
99 DEPEND="${RDEPEND}
100 >=sys-devel/gettext-0.11
101 >=dev-util/gtk-doc-am-1.15
102 doc? (
103 >=dev-libs/libxslt-1.0
104 >=dev-util/gtk-doc-1.15
105 ~app-text/docbook-xml-dtd-4.1.2 )
106 systemtap? ( >=dev-util/systemtap-1.3 )
107 test? (
108 >=dev-util/gdbus-codegen-2.30.0
109 >=sys-apps/dbus-1.2.14 )
110 !<dev-util/gtk-doc-1.15-r2"
111 PDEPEND="!<gnome-base/gvfs-1.6.4-r990" # Earlier versions do not work with glib
112
113 # XXX: Consider adding test? ( sys-devel/gdb ); assert-msg-test tries to use it
114
115 src_prepare() {
116 mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
117
118 if use ia64 ; then
119 # Only apply for < 4.1
120 local major=$(gcc-major-version)
121 local minor=$(gcc-minor-version)
122 if (( major < 4 || ( major == 4 && minor == 0 ) )); then
123 epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
124 fi
125 fi
126
127 # Don't fail gio tests when ran without userpriv, upstream bug 552912
128 # This is only a temporary workaround, remove as soon as possible
129 epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
130
131 # Fix gmodule issues on fbsd; bug #184301
132 epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
133
134 # Fix test failure when upgrading from 2.22 to 2.24, upstream bug 621368
135 epatch "${FILESDIR}/${PN}-2.24-assert-test-failure.patch"
136
137 # Do not try to remove files on live filesystem, upstream bug #619274
138 sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
139 -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
140
141 if ! use test; then
142 # don't waste time building tests
143 sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die
144 else
145 # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
146 if ! has_version dev-util/desktop-file-utils ; then
147 ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
148 ewarn "think on installing it to get these tests run."
149 sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
150 sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
151 sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
152 sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
153 fi
154 fi
155
156 # gdbus-codegen is a separate package
157 epatch "${FILESDIR}/${PN}-2.29.18-external-gdbus-codegen.patch"
158
159 # disable pyc compiling
160 ln -sfn $(type -P true) py-compile
161
162 # Needed for the punt-python-check patch, disabling timeout test
163 # Also needed to prevent croscompile failures, see bug #267603
164 # Also needed for the no-gdbus-codegen patch
165 AT_M4DIR="${WORKDIR}" eautoreconf
166
167 [[ ${CHOST} == *-freebsd* ]] && elibtoolize
168
169 epunt_cxx
170 }
171
172 src_configure() {
173 # Avoid circular depend with dev-util/pkgconfig
174 if ! has_version dev-util/pkgconfig; then
175 export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
176 export DBUS1_LIBS="-ldbus-1"
177 fi
178
179 local myconf
180
181 # Building with --disable-debug highly unrecommended. It will build glib in
182 # an unusable form as it disables some commonly used API. Please do not
183 # convert this to the use_enable form, as it results in a broken build.
184 # -- compnerd (3/27/06)
185 use debug && myconf="--enable-debug"
186
187 # Always use internal libpcre, bug #254659
188 econf ${myconf} \
189 $(use_enable xattr) \
190 $(use_enable doc man) \
191 $(use_enable doc gtk-doc) \
192 $(use_enable fam) \
193 $(use_enable selinux) \
194 $(use_enable static-libs static) \
195 $(use_enable systemtap dtrace) \
196 $(use_enable systemtap systemtap) \
197 --enable-regex \
198 --with-pcre=internal \
199 --with-threads=posix
200 }
201
202 src_install() {
203 local f
204 emake DESTDIR="${D}" install || die "Installation failed"
205
206 # Do not install charset.alias even if generated, leave it to libiconv
207 rm -f "${ED}/usr/lib/charset.alias"
208
209 # Don't install gdb python macros, bug 291328
210 rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
211
212 dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed"
213
214 insinto /usr/share/bash-completion
215 for f in gdbus gsettings; do
216 newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f} || die
217 done
218 rm -rf "${ED}/etc"
219
220 # Completely useless with or without USE static-libs, people need to use
221 # pkg-config
222 find "${ED}" -name '*.la' -exec rm -f {} +
223 }
224
225 src_test() {
226 unset DBUS_SESSION_BUS_ADDRESS
227 export XDG_CONFIG_DIRS=/etc/xdg
228 export XDG_DATA_DIRS=/usr/local/share:/usr/share
229 export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
230 export XDG_DATA_HOME="${T}"
231 unset GSETTINGS_BACKEND # bug 352451
232
233 # Related test is a bit nitpicking
234 mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
235 chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
236
237 # Hardened: gdb needs this, bug #338891
238 if host-is-pax ; then
239 pax-mark -mr "${S}"/tests/.libs/assert-msg-test \
240 || die "Hardened adjustment failed"
241 fi
242
243 # Need X for dbus-launch session X11 initialization
244 Xemake check || die "tests failed"
245 }
246
247 pkg_preinst() {
248 # Only give the introspection message if:
249 # * The user has gobject-introspection
250 # * Has glib already installed
251 # * Previous version was different from new version
252 if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then
253 ewarn "You must rebuild gobject-introspection so that the installed"
254 ewarn "typelibs and girs are regenerated for the new APIs in glib"
255 fi
256 }
257
258 pkg_postinst() {
259 # Inform users about possible breakage when updating glib and not dbus-glib, bug #297483
260 if has_version dev-libs/dbus-glib; then
261 ewarn "If you experience a breakage after updating dev-libs/glib try"
262 ewarn "rebuilding dev-libs/dbus-glib"
263 fi
264
265 if has_version '<x11-libs/gtk+-3.0.12:3'; then
266 # To have a clear upgrade path for gtk+-3.0.x users, have to resort to
267 # a warning instead of a blocker
268 ewarn
269 ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
270 ewarn "You should upgrade to a newer version of gtk+:3 immediately."
271 fi
272 }