1 |
commit: e05d2361accb56967ebfe471f97c39888e17064f |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 12:02:19 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 12:02:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e05d2361 |
7 |
|
8 |
dev-libs/glib: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
dev-libs/glib/Manifest | 1 - |
13 |
dev-libs/glib/glib-2.42.2.ebuild | 270 -------------------------------------- |
14 |
dev-libs/glib/glib-2.44.1.ebuild | 270 -------------------------------------- |
15 |
dev-libs/glib/glib-2.46.2.ebuild | 275 --------------------------------------- |
16 |
4 files changed, 816 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest |
19 |
index 6e3a252..37352e5 100644 |
20 |
--- a/dev-libs/glib/Manifest |
21 |
+++ b/dev-libs/glib/Manifest |
22 |
@@ -1,6 +1,5 @@ |
23 |
DIST glib-1.2.10-r1-as-needed.patch.bz2 9099 SHA256 3bb8c45706f97b526da851061c89618bc258fa61f9100802c1340548e4bb2731 SHA512 e65c7f66254eae22deaa67bf621ebd1d7af897b93d93ba6cffaa4ce9894cf14c140e6888d877b6b36fcea8be1b8d1ef4fcc7ec1719bd23b1cc6fd662876c70ae WHIRLPOOL 20254678a86595353058ee8dc81a02e4ae7bb16ba9ba34e036fe2e99d3fffa25c825f8961bdeb5fa50c49582ce37e65684e414631c74653c4523c2baee34c341 |
24 |
DIST glib-1.2.10.tar.gz 421480 SHA256 6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f SHA512 4452b741382194d4ca425f084fa60e1a9e30040ac2e839c9136047d0461cf4b1ebcc16aac4e65998d1b9329ead8f617966b3d09317a83634f14d556a7e14b7a8 WHIRLPOOL 478957ce8e49228d022bae50b042cdfc6d522d0d4880a0328b5695471295450c81c5e186e1760e56e317a4c4c95aabc5f2010d7a9b912fc451d04e14610e7dca |
25 |
-DIST glib-2.42.2.tar.xz 7002480 SHA256 a3cc1ebd2bd310a9fdf42ae4293ee713cdf1764bd29f552febf3bf44cadae7db SHA512 6b46e4ac67d79ca2cc5c32ceb7cc8112140645032cb3c8c9ba2f59a0d3c2aee06707b7573bbd72f6c21ea7798a7351bd205aa57857a58b0be008c75f897ef782 WHIRLPOOL 5c25c5f6d20217cce4f8c34d9d05cd39197b4b36c5a85447943fcab47cd343253879516b722eb0c4895eebae5f3d4e76c820730b9e7f6c890aca9c87dc963564 |
26 |
DIST glib-2.44.1.tar.xz 7132940 SHA256 8811deacaf8a503d0a9b701777ea079ca6a4277be10e3d730d2112735d5eca07 SHA512 c24d307408e061b2657f7e7d1b8245c55605ebda26ee2dcc3497ee9d90bfc137d8e5f42f0cd5acf4b49ea28c424fa901e81f75ecf81833f6d0fe51d5e36e5888 WHIRLPOOL 6a1eef94b3ffed4d5cb551f4def6859ddff8ea0aac50048e706863f2bd4957c40b7034946852fa4604a109eb121c55b94ec51b3708a325ace5692f61fd1babb7 |
27 |
DIST glib-2.46.2.tar.xz 7344636 SHA256 5031722e37036719c1a09163cc6cf7c326e4c4f1f1e074b433c156862bd733db SHA512 8b5298712710d77b4a47367071f782d2bb3042b149ec8fde8c065f80bf3c5375c94318d19665c0092572e4895e590231a47324d25f371310f02b43feb3009588 WHIRLPOOL 700b69360110351544780ace4dcb14f29505f63d8840882532a4b7c017860b6da86e09cbabca691b7b24cb08b8722e772555de044b8b21e4b0952c8a8e4e6ecb |
28 |
DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486 |
29 |
|
30 |
diff --git a/dev-libs/glib/glib-2.42.2.ebuild b/dev-libs/glib/glib-2.42.2.ebuild |
31 |
deleted file mode 100644 |
32 |
index 90502a1..0000000 |
33 |
--- a/dev-libs/glib/glib-2.42.2.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,270 +0,0 @@ |
36 |
-# Copyright 1999-2015 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
-# $Id$ |
39 |
- |
40 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
41 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
42 |
-# then to be think very closely. |
43 |
- |
44 |
-EAPI="5" |
45 |
-PYTHON_COMPAT=( python2_7 ) |
46 |
-# Building with --disable-debug highly unrecommended. It will build glib in |
47 |
-# an unusable form as it disables some commonly used API. Please do not |
48 |
-# convert this to the use_enable form, as it results in a broken build. |
49 |
-GCONF_DEBUG="yes" |
50 |
-# Completely useless with or without USE static-libs, people need to use |
51 |
-# pkg-config |
52 |
-GNOME2_LA_PUNT="yes" |
53 |
- |
54 |
-inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \ |
55 |
- pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal |
56 |
- |
57 |
-DESCRIPTION="The GLib library of C routines" |
58 |
-HOMEPAGE="http://www.gtk.org/" |
59 |
-SRC_URI="${SRC_URI} |
60 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
61 |
- |
62 |
-LICENSE="LGPL-2+" |
63 |
-SLOT="2" |
64 |
-IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
65 |
-REQUIRED_USE=" |
66 |
- utils? ( ${PYTHON_REQUIRED_USE} ) |
67 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
68 |
-" |
69 |
- |
70 |
-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" |
71 |
- |
72 |
-RDEPEND=" |
73 |
- !<dev-util/gdbus-codegen-${PV} |
74 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
75 |
- >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
76 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
77 |
- || ( |
78 |
- >=dev-libs/elfutils-0.142 |
79 |
- >=dev-libs/libelf-0.8.12 |
80 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
81 |
- ) |
82 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
83 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
84 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
85 |
- utils? ( |
86 |
- ${PYTHON_DEPS} |
87 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
88 |
- abi_x86_32? ( |
89 |
- !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
90 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
91 |
- ) |
92 |
-" |
93 |
-DEPEND="${RDEPEND} |
94 |
- app-text/docbook-xml-dtd:4.1.2 |
95 |
- >=dev-libs/libxslt-1.0 |
96 |
- >=sys-devel/gettext-0.11 |
97 |
- >=dev-util/gtk-doc-am-1.20 |
98 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
99 |
- test? ( |
100 |
- sys-devel/gdb |
101 |
- ${PYTHON_DEPS} |
102 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
103 |
- >=sys-apps/dbus-1.2.14 ) |
104 |
- !<dev-util/gtk-doc-1.15-r2 |
105 |
-" |
106 |
-# gobject-introspection blocker to ensure people don't mix |
107 |
-# different g-i and glib major versions |
108 |
- |
109 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
110 |
- dbus? ( gnome-base/dconf ) |
111 |
- mime? ( x11-misc/shared-mime-info ) |
112 |
-" |
113 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
114 |
-# dconf is needed to be able to save settings, bug #498436 |
115 |
-# Earlier versions of gvfs do not work with glib |
116 |
- |
117 |
-pkg_setup() { |
118 |
- if use kernel_linux ; then |
119 |
- CONFIG_CHECK="~INOTIFY_USER" |
120 |
- if use test; then |
121 |
- CONFIG_CHECK="~IPV6" |
122 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
123 |
- export IPV6_DISABLED="yes" |
124 |
- fi |
125 |
- linux-info_pkg_setup |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-src_prepare() { |
130 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
131 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
132 |
- |
133 |
- if use test; then |
134 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
135 |
- if ! has_version dev-util/desktop-file-utils ; then |
136 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
137 |
- ewarn "think on installing it to get these tests run." |
138 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
139 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
140 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
141 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
142 |
- fi |
143 |
- |
144 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
145 |
- # other), falling back to xterm if one doesn't exist |
146 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
147 |
- ewarn "Some tests will be skipped due to missing terminal program" |
148 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
149 |
- fi |
150 |
- |
151 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
152 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
153 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
154 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
155 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
156 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
157 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
158 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
159 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
160 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
161 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
162 |
- # needed to prevent gdbus-threading from asserting |
163 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
164 |
- fi |
165 |
- |
166 |
- # Some tests need ipv6, upstream bug #667468 |
167 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
168 |
- sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die |
169 |
- sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die |
170 |
- sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die |
171 |
- fi |
172 |
- |
173 |
- # thread test fails, upstream bug #679306 |
174 |
- # FIXME: we need to check if it's still failing as upstream thinks something |
175 |
- # is wrong in our setups |
176 |
- #epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
177 |
- |
178 |
- # This test is prone to fail, bug #504024, upstream bug #723719 |
179 |
- sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die |
180 |
- else |
181 |
- # Don't build tests, also prevents extra deps, bug #512022 |
182 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
183 |
- fi |
184 |
- |
185 |
- # gdbus-codegen is a separate package |
186 |
- epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch" |
187 |
- |
188 |
- # leave python shebang alone |
189 |
- sed -e '/${PYTHON}/d' \ |
190 |
- -i glib/Makefile.{am,in} || die |
191 |
- |
192 |
- # Gentoo handles completions in a different directory |
193 |
- sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \ |
194 |
- gio/Makefile.am || die |
195 |
- |
196 |
- epatch_user |
197 |
- |
198 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
199 |
- eautoreconf |
200 |
- |
201 |
- gnome2_src_prepare |
202 |
- |
203 |
- epunt_cxx |
204 |
-} |
205 |
- |
206 |
-multilib_src_configure() { |
207 |
- # Avoid circular depend with dev-util/pkgconfig and |
208 |
- # native builds (cross-compiles won't need pkg-config |
209 |
- # in the target ROOT to work here) |
210 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
211 |
- if has_version sys-apps/dbus; then |
212 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
213 |
- export DBUS1_LIBS="-ldbus-1" |
214 |
- fi |
215 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
216 |
- export LIBFFI_LIBS="-lffi" |
217 |
- fi |
218 |
- |
219 |
- local myconf |
220 |
- |
221 |
- case "${CHOST}" in |
222 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
223 |
- *) myconf="${myconf} --with-threads=posix" ;; |
224 |
- esac |
225 |
- |
226 |
- # Only used by the gresource bin |
227 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
228 |
- |
229 |
- # FIXME: Always use internal libpcre, bug #254659 |
230 |
- # (maybe consider going back to system lib |
231 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
232 |
- $(use_enable xattr) \ |
233 |
- $(use_enable fam) \ |
234 |
- $(use_enable selinux) \ |
235 |
- $(use_enable static-libs static) \ |
236 |
- $(use_enable systemtap dtrace) \ |
237 |
- $(use_enable systemtap systemtap) \ |
238 |
- --disable-compile-warnings \ |
239 |
- --enable-man \ |
240 |
- --with-pcre=internal \ |
241 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
242 |
- |
243 |
- if multilib_is_native_abi; then |
244 |
- local d |
245 |
- for d in glib gio gobject; do |
246 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
247 |
- done |
248 |
- fi |
249 |
-} |
250 |
- |
251 |
-multilib_src_test() { |
252 |
- unset DBUS_SESSION_BUS_ADDRESS |
253 |
- export XDG_CONFIG_DIRS=/etc/xdg |
254 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
255 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
256 |
- unset GSETTINGS_BACKEND # bug 352451 |
257 |
- export LC_TIME=C # bug #411967 |
258 |
- python_export_best |
259 |
- |
260 |
- # Related test is a bit nitpicking |
261 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
262 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
263 |
- |
264 |
- # Hardened: gdb needs this, bug #338891 |
265 |
- if host-is-pax ; then |
266 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
267 |
- || die "Hardened adjustment failed" |
268 |
- fi |
269 |
- |
270 |
- # Need X for dbus-launch session X11 initialization |
271 |
- Xemake check |
272 |
-} |
273 |
- |
274 |
-multilib_src_install() { |
275 |
- gnome2_src_install |
276 |
-} |
277 |
- |
278 |
-multilib_src_install_all() { |
279 |
- DOCS="AUTHORS ChangeLog* NEWS* README" |
280 |
- einstalldocs |
281 |
- |
282 |
- if use utils ; then |
283 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
284 |
- else |
285 |
- rm "${ED}usr/bin/gtester-report" |
286 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
287 |
- fi |
288 |
- |
289 |
- # Do not install charset.alias even if generated, leave it to libiconv |
290 |
- rm -f "${ED}/usr/lib/charset.alias" |
291 |
- |
292 |
- # Don't install gdb python macros, bug 291328 |
293 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
294 |
-} |
295 |
- |
296 |
-pkg_postinst() { |
297 |
- gnome2_pkg_postinst |
298 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
299 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
300 |
- # a warning instead of a blocker |
301 |
- ewarn |
302 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
303 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
304 |
- fi |
305 |
-} |
306 |
|
307 |
diff --git a/dev-libs/glib/glib-2.44.1.ebuild b/dev-libs/glib/glib-2.44.1.ebuild |
308 |
deleted file mode 100644 |
309 |
index fdd6473..0000000 |
310 |
--- a/dev-libs/glib/glib-2.44.1.ebuild |
311 |
+++ /dev/null |
312 |
@@ -1,270 +0,0 @@ |
313 |
-# Copyright 1999-2015 Gentoo Foundation |
314 |
-# Distributed under the terms of the GNU General Public License v2 |
315 |
-# $Id$ |
316 |
- |
317 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
318 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
319 |
-# then to be think very closely. |
320 |
- |
321 |
-EAPI="5" |
322 |
-PYTHON_COMPAT=( python2_7 ) |
323 |
-# Building with --disable-debug highly unrecommended. It will build glib in |
324 |
-# an unusable form as it disables some commonly used API. Please do not |
325 |
-# convert this to the use_enable form, as it results in a broken build. |
326 |
-GCONF_DEBUG="yes" |
327 |
-# Completely useless with or without USE static-libs, people need to use |
328 |
-# pkg-config |
329 |
-GNOME2_LA_PUNT="yes" |
330 |
- |
331 |
-inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \ |
332 |
- pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal |
333 |
- |
334 |
-DESCRIPTION="The GLib library of C routines" |
335 |
-HOMEPAGE="http://www.gtk.org/" |
336 |
-SRC_URI="${SRC_URI} |
337 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
338 |
- |
339 |
-LICENSE="LGPL-2+" |
340 |
-SLOT="2" |
341 |
-IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
342 |
-REQUIRED_USE=" |
343 |
- utils? ( ${PYTHON_REQUIRED_USE} ) |
344 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
345 |
-" |
346 |
- |
347 |
-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" |
348 |
- |
349 |
-RDEPEND=" |
350 |
- !<dev-util/gdbus-codegen-${PV} |
351 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
352 |
- >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
353 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
354 |
- || ( |
355 |
- >=dev-libs/elfutils-0.142 |
356 |
- >=dev-libs/libelf-0.8.12 |
357 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
358 |
- ) |
359 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
360 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
361 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
362 |
- utils? ( |
363 |
- ${PYTHON_DEPS} |
364 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
365 |
- abi_x86_32? ( |
366 |
- !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
367 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
368 |
- ) |
369 |
-" |
370 |
-DEPEND="${RDEPEND} |
371 |
- app-text/docbook-xml-dtd:4.1.2 |
372 |
- >=dev-libs/libxslt-1.0 |
373 |
- >=sys-devel/gettext-0.11 |
374 |
- >=dev-util/gtk-doc-am-1.20 |
375 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
376 |
- test? ( |
377 |
- sys-devel/gdb |
378 |
- ${PYTHON_DEPS} |
379 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
380 |
- >=sys-apps/dbus-1.2.14 ) |
381 |
- !<dev-util/gtk-doc-1.15-r2 |
382 |
-" |
383 |
-# gobject-introspection blocker to ensure people don't mix |
384 |
-# different g-i and glib major versions |
385 |
- |
386 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
387 |
- dbus? ( gnome-base/dconf ) |
388 |
- mime? ( x11-misc/shared-mime-info ) |
389 |
-" |
390 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
391 |
-# dconf is needed to be able to save settings, bug #498436 |
392 |
-# Earlier versions of gvfs do not work with glib |
393 |
- |
394 |
-pkg_setup() { |
395 |
- if use kernel_linux ; then |
396 |
- CONFIG_CHECK="~INOTIFY_USER" |
397 |
- if use test; then |
398 |
- CONFIG_CHECK="~IPV6" |
399 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
400 |
- export IPV6_DISABLED="yes" |
401 |
- fi |
402 |
- linux-info_pkg_setup |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_prepare() { |
407 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
408 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
409 |
- |
410 |
- if use test; then |
411 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
412 |
- if ! has_version dev-util/desktop-file-utils ; then |
413 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
414 |
- ewarn "think on installing it to get these tests run." |
415 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
416 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
417 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
418 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
419 |
- fi |
420 |
- |
421 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
422 |
- # other), falling back to xterm if one doesn't exist |
423 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
424 |
- ewarn "Some tests will be skipped due to missing terminal program" |
425 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
426 |
- fi |
427 |
- |
428 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
429 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
430 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
431 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
432 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
433 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
434 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
435 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
436 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
437 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
438 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
439 |
- # needed to prevent gdbus-threading from asserting |
440 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
441 |
- fi |
442 |
- |
443 |
- # Some tests need ipv6, upstream bug #667468 |
444 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
445 |
- sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die |
446 |
- sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die |
447 |
- sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die |
448 |
- fi |
449 |
- |
450 |
- # thread test fails, upstream bug #679306 |
451 |
- # FIXME: we need to check if it's still failing as upstream thinks something |
452 |
- # is wrong in our setups |
453 |
- #epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
454 |
- |
455 |
- # This test is prone to fail, bug #504024, upstream bug #723719 |
456 |
- sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die |
457 |
- else |
458 |
- # Don't build tests, also prevents extra deps, bug #512022 |
459 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
460 |
- fi |
461 |
- |
462 |
- # gdbus-codegen is a separate package |
463 |
- epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch" |
464 |
- |
465 |
- # leave python shebang alone |
466 |
- sed -e '/${PYTHON}/d' \ |
467 |
- -i glib/Makefile.{am,in} || die |
468 |
- |
469 |
- # Gentoo handles completions in a different directory |
470 |
- sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \ |
471 |
- gio/Makefile.am || die |
472 |
- |
473 |
- epatch_user |
474 |
- |
475 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
476 |
- eautoreconf |
477 |
- |
478 |
- gnome2_src_prepare |
479 |
- |
480 |
- epunt_cxx |
481 |
-} |
482 |
- |
483 |
-multilib_src_configure() { |
484 |
- # Avoid circular depend with dev-util/pkgconfig and |
485 |
- # native builds (cross-compiles won't need pkg-config |
486 |
- # in the target ROOT to work here) |
487 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
488 |
- if has_version sys-apps/dbus; then |
489 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
490 |
- export DBUS1_LIBS="-ldbus-1" |
491 |
- fi |
492 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
493 |
- export LIBFFI_LIBS="-lffi" |
494 |
- fi |
495 |
- |
496 |
- local myconf |
497 |
- |
498 |
- case "${CHOST}" in |
499 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
500 |
- *) myconf="${myconf} --with-threads=posix" ;; |
501 |
- esac |
502 |
- |
503 |
- # Only used by the gresource bin |
504 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
505 |
- |
506 |
- # FIXME: Always use internal libpcre, bug #254659 |
507 |
- # (maybe consider going back to system lib |
508 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
509 |
- $(use_enable xattr) \ |
510 |
- $(use_enable fam) \ |
511 |
- $(use_enable selinux) \ |
512 |
- $(use_enable static-libs static) \ |
513 |
- $(use_enable systemtap dtrace) \ |
514 |
- $(use_enable systemtap systemtap) \ |
515 |
- --disable-compile-warnings \ |
516 |
- --enable-man \ |
517 |
- --with-pcre=internal \ |
518 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
519 |
- |
520 |
- if multilib_is_native_abi; then |
521 |
- local d |
522 |
- for d in glib gio gobject; do |
523 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
524 |
- done |
525 |
- fi |
526 |
-} |
527 |
- |
528 |
-multilib_src_test() { |
529 |
- unset DBUS_SESSION_BUS_ADDRESS |
530 |
- export XDG_CONFIG_DIRS=/etc/xdg |
531 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
532 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
533 |
- unset GSETTINGS_BACKEND # bug 352451 |
534 |
- export LC_TIME=C # bug #411967 |
535 |
- python_export_best |
536 |
- |
537 |
- # Related test is a bit nitpicking |
538 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
539 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
540 |
- |
541 |
- # Hardened: gdb needs this, bug #338891 |
542 |
- if host-is-pax ; then |
543 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
544 |
- || die "Hardened adjustment failed" |
545 |
- fi |
546 |
- |
547 |
- # Need X for dbus-launch session X11 initialization |
548 |
- Xemake check |
549 |
-} |
550 |
- |
551 |
-multilib_src_install() { |
552 |
- gnome2_src_install |
553 |
-} |
554 |
- |
555 |
-multilib_src_install_all() { |
556 |
- DOCS="AUTHORS ChangeLog* NEWS* README" |
557 |
- einstalldocs |
558 |
- |
559 |
- if use utils ; then |
560 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
561 |
- else |
562 |
- rm "${ED}usr/bin/gtester-report" |
563 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
564 |
- fi |
565 |
- |
566 |
- # Do not install charset.alias even if generated, leave it to libiconv |
567 |
- rm -f "${ED}/usr/lib/charset.alias" |
568 |
- |
569 |
- # Don't install gdb python macros, bug 291328 |
570 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
571 |
-} |
572 |
- |
573 |
-pkg_postinst() { |
574 |
- gnome2_pkg_postinst |
575 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
576 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
577 |
- # a warning instead of a blocker |
578 |
- ewarn |
579 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
580 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
581 |
- fi |
582 |
-} |
583 |
|
584 |
diff --git a/dev-libs/glib/glib-2.46.2.ebuild b/dev-libs/glib/glib-2.46.2.ebuild |
585 |
deleted file mode 100644 |
586 |
index 72763b9..0000000 |
587 |
--- a/dev-libs/glib/glib-2.46.2.ebuild |
588 |
+++ /dev/null |
589 |
@@ -1,275 +0,0 @@ |
590 |
-# Copyright 1999-2015 Gentoo Foundation |
591 |
-# Distributed under the terms of the GNU General Public License v2 |
592 |
-# $Id$ |
593 |
- |
594 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
595 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
596 |
-# then to be think very closely. |
597 |
- |
598 |
-EAPI="5" |
599 |
-PYTHON_COMPAT=( python2_7 ) |
600 |
-# Building with --disable-debug highly unrecommended. It will build glib in |
601 |
-# an unusable form as it disables some commonly used API. Please do not |
602 |
-# convert this to the use_enable form, as it results in a broken build. |
603 |
-GCONF_DEBUG="yes" |
604 |
-# Completely useless with or without USE static-libs, people need to use |
605 |
-# pkg-config |
606 |
-GNOME2_LA_PUNT="yes" |
607 |
- |
608 |
-inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \ |
609 |
- pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal |
610 |
- |
611 |
-DESCRIPTION="The GLib library of C routines" |
612 |
-HOMEPAGE="http://www.gtk.org/" |
613 |
-SRC_URI="${SRC_URI} |
614 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
615 |
- |
616 |
-LICENSE="LGPL-2+" |
617 |
-SLOT="2" |
618 |
-IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
619 |
-REQUIRED_USE=" |
620 |
- utils? ( ${PYTHON_REQUIRED_USE} ) |
621 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
622 |
-" |
623 |
- |
624 |
-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" |
625 |
- |
626 |
-RDEPEND=" |
627 |
- !<dev-util/gdbus-codegen-${PV} |
628 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
629 |
- >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
630 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
631 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
632 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
633 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
634 |
- utils? ( |
635 |
- ${PYTHON_DEPS} |
636 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
637 |
- || ( |
638 |
- >=dev-libs/elfutils-0.142 |
639 |
- >=dev-libs/libelf-0.8.12 |
640 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
641 |
- ) |
642 |
- ) |
643 |
-" |
644 |
-DEPEND="${RDEPEND} |
645 |
- app-text/docbook-xml-dtd:4.1.2 |
646 |
- >=dev-libs/libxslt-1.0 |
647 |
- >=sys-devel/gettext-0.11 |
648 |
- >=dev-util/gtk-doc-am-1.20 |
649 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
650 |
- test? ( |
651 |
- sys-devel/gdb |
652 |
- ${PYTHON_DEPS} |
653 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
654 |
- >=sys-apps/dbus-1.2.14 ) |
655 |
- !<dev-util/gtk-doc-1.15-r2 |
656 |
-" |
657 |
-# gobject-introspection blocker to ensure people don't mix |
658 |
-# different g-i and glib major versions |
659 |
- |
660 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
661 |
- dbus? ( gnome-base/dconf ) |
662 |
- mime? ( x11-misc/shared-mime-info ) |
663 |
-" |
664 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
665 |
-# dconf is needed to be able to save settings, bug #498436 |
666 |
-# Earlier versions of gvfs do not work with glib |
667 |
- |
668 |
-pkg_setup() { |
669 |
- if use kernel_linux ; then |
670 |
- CONFIG_CHECK="~INOTIFY_USER" |
671 |
- if use test; then |
672 |
- CONFIG_CHECK="~IPV6" |
673 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
674 |
- export IPV6_DISABLED="yes" |
675 |
- fi |
676 |
- linux-info_pkg_setup |
677 |
- fi |
678 |
-} |
679 |
- |
680 |
-src_prepare() { |
681 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
682 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
683 |
- |
684 |
- if use test; then |
685 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
686 |
- if ! has_version dev-util/desktop-file-utils ; then |
687 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
688 |
- ewarn "think on installing it to get these tests run." |
689 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
690 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
691 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
692 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
693 |
- fi |
694 |
- |
695 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
696 |
- # other), falling back to xterm if one doesn't exist |
697 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
698 |
- ewarn "Some tests will be skipped due to missing terminal program" |
699 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
700 |
- fi |
701 |
- |
702 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
703 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
704 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
705 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
706 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
707 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
708 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
709 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
710 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
711 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
712 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
713 |
- # needed to prevent gdbus-threading from asserting |
714 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
715 |
- fi |
716 |
- |
717 |
- # Some tests need ipv6, upstream bug #667468 |
718 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
719 |
- sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die |
720 |
- sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die |
721 |
- sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die |
722 |
- fi |
723 |
- |
724 |
- # thread test fails, upstream bug #679306 |
725 |
- # FIXME: we need to check if it's still failing as upstream thinks something |
726 |
- # is wrong in our setups |
727 |
- #epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
728 |
- |
729 |
- # This test is prone to fail, bug #504024, upstream bug #723719 |
730 |
- sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die |
731 |
- else |
732 |
- # Don't build tests, also prevents extra deps, bug #512022 |
733 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
734 |
- fi |
735 |
- |
736 |
- # gdbus-codegen is a separate package |
737 |
- epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch" |
738 |
- |
739 |
- # leave python shebang alone |
740 |
- sed -e '/${PYTHON}/d' \ |
741 |
- -i glib/Makefile.{am,in} || die |
742 |
- |
743 |
- epatch_user |
744 |
- |
745 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
746 |
- eautoreconf |
747 |
- |
748 |
- gnome2_src_prepare |
749 |
- |
750 |
- epunt_cxx |
751 |
-} |
752 |
- |
753 |
-multilib_src_configure() { |
754 |
- # Avoid circular depend with dev-util/pkgconfig and |
755 |
- # native builds (cross-compiles won't need pkg-config |
756 |
- # in the target ROOT to work here) |
757 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
758 |
- if has_version sys-apps/dbus; then |
759 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
760 |
- export DBUS1_LIBS="-ldbus-1" |
761 |
- fi |
762 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
763 |
- export LIBFFI_LIBS="-lffi" |
764 |
- fi |
765 |
- |
766 |
- # These configure tests don't work when cross-compiling. |
767 |
- if tc-is-cross-compiler ; then |
768 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
769 |
- case ${CHOST} in |
770 |
- hppa*|metag*) export glib_cv_stack_grows=yes ;; |
771 |
- *) export glib_cv_stack_grows=no ;; |
772 |
- esac |
773 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
774 |
- export glib_cv_uscore=no |
775 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
776 |
- export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
777 |
- fi |
778 |
- |
779 |
- local myconf |
780 |
- |
781 |
- case "${CHOST}" in |
782 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
783 |
- *) myconf="${myconf} --with-threads=posix" ;; |
784 |
- esac |
785 |
- |
786 |
- # FIXME: Always use internal libpcre, bug #254659 |
787 |
- # (maybe consider going back to system lib) |
788 |
- # libelf used only by the gresource bin |
789 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
790 |
- $(use_enable xattr) \ |
791 |
- $(use_enable fam) \ |
792 |
- $(use_enable selinux) \ |
793 |
- $(use_enable static-libs static) \ |
794 |
- $(use_enable systemtap dtrace) \ |
795 |
- $(use_enable systemtap systemtap) \ |
796 |
- $(multilib_native_use_enable utils libelf) \ |
797 |
- --disable-compile-warnings \ |
798 |
- --enable-man \ |
799 |
- --with-pcre=internal \ |
800 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
801 |
- |
802 |
- if multilib_is_native_abi; then |
803 |
- local d |
804 |
- for d in glib gio gobject; do |
805 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
806 |
- done |
807 |
- fi |
808 |
-} |
809 |
- |
810 |
-multilib_src_test() { |
811 |
- unset DBUS_SESSION_BUS_ADDRESS |
812 |
- export XDG_CONFIG_DIRS=/etc/xdg |
813 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
814 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
815 |
- unset GSETTINGS_BACKEND # bug 352451 |
816 |
- export LC_TIME=C # bug #411967 |
817 |
- python_export_best |
818 |
- |
819 |
- # Related test is a bit nitpicking |
820 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
821 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
822 |
- |
823 |
- # Hardened: gdb needs this, bug #338891 |
824 |
- if host-is-pax ; then |
825 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
826 |
- || die "Hardened adjustment failed" |
827 |
- fi |
828 |
- |
829 |
- # Need X for dbus-launch session X11 initialization |
830 |
- Xemake check |
831 |
-} |
832 |
- |
833 |
-multilib_src_install() { |
834 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
835 |
-} |
836 |
- |
837 |
-multilib_src_install_all() { |
838 |
- DOCS="AUTHORS ChangeLog* NEWS* README" |
839 |
- einstalldocs |
840 |
- |
841 |
- if use utils ; then |
842 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
843 |
- else |
844 |
- rm "${ED}usr/bin/gtester-report" |
845 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
846 |
- fi |
847 |
- |
848 |
- # Do not install charset.alias even if generated, leave it to libiconv |
849 |
- rm -f "${ED}/usr/lib/charset.alias" |
850 |
- |
851 |
- # Don't install gdb python macros, bug 291328 |
852 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
853 |
-} |
854 |
- |
855 |
-pkg_postinst() { |
856 |
- gnome2_pkg_postinst |
857 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
858 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
859 |
- # a warning instead of a blocker |
860 |
- ewarn |
861 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
862 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
863 |
- fi |
864 |
-} |