Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/glib/
Date: Sat, 30 Jul 2016 20:37:35
Message-Id: 1469911003.61a378f5ffd2996f2bf8b21c61a67430a6e34567.pacho@gentoo
1 commit: 61a378f5ffd2996f2bf8b21c61a67430a6e34567
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 19:29:29 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 20:36:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a378f5
7
8 dev-libs/glib: Drop old
9
10 Package-Manager: portage-2.3.0
11
12 dev-libs/glib/Manifest | 1 -
13 dev-libs/glib/glib-2.46.2-r2.ebuild | 314 ------------------------------------
14 dev-libs/glib/glib-2.48.0-r1.ebuild | 296 ---------------------------------
15 3 files changed, 611 deletions(-)
16
17 diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest
18 index c543151..f8b0e92 100644
19 --- a/dev-libs/glib/Manifest
20 +++ b/dev-libs/glib/Manifest
21 @@ -2,6 +2,5 @@ DIST glib-1.2.10-r1-as-needed.patch.bz2 9099 SHA256 3bb8c45706f97b526da851061c89
22 DIST glib-1.2.10.tar.gz 421480 SHA256 6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f SHA512 4452b741382194d4ca425f084fa60e1a9e30040ac2e839c9136047d0461cf4b1ebcc16aac4e65998d1b9329ead8f617966b3d09317a83634f14d556a7e14b7a8 WHIRLPOOL 478957ce8e49228d022bae50b042cdfc6d522d0d4880a0328b5695471295450c81c5e186e1760e56e317a4c4c95aabc5f2010d7a9b912fc451d04e14610e7dca
23 DIST glib-2.44.1.tar.xz 7132940 SHA256 8811deacaf8a503d0a9b701777ea079ca6a4277be10e3d730d2112735d5eca07 SHA512 c24d307408e061b2657f7e7d1b8245c55605ebda26ee2dcc3497ee9d90bfc137d8e5f42f0cd5acf4b49ea28c424fa901e81f75ecf81833f6d0fe51d5e36e5888 WHIRLPOOL 6a1eef94b3ffed4d5cb551f4def6859ddff8ea0aac50048e706863f2bd4957c40b7034946852fa4604a109eb121c55b94ec51b3708a325ace5692f61fd1babb7
24 DIST glib-2.46.2.tar.xz 7344636 SHA256 5031722e37036719c1a09163cc6cf7c326e4c4f1f1e074b433c156862bd733db SHA512 8b5298712710d77b4a47367071f782d2bb3042b149ec8fde8c065f80bf3c5375c94318d19665c0092572e4895e590231a47324d25f371310f02b43feb3009588 WHIRLPOOL 700b69360110351544780ace4dcb14f29505f63d8840882532a4b7c017860b6da86e09cbabca691b7b24cb08b8722e772555de044b8b21e4b0952c8a8e4e6ecb
25 -DIST glib-2.48.0.tar.xz 7487800 SHA256 744be6931ca914c68af98dc38ff6b0cf8381d65e335060faddfbf04c17147c34 SHA512 684544bc594d9f6c905495d895daed40b074bcf5fa835aefb9a1034afc9564b2bd464e68d4c378c210e96918ef5d5202350da53a7104794420e990049ddbebf5 WHIRLPOOL 39ddd7fd17ecc2100f2156165210d2cf68ae13724b252e42705bc89d0c4145cddca3a30f9e3bf9b6a2971cbffe0e108d2acae1200c8fe6d9db91b4b3953c4950
26 DIST glib-2.48.1.tar.xz 7441032 SHA256 74411bff489cb2a3527bac743a51018841a56a4d896cc1e0d0d54f8166a14612 SHA512 5bbea7d07ba6d75c35c6be8f1ebc685aa2549bd20030741b2d6e2c30e9b2d476c2afa50a974bbdad98c305666c8b04357b51619c97fe50d3e9965700088aad9b WHIRLPOOL 2f08854815fee79b6246accedb62a714845b7f0bc67bcd6cde48aa0147a957e6c9cbbc424100d651ee5573f31a3db89ee1935e3ffdc97c5bf1d5711a85545eb2
27 DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
28
29 diff --git a/dev-libs/glib/glib-2.46.2-r2.ebuild b/dev-libs/glib/glib-2.46.2-r2.ebuild
30 deleted file mode 100644
31 index 23f7d38..0000000
32 --- a/dev-libs/glib/glib-2.46.2-r2.ebuild
33 +++ /dev/null
34 @@ -1,314 +0,0 @@
35 -# Copyright 1999-2016 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38 -
39 -# Until bug #537330 glib is a reverse dependency of pkgconfig and, then
40 -# adding new dependencies end up making stage3 to grow. Every addition needs
41 -# then to be think very closely.
42 -
43 -EAPI="5"
44 -PYTHON_COMPAT=( python2_7 )
45 -# Building with --disable-debug highly unrecommended. It will build glib in
46 -# an unusable form as it disables some commonly used API. Please do not
47 -# convert this to the use_enable form, as it results in a broken build.
48 -GCONF_DEBUG="yes"
49 -# Completely useless with or without USE static-libs, people need to use
50 -# pkg-config
51 -GNOME2_LA_PUNT="yes"
52 -
53 -inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \
54 - pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
55 -
56 -DESCRIPTION="The GLib library of C routines"
57 -HOMEPAGE="http://www.gtk.org/"
58 -SRC_URI="${SRC_URI}
59 - https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
60 -
61 -LICENSE="LGPL-2+"
62 -SLOT="2"
63 -IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
64 -REQUIRED_USE="
65 - utils? ( ${PYTHON_REQUIRED_USE} )
66 - test? ( ${PYTHON_REQUIRED_USE} )
67 -"
68 -
69 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
70 -
71 -RDEPEND="
72 - !<dev-util/gdbus-codegen-${PV}
73 - >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
74 - >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
75 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
76 - selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
77 - xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
78 - fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
79 - utils? (
80 - ${PYTHON_DEPS}
81 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
82 - virtual/libelf:0=
83 - )
84 -"
85 -DEPEND="${RDEPEND}
86 - app-text/docbook-xml-dtd:4.1.2
87 - >=dev-libs/libxslt-1.0
88 - >=sys-devel/gettext-0.11
89 - >=dev-util/gtk-doc-am-1.20
90 - systemtap? ( >=dev-util/systemtap-1.3 )
91 - test? (
92 - sys-devel/gdb
93 - ${PYTHON_DEPS}
94 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
95 - >=sys-apps/dbus-1.2.14 )
96 - !<dev-util/gtk-doc-1.15-r2
97 -"
98 -# gobject-introspection blocker to ensure people don't mix
99 -# different g-i and glib major versions
100 -
101 -PDEPEND="!<gnome-base/gvfs-1.6.4-r990
102 - dbus? ( gnome-base/dconf )
103 - mime? ( x11-misc/shared-mime-info )
104 -"
105 -# shared-mime-info needed for gio/xdgmime, bug #409481
106 -# dconf is needed to be able to save settings, bug #498436
107 -# Earlier versions of gvfs do not work with glib
108 -
109 -MULTILIB_CHOST_TOOLS=(
110 - /usr/bin/gio-querymodules
111 -)
112 -
113 -pkg_setup() {
114 - if use kernel_linux ; then
115 - CONFIG_CHECK="~INOTIFY_USER"
116 - if use test; then
117 - CONFIG_CHECK="~IPV6"
118 - WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
119 - fi
120 - linux-info_pkg_setup
121 - fi
122 -}
123 -
124 -src_prepare() {
125 - # GDBusProxy: Fix a memory leak during initialization (from 2.46 branch)
126 - epatch "${FILESDIR}"/${P}-memleak.patch
127 -
128 - # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
129 - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
130 -
131 - if use test; then
132 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
133 - if ! has_version dev-util/desktop-file-utils ; then
134 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
135 - ewarn "think on installing it to get these tests run."
136 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
137 - sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
138 - fi
139 -
140 - # gdesktopappinfo requires existing terminal (gnome-terminal or any
141 - # other), falling back to xterm if one doesn't exist
142 - if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
143 - ewarn "Some tests will be skipped due to missing terminal program"
144 - sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
145 - fi
146 -
147 - # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
148 - if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then
149 - ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3"
150 - ewarn "not being present on your system, think on installing them to get these tests run."
151 - sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
152 - sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
153 - sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
154 - sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
155 - sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
156 - sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
157 - sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
158 - # needed to prevent gdbus-threading from asserting
159 - ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
160 - fi
161 -
162 - # Some tests need ipv6, upstream bug #667468
163 - # https://bugs.gentoo.org/show_bug.cgi?id=508752
164 - if [[ ! -f /proc/net/if_net6 ]]; then
165 - sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die
166 - sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die
167 - sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die
168 - fi
169 -
170 - # This test is prone to fail, bug #504024, upstream bug #723719
171 - sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die
172 -
173 - # https://bugzilla.gnome.org/show_bug.cgi?id=722604
174 - sed -i -e "/timer\/stop/d" glib/tests/timer.c || die
175 - sed -i -e "/timer\/basic/d" glib/tests/timer.c || die
176 - else
177 - # Don't build tests, also prevents extra deps, bug #512022
178 - sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
179 - fi
180 -
181 - # gdbus-codegen is a separate package
182 - epatch "${FILESDIR}"/${PN}-2.40.0-external-gdbus-codegen.patch
183 -
184 - # leave python shebang alone
185 - sed -e '/${PYTHON}/d' \
186 - -i glib/Makefile.{am,in} || die
187 -
188 - epatch_user
189 -
190 - # Also needed to prevent cross-compile failures, see bug #267603
191 - eautoreconf
192 -
193 - gnome2_src_prepare
194 -
195 - epunt_cxx
196 -}
197 -
198 -multilib_src_configure() {
199 - # Avoid circular depend with dev-util/pkgconfig and
200 - # native builds (cross-compiles won't need pkg-config
201 - # in the target ROOT to work here)
202 - if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
203 - if has_version sys-apps/dbus; then
204 - export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
205 - export DBUS1_LIBS="-ldbus-1"
206 - fi
207 - export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
208 - export LIBFFI_LIBS="-lffi"
209 - fi
210 -
211 - # These configure tests don't work when cross-compiling.
212 - if tc-is-cross-compiler ; then
213 - # https://bugzilla.gnome.org/show_bug.cgi?id=756473
214 - case ${CHOST} in
215 - hppa*|metag*) export glib_cv_stack_grows=yes ;;
216 - *) export glib_cv_stack_grows=no ;;
217 - esac
218 - # https://bugzilla.gnome.org/show_bug.cgi?id=756474
219 - export glib_cv_uscore=no
220 - # https://bugzilla.gnome.org/show_bug.cgi?id=756475
221 - export ac_cv_func_posix_get{pwuid,grgid}_r=yes
222 - fi
223 -
224 - local myconf
225 -
226 - case "${CHOST}" in
227 - *-mingw*) myconf="${myconf} --with-threads=win32" ;;
228 - *) myconf="${myconf} --with-threads=posix" ;;
229 - esac
230 -
231 - # FIXME: Always use internal libpcre, bug #254659
232 - # (maybe consider going back to system lib)
233 - # libelf used only by the gresource bin
234 - ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
235 - $(use_enable xattr) \
236 - $(use_enable fam) \
237 - $(use_enable selinux) \
238 - $(use_enable static-libs static) \
239 - $(use_enable systemtap dtrace) \
240 - $(use_enable systemtap systemtap) \
241 - $(multilib_native_use_enable utils libelf) \
242 - --disable-compile-warnings \
243 - --enable-man \
244 - --with-pcre=internal \
245 - --with-xml-catalog="${EPREFIX}/etc/xml/catalog"
246 -
247 - if multilib_is_native_abi; then
248 - local d
249 - for d in glib gio gobject; do
250 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
251 - done
252 - fi
253 -}
254 -
255 -multilib_src_test() {
256 - export XDG_CONFIG_DIRS=/etc/xdg
257 - export XDG_DATA_DIRS=/usr/local/share:/usr/share
258 - export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
259 - export LC_TIME=C # bug #411967
260 - python_export_best
261 -
262 - # Related test is a bit nitpicking
263 - mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
264 - chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
265 -
266 - # Hardened: gdb needs this, bug #338891
267 - if host-is-pax ; then
268 - pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
269 - || die "Hardened adjustment failed"
270 - fi
271 -
272 - # Need X for dbus-launch session X11 initialization
273 - Xemake check
274 -}
275 -
276 -multilib_src_install() {
277 - gnome2_src_install completiondir="$(get_bashcompdir)"
278 - keepdir /usr/$(get_libdir)/gio/modules
279 -}
280 -
281 -multilib_src_install_all() {
282 - DOCS="AUTHORS ChangeLog* NEWS* README"
283 - einstalldocs
284 -
285 - if use utils ; then
286 - python_replicate_script "${ED}"/usr/bin/gtester-report
287 - else
288 - rm "${ED}usr/bin/gtester-report"
289 - rm "${ED}usr/share/man/man1/gtester-report.1"
290 - fi
291 -
292 - # Do not install charset.alias even if generated, leave it to libiconv
293 - rm -f "${ED}/usr/lib/charset.alias"
294 -
295 - # Don't install gdb python macros, bug 291328
296 - rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
297 -}
298 -
299 -pkg_preinst() {
300 - gnome2_pkg_preinst
301 -
302 - # Make gschemas.compiled belong to glib alone
303 - local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
304 -
305 - if [[ -e ${EROOT}${cache} ]]; then
306 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
307 - else
308 - touch "${ED}"/${cache} || die
309 - fi
310 -
311 - multilib_pkg_preinst() {
312 - # Make giomodule.cache belong to glib alone
313 - local cache="usr/$(get_libdir)/gio/giomodule.cache"
314 -
315 - if [[ -e ${EROOT}${cache} ]]; then
316 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
317 - else
318 - touch "${ED}"/${cache} || die
319 - fi
320 - }
321 -
322 - multilib_foreach_abi multilib_pkg_preinst
323 -}
324 -
325 -pkg_postinst() {
326 - # force (re)generation of gschemas.compiled
327 - GNOME2_ECLASS_GLIB_SCHEMAS="force"
328 -
329 - gnome2_pkg_postinst
330 -
331 - multilib_pkg_postinst() {
332 - gnome2_giomodule_cache_update \
333 - || die "Update GIO modules cache failed (for ${ABI})"
334 - }
335 - multilib_foreach_abi multilib_pkg_postinst
336 -}
337 -
338 -pkg_postrm() {
339 - gnome2_pkg_postrm
340 -
341 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
342 - multilib_pkg_postrm() {
343 - rm -f "${EROOT}"usr/$(get_libdir)/gio/giomodule.cache
344 - }
345 - multilib_foreach_abi multilib_pkg_postrm
346 - rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
347 - fi
348 -}
349
350 diff --git a/dev-libs/glib/glib-2.48.0-r1.ebuild b/dev-libs/glib/glib-2.48.0-r1.ebuild
351 deleted file mode 100644
352 index e1e0dd9..0000000
353 --- a/dev-libs/glib/glib-2.48.0-r1.ebuild
354 +++ /dev/null
355 @@ -1,296 +0,0 @@
356 -# Copyright 1999-2016 Gentoo Foundation
357 -# Distributed under the terms of the GNU General Public License v2
358 -# $Id$
359 -
360 -# Until bug #537330 glib is a reverse dependency of pkgconfig and, then
361 -# adding new dependencies end up making stage3 to grow. Every addition needs
362 -# then to be think very closely.
363 -
364 -EAPI="5"
365 -PYTHON_COMPAT=( python2_7 )
366 -# Building with --disable-debug highly unrecommended. It will build glib in
367 -# an unusable form as it disables some commonly used API. Please do not
368 -# convert this to the use_enable form, as it results in a broken build.
369 -GCONF_DEBUG="yes"
370 -# Completely useless with or without USE static-libs, people need to use
371 -# pkg-config
372 -GNOME2_LA_PUNT="yes"
373 -
374 -inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \
375 - pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
376 -
377 -DESCRIPTION="The GLib library of C routines"
378 -HOMEPAGE="http://www.gtk.org/"
379 -SRC_URI="${SRC_URI}
380 - https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
381 -
382 -LICENSE="LGPL-2+"
383 -SLOT="2"
384 -IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
385 -REQUIRED_USE="
386 - utils? ( ${PYTHON_REQUIRED_USE} )
387 - test? ( ${PYTHON_REQUIRED_USE} )
388 -"
389 -
390 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
391 -
392 -RDEPEND="
393 - !<dev-util/gdbus-codegen-${PV}
394 - >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
395 - >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
396 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
397 - selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
398 - xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
399 - fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
400 - utils? (
401 - ${PYTHON_DEPS}
402 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
403 - virtual/libelf:0=
404 - )
405 -"
406 -DEPEND="${RDEPEND}
407 - app-text/docbook-xml-dtd:4.1.2
408 - >=dev-libs/libxslt-1.0
409 - >=sys-devel/gettext-0.11
410 - >=dev-util/gtk-doc-am-1.20
411 - systemtap? ( >=dev-util/systemtap-1.3 )
412 - test? (
413 - sys-devel/gdb
414 - ${PYTHON_DEPS}
415 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
416 - >=sys-apps/dbus-1.2.14 )
417 - !<dev-util/gtk-doc-1.15-r2
418 -"
419 -# gobject-introspection blocker to ensure people don't mix
420 -# different g-i and glib major versions
421 -
422 -PDEPEND="!<gnome-base/gvfs-1.6.4-r990
423 - dbus? ( gnome-base/dconf )
424 - mime? ( x11-misc/shared-mime-info )
425 -"
426 -# shared-mime-info needed for gio/xdgmime, bug #409481
427 -# dconf is needed to be able to save settings, bug #498436
428 -# Earlier versions of gvfs do not work with glib
429 -
430 -MULTILIB_CHOST_TOOLS=(
431 - /usr/bin/gio-querymodules
432 -)
433 -
434 -pkg_setup() {
435 - if use kernel_linux ; then
436 - CONFIG_CHECK="~INOTIFY_USER"
437 - if use test ; then
438 - CONFIG_CHECK="~IPV6"
439 - WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
440 - fi
441 - linux-info_pkg_setup
442 - fi
443 -}
444 -
445 -src_prepare() {
446 - # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
447 - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
448 -
449 - if use test; then
450 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
451 - if ! has_version dev-util/desktop-file-utils ; then
452 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
453 - ewarn "think on installing it to get these tests run."
454 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
455 - sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
456 - fi
457 -
458 - # gdesktopappinfo requires existing terminal (gnome-terminal or any
459 - # other), falling back to xterm if one doesn't exist
460 - if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
461 - ewarn "Some tests will be skipped due to missing terminal program"
462 - sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
463 - fi
464 -
465 - # https://bugzilla.gnome.org/show_bug.cgi?id=722604
466 - sed -i -e "/timer\/stop/d" glib/tests/timer.c || die
467 - sed -i -e "/timer\/basic/d" glib/tests/timer.c || die
468 -
469 - ewarn "Tests for search-utils have been skipped"
470 - sed -i -e "/search-utils/d" glib/tests/Makefile.am || die
471 - else
472 - # Don't build tests, also prevents extra deps, bug #512022
473 - sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
474 - fi
475 -
476 - # gdbus-codegen is a separate package
477 - epatch "${FILESDIR}"/${PN}-2.40.0-external-gdbus-codegen.patch
478 -
479 - # crash in Firefox when choosing default application, fixed in 2.48.1; bug #577686
480 - epatch "${FILESDIR}"/${PN}-2.48.0-GContextSpecificGroup.patch
481 -
482 - # missing from 2.48.0 tarball, should be fixed in 2.48.1; bug #578238
483 - cp "${FILESDIR}"/${P}-gobject.stp.in gobject/gobject.stp.in || die
484 -
485 - # Leave python shebang alone - handled by python_replicate_script
486 - # We could call python_setup and give configure a valid --with-python
487 - # arg, but that would mean a build dep on python when USE=utils.
488 - sed -e '/${PYTHON}/d' \
489 - -i glib/Makefile.{am,in} || die
490 -
491 - epatch_user
492 -
493 - # Also needed to prevent cross-compile failures, see bug #267603
494 - eautoreconf
495 -
496 - gnome2_src_prepare
497 -
498 - epunt_cxx
499 -}
500 -
501 -multilib_src_configure() {
502 - # Avoid circular depend with dev-util/pkgconfig and
503 - # native builds (cross-compiles won't need pkg-config
504 - # in the target ROOT to work here)
505 - if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
506 - if has_version sys-apps/dbus; then
507 - export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
508 - export DBUS1_LIBS="-ldbus-1"
509 - fi
510 - export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
511 - export LIBFFI_LIBS="-lffi"
512 - fi
513 -
514 - # These configure tests don't work when cross-compiling.
515 - if tc-is-cross-compiler ; then
516 - # https://bugzilla.gnome.org/show_bug.cgi?id=756473
517 - case ${CHOST} in
518 - hppa*|metag*) export glib_cv_stack_grows=yes ;;
519 - *) export glib_cv_stack_grows=no ;;
520 - esac
521 - # https://bugzilla.gnome.org/show_bug.cgi?id=756474
522 - export glib_cv_uscore=no
523 - # https://bugzilla.gnome.org/show_bug.cgi?id=756475
524 - export ac_cv_func_posix_get{pwuid,grgid}_r=yes
525 - fi
526 -
527 - local myconf
528 -
529 - case "${CHOST}" in
530 - *-mingw*) myconf="${myconf} --with-threads=win32" ;;
531 - *) myconf="${myconf} --with-threads=posix" ;;
532 - esac
533 -
534 - # FIXME: Always use internal libpcre, bug #254659
535 - # (maybe consider going back to system lib)
536 - # libelf used only by the gresource bin
537 - ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
538 - $(use_enable xattr) \
539 - $(use_enable fam) \
540 - $(use_enable selinux) \
541 - $(use_enable static-libs static) \
542 - $(use_enable systemtap dtrace) \
543 - $(use_enable systemtap systemtap) \
544 - $(multilib_native_use_enable utils libelf) \
545 - --disable-compile-warnings \
546 - --enable-man \
547 - --with-pcre=internal \
548 - --with-xml-catalog="${EPREFIX}/etc/xml/catalog"
549 -
550 - if multilib_is_native_abi; then
551 - local d
552 - for d in glib gio gobject; do
553 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
554 - done
555 - fi
556 -}
557 -
558 -multilib_src_test() {
559 - export XDG_CONFIG_DIRS=/etc/xdg
560 - export XDG_DATA_DIRS=/usr/local/share:/usr/share
561 - export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
562 - export LC_TIME=C # bug #411967
563 - python_setup
564 -
565 - # Related test is a bit nitpicking
566 - mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
567 - chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
568 -
569 - # Hardened: gdb needs this, bug #338891
570 - if host-is-pax ; then
571 - pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
572 - || die "Hardened adjustment failed"
573 - fi
574 -
575 - # Need X for dbus-launch session X11 initialization
576 - Xemake check
577 -}
578 -
579 -multilib_src_install() {
580 - gnome2_src_install completiondir="$(get_bashcompdir)"
581 - keepdir /usr/$(get_libdir)/gio/modules
582 -}
583 -
584 -multilib_src_install_all() {
585 - DOCS="AUTHORS ChangeLog* NEWS* README"
586 - einstalldocs
587 -
588 - if use utils ; then
589 - python_replicate_script "${ED}"/usr/bin/gtester-report
590 - else
591 - rm "${ED}usr/bin/gtester-report"
592 - rm "${ED}usr/share/man/man1/gtester-report.1"
593 - fi
594 -
595 - # Do not install charset.alias even if generated, leave it to libiconv
596 - rm -f "${ED}/usr/lib/charset.alias"
597 -
598 - # Don't install gdb python macros, bug 291328
599 - rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
600 -}
601 -
602 -pkg_preinst() {
603 - gnome2_pkg_preinst
604 -
605 - # Make gschemas.compiled belong to glib alone
606 - local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
607 -
608 - if [[ -e ${EROOT}${cache} ]]; then
609 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
610 - else
611 - touch "${ED}"/${cache} || die
612 - fi
613 -
614 - multilib_pkg_preinst() {
615 - # Make giomodule.cache belong to glib alone
616 - local cache="usr/$(get_libdir)/gio/giomodule.cache"
617 -
618 - if [[ -e ${EROOT}${cache} ]]; then
619 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
620 - else
621 - touch "${ED}"/${cache} || die
622 - fi
623 - }
624 -
625 - multilib_foreach_abi multilib_pkg_preinst
626 -}
627 -
628 -pkg_postinst() {
629 - # force (re)generation of gschemas.compiled
630 - GNOME2_ECLASS_GLIB_SCHEMAS="force"
631 -
632 - gnome2_pkg_postinst
633 -
634 - multilib_pkg_postinst() {
635 - gnome2_giomodule_cache_update \
636 - || die "Update GIO modules cache failed (for ${ABI})"
637 - }
638 - multilib_foreach_abi multilib_pkg_postinst
639 -}
640 -
641 -pkg_postrm() {
642 - gnome2_pkg_postrm
643 -
644 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
645 - multilib_pkg_postrm() {
646 - rm -f "${EROOT}"usr/$(get_libdir)/gio/giomodule.cache
647 - }
648 - multilib_foreach_abi multilib_pkg_postrm
649 - rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
650 - fi
651 -}