1 |
commit: a73230d7a2d94b7417b835d0976208d81e24d167 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 11:05:35 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 30 11:11:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a73230d7 |
7 |
|
8 |
dev-libs/glib: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
dev-libs/glib/Manifest | 5 - |
14 |
.../files/glib-2.50.0-external-gdbus-codegen.patch | 93 ------ |
15 |
dev-libs/glib/glib-2.52.3.ebuild | 300 -------------------- |
16 |
dev-libs/glib/glib-2.54.3-r6.ebuild | 304 -------------------- |
17 |
dev-libs/glib/glib-2.58.1.ebuild | 315 --------------------- |
18 |
5 files changed, 1017 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest |
21 |
index 5d266bbd874..da752322e9e 100644 |
22 |
--- a/dev-libs/glib/Manifest |
23 |
+++ b/dev-libs/glib/Manifest |
24 |
@@ -1,9 +1,4 @@ |
25 |
-DIST glib-2.52.3.tar.xz 7679972 BLAKE2B 8d9f6b714571bd04ab9717fbf9ded8556664e43dcdb7dd59436b8b7f1a8a5cdf98e9ce60ca1ead941af1d57688044fefb6c749fa735084622a3482b058864ff6 SHA512 a068f2519cfb82de8d4b7f004e7c1f15e841cad4046430a83b02b359d011e0c4077cdff447a1687ed7c68f1a11b4cf66b9ed9fc23ab5f0c7c6be84eb0ddc3017 |
26 |
-DIST glib-2.54.3-patchset.tar.xz 39488 BLAKE2B 0bebd1f8eadd1796c355dbad20739ec2428a5b67e363e6ea61e2bab1e672506c438c80c602e87ec7d221ad92ad5c52adf7b57fb13441835e41f1e1208c26c6db SHA512 3d880c2681893da9267c8b2ba9a695eddbb1cef63f4ea26e052ce2f69e1e9d78eccdb27b235cbf0693ecd262bd70d020b24f82fc72ab11a4dbc2c929cfb72942 |
27 |
-DIST glib-2.54.3.tar.xz 7836536 BLAKE2B 140e7cf09a41b72a5b22e5b87e9674cbfdfe1b82f3cf5f0fd3ecb2ed6b1f62a90f8b4c0bc2f655e297f91394f771f6ecad210357e31f104ee49ca178be6b9d76 SHA512 23eb4458684624f80c17aa784eab42a38eec87bb5979fcfe56f0bc63b5c7bcf8251a0d4ea916fe2c8109ff5b14a4b60c6260755d079ff984c0d8e6a2871d307d |
28 |
DIST glib-2.56.2.tar.xz 8041756 BLAKE2B 1af5bb37378856e959602bcb9299266bba46b990839c923f6b9881624aed306af0779005281b3e3a46b5994c54812edc86aade9cb782c596fd63b6fd91baba51 SHA512 8201ea82d3613d2e879284abe01520b766da30957c5a1a22f3e6019b0cce6bf95d25beae78867b6a133401c4165153c0c92974dd459ab12f9e0e9dd0c95df5d4 |
29 |
DIST glib-2.56.4.tar.xz 7029768 BLAKE2B 21cf840128e468151eeac55f0323f8f643973422b70bb65655e24c0a6b2f7ee72d5ae879bfae73df84fa2281fc425cc98328597910ba8fd99d7a52024e1b3ab6 SHA512 280a46c2af13283a08c15ff0b4f5492659c2884521930600ad45310ed181c44a878ad8f9b36bae68ed6e7d92db6f1630f7bf015148c513dc317d25807f13abb0 |
30 |
-DIST glib-2.58.1-patchset.tar.xz 17292 BLAKE2B c95de62f61f9dac8acbf20f83e95bced99f566c512ec43d46b1ad08356b86c9f5d75a96faa971ed89ae23c9534b03a85058751a40421f2b216612e94493bc9a2 SHA512 08833e58cce26412545e380d5c92448f77651c466b236108d5ee9451e30ad6e6bd796ddd30c3c81ca2d5219ea0f6269f9738f57a7438ed0db18c5c1f04a18e10 |
31 |
-DIST glib-2.58.1.tar.xz 4906444 BLAKE2B 022da8624a8ae2ec7fdc45777556a518d056e7389158d96db36baccdb238ed6fbdb6f224ec8b1c1bfec78001aa0348d3fc1fd43d20908a8c4690a0e03038bf61 SHA512 115b74fcd43241e3c4b4babfb8170453b2a002ff02d5996f3c097876199cadccc1cf67b017c10c14c0d2a1bb4228027b743f4926bda0ef7d74012ed712ccd155 |
32 |
DIST glib-2.58.2.tar.xz 4862612 BLAKE2B e94d3dfc5d4b6d100c2425fda34c90fdf643fdb71b8bd65df691e34d11bfaf79fdc4c844eb215df24b0f680991fb0d0c08c3bb3dea61f5157ccd8bec200e2059 SHA512 4017ae308f2ef6313abbff2eb9b21ec6f8fa38935007491ca0cb4d1ffac6fedab6f50e911ac088995d6212323ba1767399f18529a2620d60378ecade193b4b1a |
33 |
DIST pkg-config-0.28.tar.gz 1931203 BLAKE2B bafdd4e838623965c6bd454421ddd9051fc43fc29948e1615b49fef463c3c3a18807aabe6416f96cfdf58d6b1c9e114d77f97bd985facee7c14284a8a64a768b SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 |
34 |
|
35 |
diff --git a/dev-libs/glib/files/glib-2.50.0-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.50.0-external-gdbus-codegen.patch |
36 |
deleted file mode 100644 |
37 |
index 2c942d559f5..00000000000 |
38 |
--- a/dev-libs/glib/files/glib-2.50.0-external-gdbus-codegen.patch |
39 |
+++ /dev/null |
40 |
@@ -1,93 +0,0 @@ |
41 |
-diff --git a/configure.ac b/configure.ac |
42 |
-index e8e7553..216e59d 100644 |
43 |
---- a/configure.ac |
44 |
-+++ b/configure.ac |
45 |
-@@ -385,14 +385,14 @@ AC_SUBST(PERL_PATH) |
46 |
- # option to specify python interpreter to use; this just sets $PYTHON, so that |
47 |
- # we will fallback to reading $PYTHON if --with-python is not given, and |
48 |
- # python.m4 will get the expected input |
49 |
--AC_ARG_WITH(python, |
50 |
-- AS_HELP_STRING([--with-python=PATH], |
51 |
-- [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
52 |
-- [PYTHON="$withval"], []) |
53 |
--if test x"$PYTHON" = xyes; then |
54 |
-- AC_MSG_ERROR([--with-python option requires a path or program argument]) |
55 |
--fi |
56 |
--AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
57 |
-+# AC_ARG_WITH(python, |
58 |
-+# AS_HELP_STRING([--with-python=PATH], |
59 |
-+# [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
60 |
-+# [PYTHON="$withval"], []) |
61 |
-+# if test x"$PYTHON" = xyes; then |
62 |
-+# AC_MSG_ERROR([--with-python option requires a path or program argument]) |
63 |
-+# fi |
64 |
-+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
65 |
- |
66 |
- |
67 |
- dnl *********************** |
68 |
-@@ -3453,7 +3453,6 @@ gobject/glib-mkenums |
69 |
- gobject/tests/Makefile |
70 |
- gthread/Makefile |
71 |
- gio/Makefile |
72 |
--gio/gdbus-2.0/codegen/Makefile |
73 |
- gio/gdbus-2.0/codegen/config.py |
74 |
- gio/gnetworking.h |
75 |
- gio/xdgmime/Makefile |
76 |
-diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am |
77 |
-index 5741a3e..d38e768 100644 |
78 |
---- a/docs/reference/gio/Makefile.am |
79 |
-+++ b/docs/reference/gio/Makefile.am |
80 |
-@@ -177,7 +177,6 @@ man_MANS += \ |
81 |
- gsettings.1 \ |
82 |
- gresource.1 \ |
83 |
- gdbus.1 \ |
84 |
-- gdbus-codegen.1 \ |
85 |
- gio.1 \ |
86 |
- $(NULL) |
87 |
- |
88 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
89 |
-index ffe5ee2..929d1b5 100644 |
90 |
---- a/gio/Makefile.am |
91 |
-+++ b/gio/Makefile.am |
92 |
-@@ -1,6 +1,6 @@ |
93 |
- include $(top_srcdir)/glib.mk |
94 |
- |
95 |
--SUBDIRS = gdbus-2.0/codegen |
96 |
-+SUBDIRS = |
97 |
- |
98 |
- if OS_UNIX |
99 |
- SUBDIRS += xdgmime |
100 |
-diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
101 |
-index 749267b..f2a8c63 100644 |
102 |
---- a/gio/tests/Makefile.am |
103 |
-+++ b/gio/tests/Makefile.am |
104 |
-@@ -449,10 +449,8 @@ gnotification_SOURCES = $(gdbus_sessionbus_sources) gnotifica |
105 |
- |
106 |
- BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
107 |
- gdbus-test-codegen.o: gdbus-test-codegen-generated.h |
108 |
--gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
109 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
110 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
111 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
112 |
-+gdbus-test-codegen-generated.h: test-codegen.xml Makefile |
113 |
-+ $(AM_V_GEN) gdbus-codegen \ |
114 |
- --interface-prefix org.project. \ |
115 |
- --generate-c-code gdbus-test-codegen-generated \ |
116 |
- --c-generate-object-manager \ |
117 |
-diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am |
118 |
-index 1d0464c..0603d9b 100644 |
119 |
---- a/gio/tests/gdbus-object-manager-example/Makefile.am |
120 |
-+++ b/gio/tests/gdbus-object-manager-example/Makefile.am |
121 |
-@@ -11,10 +11,8 @@ GDBUS_GENERATED = \ |
122 |
- gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ |
123 |
- $(NULL) |
124 |
- |
125 |
--$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
126 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
127 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
128 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
129 |
-+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile |
130 |
-+ $(AM_V_GEN) gdbus-codegen \ |
131 |
- --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ |
132 |
- --c-namespace Example \ |
133 |
- --c-generate-object-manager \ |
134 |
|
135 |
diff --git a/dev-libs/glib/glib-2.52.3.ebuild b/dev-libs/glib/glib-2.52.3.ebuild |
136 |
deleted file mode 100644 |
137 |
index 931700a301b..00000000000 |
138 |
--- a/dev-libs/glib/glib-2.52.3.ebuild |
139 |
+++ /dev/null |
140 |
@@ -1,300 +0,0 @@ |
141 |
-# Copyright 1999-2018 Gentoo Authors |
142 |
-# Distributed under the terms of the GNU General Public License v2 |
143 |
- |
144 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
145 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
146 |
-# then to be think very closely. |
147 |
- |
148 |
-EAPI=6 |
149 |
-PYTHON_COMPAT=( python2_7 ) |
150 |
-# Completely useless with or without USE static-libs, people need to use |
151 |
-# pkg-config |
152 |
-GNOME2_LA_PUNT="yes" |
153 |
- |
154 |
-inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \ |
155 |
- multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx |
156 |
- |
157 |
-DESCRIPTION="The GLib library of C routines" |
158 |
-HOMEPAGE="https://www.gtk.org/" |
159 |
-SRC_URI="${SRC_URI} |
160 |
- https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
161 |
- |
162 |
-LICENSE="LGPL-2.1+" |
163 |
-SLOT="2" |
164 |
-IUSE="dbus debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
165 |
-REQUIRED_USE=" |
166 |
- utils? ( ${PYTHON_REQUIRED_USE} ) |
167 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
168 |
-" |
169 |
- |
170 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
171 |
- |
172 |
-# Added util-linux multilib dependency to have libmount support (which |
173 |
-# is always turned on on linux systems, unless explicitly disabled, but |
174 |
-# this ebuild does not do that anyway) (bug #599586) |
175 |
- |
176 |
-RDEPEND=" |
177 |
- !<dev-util/gdbus-codegen-${PV} |
178 |
- >=dev-libs/libpcre-8.13:3[${MULTILIB_USEDEP},static-libs?] |
179 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
180 |
- >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] |
181 |
- >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] |
182 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
183 |
- kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] ) |
184 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
185 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
186 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
187 |
- utils? ( |
188 |
- ${PYTHON_DEPS} |
189 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
190 |
- virtual/libelf:0= |
191 |
- ) |
192 |
-" |
193 |
-DEPEND="${RDEPEND} |
194 |
- app-text/docbook-xml-dtd:4.1.2 |
195 |
- >=dev-libs/libxslt-1.0 |
196 |
- >=sys-devel/gettext-0.11 |
197 |
- >=dev-util/gtk-doc-am-1.20 |
198 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
199 |
- test? ( |
200 |
- sys-devel/gdb |
201 |
- ${PYTHON_DEPS} |
202 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
203 |
- >=sys-apps/dbus-1.2.14 ) |
204 |
- !<dev-util/gtk-doc-1.15-r2 |
205 |
-" |
206 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
207 |
- dbus? ( gnome-base/dconf ) |
208 |
- mime? ( x11-misc/shared-mime-info ) |
209 |
-" |
210 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
211 |
-# dconf is needed to be able to save settings, bug #498436 |
212 |
-# Earlier versions of gvfs do not work with glib |
213 |
- |
214 |
-MULTILIB_CHOST_TOOLS=( |
215 |
- /usr/bin/gio-querymodules$(get_exeext) |
216 |
-) |
217 |
- |
218 |
-pkg_setup() { |
219 |
- if use kernel_linux ; then |
220 |
- CONFIG_CHECK="~INOTIFY_USER" |
221 |
- if use test ; then |
222 |
- CONFIG_CHECK="~IPV6" |
223 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
224 |
- fi |
225 |
- linux-info_pkg_setup |
226 |
- fi |
227 |
-} |
228 |
- |
229 |
-src_prepare() { |
230 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
231 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
232 |
- |
233 |
- if use test; then |
234 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
235 |
- if ! has_version dev-util/desktop-file-utils ; then |
236 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
237 |
- ewarn "think on installing it to get these tests run." |
238 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
239 |
- sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die |
240 |
- fi |
241 |
- |
242 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
243 |
- # other), falling back to xterm if one doesn't exist |
244 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
245 |
- ewarn "Some tests will be skipped due to missing terminal program" |
246 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
247 |
- fi |
248 |
- |
249 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=722604 |
250 |
- sed -i -e "/timer\/stop/d" glib/tests/timer.c || die |
251 |
- sed -i -e "/timer\/basic/d" glib/tests/timer.c || die |
252 |
- |
253 |
- ewarn "Tests for search-utils have been skipped" |
254 |
- sed -i -e "/search-utils/d" glib/tests/Makefile.am || die |
255 |
- else |
256 |
- # Don't build tests, also prevents extra deps, bug #512022 |
257 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
258 |
- fi |
259 |
- |
260 |
- # gdbus-codegen is a separate package |
261 |
- eapply "${FILESDIR}"/${PN}-2.50.0-external-gdbus-codegen.patch |
262 |
- |
263 |
- # Leave python shebang alone - handled by python_replicate_script |
264 |
- # We could call python_setup and give configure a valid --with-python |
265 |
- # arg, but that would mean a build dep on python when USE=utils. |
266 |
- sed -e '/${PYTHON}/d' \ |
267 |
- -i glib/Makefile.{am,in} || die |
268 |
- |
269 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
270 |
- eautoreconf |
271 |
- |
272 |
- gnome2_src_prepare |
273 |
- |
274 |
- epunt_cxx |
275 |
-} |
276 |
- |
277 |
-multilib_src_configure() { |
278 |
- # Avoid circular depend with dev-util/pkgconfig and |
279 |
- # native builds (cross-compiles won't need pkg-config |
280 |
- # in the target ROOT to work here) |
281 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
282 |
- if has_version sys-apps/dbus; then |
283 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
284 |
- export DBUS1_LIBS="-ldbus-1" |
285 |
- fi |
286 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
287 |
- export LIBFFI_LIBS="-lffi" |
288 |
- export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass |
289 |
- export PCRE_LIBS="-lpcre" |
290 |
- fi |
291 |
- |
292 |
- # These configure tests don't work when cross-compiling. |
293 |
- if tc-is-cross-compiler ; then |
294 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
295 |
- case ${CHOST} in |
296 |
- hppa*|metag*) export glib_cv_stack_grows=yes ;; |
297 |
- *) export glib_cv_stack_grows=no ;; |
298 |
- esac |
299 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
300 |
- export glib_cv_uscore=no |
301 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
302 |
- export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
303 |
- fi |
304 |
- |
305 |
- local myconf |
306 |
- |
307 |
- case "${CHOST}" in |
308 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
309 |
- *) myconf="${myconf} --with-threads=posix" ;; |
310 |
- esac |
311 |
- |
312 |
- # libelf used only by the gresource bin |
313 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
314 |
- $(usex debug --enable-debug=yes ' ') \ |
315 |
- $(use_enable xattr) \ |
316 |
- $(use_enable fam) \ |
317 |
- $(use_enable kernel_linux libmount) \ |
318 |
- $(use_enable selinux) \ |
319 |
- $(use_enable static-libs static) \ |
320 |
- $(use_enable systemtap dtrace) \ |
321 |
- $(use_enable systemtap systemtap) \ |
322 |
- $(multilib_native_use_enable utils libelf) \ |
323 |
- --disable-compile-warnings \ |
324 |
- --enable-man \ |
325 |
- --with-pcre=system \ |
326 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
327 |
- |
328 |
- if multilib_is_native_abi; then |
329 |
- local d |
330 |
- for d in glib gio gobject; do |
331 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
332 |
- done |
333 |
- fi |
334 |
-} |
335 |
- |
336 |
-multilib_src_test() { |
337 |
- export XDG_CONFIG_DIRS=/etc/xdg |
338 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
339 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
340 |
- export LC_TIME=C # bug #411967 |
341 |
- unset GSETTINGS_BACKEND # bug #596380 |
342 |
- python_setup |
343 |
- |
344 |
- # Related test is a bit nitpicking |
345 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
346 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
347 |
- |
348 |
- # Hardened: gdb needs this, bug #338891 |
349 |
- if host-is-pax ; then |
350 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
351 |
- || die "Hardened adjustment failed" |
352 |
- fi |
353 |
- |
354 |
- # Need X for dbus-launch session X11 initialization |
355 |
- virtx emake check |
356 |
-} |
357 |
- |
358 |
-multilib_src_install() { |
359 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
360 |
- keepdir /usr/$(get_libdir)/gio/modules |
361 |
-} |
362 |
- |
363 |
-multilib_src_install_all() { |
364 |
- einstalldocs |
365 |
- |
366 |
- if use utils ; then |
367 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
368 |
- else |
369 |
- rm "${ED}usr/bin/gtester-report" |
370 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
371 |
- fi |
372 |
- |
373 |
- # Do not install charset.alias even if generated, leave it to libiconv |
374 |
- rm -f "${ED}/usr/lib/charset.alias" |
375 |
- |
376 |
- # Don't install gdb python macros, bug 291328 |
377 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
378 |
-} |
379 |
- |
380 |
-pkg_preinst() { |
381 |
- gnome2_pkg_preinst |
382 |
- |
383 |
- # Make gschemas.compiled belong to glib alone |
384 |
- local cache="usr/share/glib-2.0/schemas/gschemas.compiled" |
385 |
- |
386 |
- if [[ -e ${EROOT}${cache} ]]; then |
387 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
388 |
- else |
389 |
- touch "${ED}"/${cache} || die |
390 |
- fi |
391 |
- |
392 |
- multilib_pkg_preinst() { |
393 |
- # Make giomodule.cache belong to glib alone |
394 |
- local cache="usr/$(get_libdir)/gio/modules/giomodule.cache" |
395 |
- |
396 |
- if [[ -e ${EROOT}${cache} ]]; then |
397 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
398 |
- else |
399 |
- touch "${ED}"/${cache} || die |
400 |
- fi |
401 |
- } |
402 |
- |
403 |
- # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache |
404 |
- # file due to inability to create it and GIO might not look at any of the modules there |
405 |
- if ! tc-is-cross-compiler ; then |
406 |
- multilib_foreach_abi multilib_pkg_preinst |
407 |
- fi |
408 |
-} |
409 |
- |
410 |
-pkg_postinst() { |
411 |
- # force (re)generation of gschemas.compiled |
412 |
- GNOME2_ECLASS_GLIB_SCHEMAS="force" |
413 |
- |
414 |
- gnome2_pkg_postinst |
415 |
- |
416 |
- multilib_pkg_postinst() { |
417 |
- gnome2_giomodule_cache_update \ |
418 |
- || die "Update GIO modules cache failed (for ${ABI})" |
419 |
- } |
420 |
- if ! tc-is-cross-compiler ; then |
421 |
- multilib_foreach_abi multilib_pkg_postinst |
422 |
- else |
423 |
- ewarn "Updating of GIO modules cache skipped due to cross-compilation." |
424 |
- ewarn "You might want to run gio-querymodules manually on the target for" |
425 |
- ewarn "your final image for performance reasons and re-run it when packages" |
426 |
- ewarn "installing GIO modules get upgraded or added to the image." |
427 |
- fi |
428 |
-} |
429 |
- |
430 |
-pkg_postrm() { |
431 |
- gnome2_pkg_postrm |
432 |
- |
433 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
434 |
- multilib_pkg_postrm() { |
435 |
- rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache |
436 |
- } |
437 |
- multilib_foreach_abi multilib_pkg_postrm |
438 |
- rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled |
439 |
- fi |
440 |
-} |
441 |
|
442 |
diff --git a/dev-libs/glib/glib-2.54.3-r6.ebuild b/dev-libs/glib/glib-2.54.3-r6.ebuild |
443 |
deleted file mode 100644 |
444 |
index ece8f434c29..00000000000 |
445 |
--- a/dev-libs/glib/glib-2.54.3-r6.ebuild |
446 |
+++ /dev/null |
447 |
@@ -1,304 +0,0 @@ |
448 |
-# Copyright 1999-2018 Gentoo Authors |
449 |
-# Distributed under the terms of the GNU General Public License v2 |
450 |
- |
451 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
452 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
453 |
-# then to be think very closely. |
454 |
- |
455 |
-EAPI=6 |
456 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
457 |
-# Completely useless with or without USE static-libs, people need to use |
458 |
-# pkg-config |
459 |
-GNOME2_LA_PUNT="yes" |
460 |
- |
461 |
-inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \ |
462 |
- multilib multilib-minimal pax-utils python-single-r1 toolchain-funcs versionator virtualx |
463 |
- |
464 |
-DESCRIPTION="The GLib library of C routines" |
465 |
-HOMEPAGE="https://www.gtk.org/" |
466 |
-SRC_URI="${SRC_URI} https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz |
467 |
- https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
468 |
- |
469 |
-LICENSE="LGPL-2.1+" |
470 |
-SLOT="2" |
471 |
-IUSE="dbus debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
472 |
-REQUIRED_USE=" |
473 |
- ${PYTHON_REQUIRED_USE} |
474 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
475 |
-" # test dep left here and elsewhere to not forget, as global python requirement is supposed to be temporary until a split package is made with meson |
476 |
- |
477 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
478 |
- |
479 |
-# Added util-linux multilib dependency to have libmount support (which |
480 |
-# is always turned on on linux systems, unless explicitly disabled, but |
481 |
-# this ebuild does not do that anyway) (bug #599586) |
482 |
- |
483 |
-RDEPEND=" |
484 |
- !<dev-util/gdbus-codegen-${PV} |
485 |
- >=dev-libs/libpcre-8.13:3[${MULTILIB_USEDEP},static-libs?] |
486 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
487 |
- >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] |
488 |
- >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] |
489 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
490 |
- kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] ) |
491 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
492 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
493 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
494 |
- ${PYTHON_DEPS} |
495 |
- utils? ( |
496 |
- >=dev-util/gdbus-codegen-${PV} |
497 |
- virtual/libelf:0= |
498 |
- ) |
499 |
-" |
500 |
-DEPEND="${RDEPEND} |
501 |
- app-text/docbook-xml-dtd:4.1.2 |
502 |
- >=dev-libs/libxslt-1.0 |
503 |
- >=sys-devel/gettext-0.11 |
504 |
- >=dev-util/gtk-doc-am-1.20 |
505 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
506 |
- test? ( |
507 |
- sys-devel/gdb |
508 |
- ${PYTHON_DEPS} |
509 |
- >=dev-util/gdbus-codegen-${PV} |
510 |
- >=sys-apps/dbus-1.2.14 ) |
511 |
- !<dev-util/gtk-doc-1.15-r2 |
512 |
-" |
513 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
514 |
- dbus? ( gnome-base/dconf ) |
515 |
- mime? ( x11-misc/shared-mime-info ) |
516 |
-" |
517 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
518 |
-# dconf is needed to be able to save settings, bug #498436 |
519 |
-# Earlier versions of gvfs do not work with glib |
520 |
- |
521 |
-MULTILIB_CHOST_TOOLS=( |
522 |
- /usr/bin/gio-querymodules$(get_exeext) |
523 |
-) |
524 |
- |
525 |
-pkg_setup() { |
526 |
- if use kernel_linux ; then |
527 |
- CONFIG_CHECK="~INOTIFY_USER" |
528 |
- if use test ; then |
529 |
- CONFIG_CHECK="~IPV6" |
530 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
531 |
- fi |
532 |
- linux-info_pkg_setup |
533 |
- fi |
534 |
- # FIXME: Move python deps that are only required at build time of other packages to a split package |
535 |
- python-single-r1_pkg_setup |
536 |
-} |
537 |
- |
538 |
-src_prepare() { |
539 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
540 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
541 |
- |
542 |
- if use test; then |
543 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
544 |
- if ! has_version dev-util/desktop-file-utils ; then |
545 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
546 |
- ewarn "think on installing it to get these tests run." |
547 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
548 |
- sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die |
549 |
- fi |
550 |
- |
551 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
552 |
- # other), falling back to xterm if one doesn't exist |
553 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
554 |
- ewarn "Some tests will be skipped due to missing terminal program" |
555 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
556 |
- fi |
557 |
- |
558 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=722604 |
559 |
- sed -i -e "/timer\/stop/d" glib/tests/timer.c || die |
560 |
- sed -i -e "/timer\/basic/d" glib/tests/timer.c || die |
561 |
- |
562 |
- ewarn "Tests for search-utils have been skipped" |
563 |
- sed -i -e "/search-utils/d" glib/tests/Makefile.am || die |
564 |
- else |
565 |
- # Don't build tests, also prevents extra deps, bug #512022 |
566 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
567 |
- fi |
568 |
- |
569 |
- # gdbus-codegen is a separate package |
570 |
- eapply "${FILESDIR}"/${PN}-2.54.3-external-gdbus-codegen.patch |
571 |
- |
572 |
- # Upstream glib-2-54 branch; includes fixups for potential libreoffice lockups |
573 |
- eapply "${WORKDIR}"/patches/ |
574 |
- |
575 |
- # Leave gtester-report python shebang alone - handled by python_fix_shebang |
576 |
- sed -e '/${PYTHON}/d' -i glib/Makefile.{am,in} || die |
577 |
- |
578 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
579 |
- eautoreconf |
580 |
- |
581 |
- gnome2_src_prepare |
582 |
- |
583 |
- epunt_cxx |
584 |
-} |
585 |
- |
586 |
-multilib_src_configure() { |
587 |
- # Avoid circular depend with dev-util/pkgconfig and |
588 |
- # native builds (cross-compiles won't need pkg-config |
589 |
- # in the target ROOT to work here) |
590 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
591 |
- if has_version sys-apps/dbus; then |
592 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
593 |
- export DBUS1_LIBS="-ldbus-1" |
594 |
- fi |
595 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
596 |
- export LIBFFI_LIBS="-lffi" |
597 |
- export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass |
598 |
- export PCRE_LIBS="-lpcre" |
599 |
- fi |
600 |
- |
601 |
- # These configure tests don't work when cross-compiling. |
602 |
- if tc-is-cross-compiler ; then |
603 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
604 |
- case ${CHOST} in |
605 |
- hppa*|metag*) export glib_cv_stack_grows=yes ;; |
606 |
- *) export glib_cv_stack_grows=no ;; |
607 |
- esac |
608 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
609 |
- export glib_cv_uscore=no |
610 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
611 |
- export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
612 |
- fi |
613 |
- |
614 |
- local myconf |
615 |
- |
616 |
- case "${CHOST}" in |
617 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
618 |
- *) myconf="${myconf} --with-threads=posix" ;; |
619 |
- esac |
620 |
- |
621 |
- # libelf used only by the gresource bin |
622 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
623 |
- $(usex debug --enable-debug=yes ' ') \ |
624 |
- $(use_enable xattr) \ |
625 |
- $(use_enable fam) \ |
626 |
- $(use_enable kernel_linux libmount) \ |
627 |
- $(use_enable selinux) \ |
628 |
- $(use_enable static-libs static) \ |
629 |
- $(use_enable systemtap dtrace) \ |
630 |
- $(use_enable systemtap systemtap) \ |
631 |
- $(multilib_native_use_enable utils libelf) \ |
632 |
- --with-python=${EPYTHON} \ |
633 |
- --disable-compile-warnings \ |
634 |
- --enable-man \ |
635 |
- --with-pcre=system \ |
636 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
637 |
- |
638 |
- if multilib_is_native_abi; then |
639 |
- local d |
640 |
- for d in glib gio gobject; do |
641 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
642 |
- done |
643 |
- fi |
644 |
-} |
645 |
- |
646 |
-multilib_src_test() { |
647 |
- export XDG_CONFIG_DIRS=/etc/xdg |
648 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
649 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
650 |
- export LC_TIME=C # bug #411967 |
651 |
- unset GSETTINGS_BACKEND # bug #596380 |
652 |
- python_setup |
653 |
- |
654 |
- # Related test is a bit nitpicking |
655 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
656 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
657 |
- |
658 |
- # Hardened: gdb needs this, bug #338891 |
659 |
- if host-is-pax ; then |
660 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
661 |
- || die "Hardened adjustment failed" |
662 |
- fi |
663 |
- |
664 |
- # Need X for dbus-launch session X11 initialization |
665 |
- virtx emake check |
666 |
-} |
667 |
- |
668 |
-multilib_src_install() { |
669 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
670 |
- keepdir /usr/$(get_libdir)/gio/modules |
671 |
-} |
672 |
- |
673 |
-multilib_src_install_all() { |
674 |
- einstalldocs |
675 |
- |
676 |
- if use utils ; then |
677 |
- python_fix_shebang "${ED}"/usr/bin/gtester-report |
678 |
- else |
679 |
- # gtester-report is heavily deprecated, so do not install by default - https://bugzilla.gnome.org/show_bug.cgi?id=668035#c4 |
680 |
- rm "${ED}usr/bin/gtester-report" |
681 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
682 |
- fi |
683 |
- |
684 |
- # Do not install charset.alias even if generated, leave it to libiconv |
685 |
- rm -f "${ED}/usr/lib/charset.alias" |
686 |
- |
687 |
- # Don't install gdb python macros, bug 291328 |
688 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
689 |
-} |
690 |
- |
691 |
-pkg_preinst() { |
692 |
- gnome2_pkg_preinst |
693 |
- |
694 |
- # Make gschemas.compiled belong to glib alone |
695 |
- local cache="usr/share/glib-2.0/schemas/gschemas.compiled" |
696 |
- |
697 |
- if [[ -e ${EROOT}${cache} ]]; then |
698 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
699 |
- else |
700 |
- touch "${ED}"/${cache} || die |
701 |
- fi |
702 |
- |
703 |
- multilib_pkg_preinst() { |
704 |
- # Make giomodule.cache belong to glib alone |
705 |
- local cache="usr/$(get_libdir)/gio/modules/giomodule.cache" |
706 |
- |
707 |
- if [[ -e ${EROOT}${cache} ]]; then |
708 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
709 |
- else |
710 |
- touch "${ED}"/${cache} || die |
711 |
- fi |
712 |
- } |
713 |
- |
714 |
- # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache |
715 |
- # file due to inability to create it and GIO might not look at any of the modules there |
716 |
- if ! tc-is-cross-compiler ; then |
717 |
- multilib_foreach_abi multilib_pkg_preinst |
718 |
- fi |
719 |
-} |
720 |
- |
721 |
-pkg_postinst() { |
722 |
- # force (re)generation of gschemas.compiled |
723 |
- GNOME2_ECLASS_GLIB_SCHEMAS="force" |
724 |
- |
725 |
- gnome2_pkg_postinst |
726 |
- |
727 |
- multilib_pkg_postinst() { |
728 |
- gnome2_giomodule_cache_update \ |
729 |
- || die "Update GIO modules cache failed (for ${ABI})" |
730 |
- } |
731 |
- if ! tc-is-cross-compiler ; then |
732 |
- multilib_foreach_abi multilib_pkg_postinst |
733 |
- else |
734 |
- ewarn "Updating of GIO modules cache skipped due to cross-compilation." |
735 |
- ewarn "You might want to run gio-querymodules manually on the target for" |
736 |
- ewarn "your final image for performance reasons and re-run it when packages" |
737 |
- ewarn "installing GIO modules get upgraded or added to the image." |
738 |
- fi |
739 |
-} |
740 |
- |
741 |
-pkg_postrm() { |
742 |
- gnome2_pkg_postrm |
743 |
- |
744 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
745 |
- multilib_pkg_postrm() { |
746 |
- rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache |
747 |
- } |
748 |
- multilib_foreach_abi multilib_pkg_postrm |
749 |
- rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled |
750 |
- fi |
751 |
-} |
752 |
|
753 |
diff --git a/dev-libs/glib/glib-2.58.1.ebuild b/dev-libs/glib/glib-2.58.1.ebuild |
754 |
deleted file mode 100644 |
755 |
index c9d5bdbbe0f..00000000000 |
756 |
--- a/dev-libs/glib/glib-2.58.1.ebuild |
757 |
+++ /dev/null |
758 |
@@ -1,315 +0,0 @@ |
759 |
-# Copyright 1999-2018 Gentoo Authors |
760 |
-# Distributed under the terms of the GNU General Public License v2 |
761 |
- |
762 |
-EAPI=6 |
763 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
764 |
-GNOME2_EAUTORECONF=yes |
765 |
- |
766 |
-inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \ |
767 |
- multilib multilib-minimal pax-utils python-any-r1 toolchain-funcs virtualx |
768 |
- |
769 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
770 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
771 |
-# then to be think very closely. |
772 |
- |
773 |
-DESCRIPTION="The GLib library of C routines" |
774 |
-HOMEPAGE="https://www.gtk.org/" |
775 |
-SRC_URI="${SRC_URI} |
776 |
- https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz |
777 |
- https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
778 |
- |
779 |
-LICENSE="LGPL-2.1+" |
780 |
-SLOT="2" |
781 |
-IUSE="dbus debug fam gtk-doc kernel_linux +mime selinux static-libs systemtap test utils xattr" |
782 |
- |
783 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
784 |
- |
785 |
-# Added util-linux multilib dependency to have libmount support (which |
786 |
-# is always turned on on linux systems, unless explicitly disabled, but |
787 |
-# this ebuild does not do that anyway) (bug #599586) |
788 |
- |
789 |
-RDEPEND=" |
790 |
- !<dev-util/gdbus-codegen-${PV} |
791 |
- >=dev-libs/libpcre-8.31:3[${MULTILIB_USEDEP},static-libs?] |
792 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
793 |
- >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] |
794 |
- >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] |
795 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
796 |
- kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] ) |
797 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
798 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
799 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
800 |
- utils? ( |
801 |
- >=dev-util/gdbus-codegen-${PV} |
802 |
- virtual/libelf:0= |
803 |
- ) |
804 |
-" |
805 |
-DEPEND="${RDEPEND} |
806 |
- app-text/docbook-xml-dtd:4.1.2 |
807 |
- app-text/docbook-xsl-stylesheets |
808 |
- >=dev-libs/libxslt-1.0 |
809 |
- >=sys-devel/gettext-0.11 |
810 |
- gtk-doc? ( >=dev-util/gtk-doc-1.20 ) |
811 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
812 |
- ${PYTHON_DEPS} |
813 |
- test? ( |
814 |
- sys-devel/gdb |
815 |
- >=dev-util/gdbus-codegen-${PV} |
816 |
- >=sys-apps/dbus-1.2.14 ) |
817 |
-" |
818 |
-# configure.ac has gtk-doc-am stuff behind m4_ifdef, so we don't need a gtk-doc-am build dep |
819 |
- |
820 |
-# Migration of glib-genmarshal, glib-mkenums and gtester-report to a separate |
821 |
-# python depending package, which can be buildtime depended in packages that |
822 |
-# need these tools, without pulling in python at runtime. |
823 |
-RDEPEND="${RDEPEND} |
824 |
- >=dev-util/glib-utils-${PV}" |
825 |
-PDEPEND=" |
826 |
- dbus? ( gnome-base/dconf ) |
827 |
- mime? ( x11-misc/shared-mime-info ) |
828 |
-" |
829 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
830 |
-# dconf is needed to be able to save settings, bug #498436 |
831 |
- |
832 |
-MULTILIB_CHOST_TOOLS=( |
833 |
- /usr/bin/gio-querymodules$(get_exeext) |
834 |
-) |
835 |
- |
836 |
-pkg_setup() { |
837 |
- if use kernel_linux ; then |
838 |
- CONFIG_CHECK="~INOTIFY_USER" |
839 |
- if use test ; then |
840 |
- CONFIG_CHECK="~IPV6" |
841 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
842 |
- fi |
843 |
- linux-info_pkg_setup |
844 |
- fi |
845 |
- python-any-r1_pkg_setup |
846 |
-} |
847 |
- |
848 |
-src_prepare() { |
849 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
850 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
851 |
- |
852 |
- if use test; then |
853 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
854 |
- if ! has_version dev-util/desktop-file-utils ; then |
855 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
856 |
- ewarn "think on installing it to get these tests run." |
857 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
858 |
- sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die |
859 |
- fi |
860 |
- |
861 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
862 |
- # other), falling back to xterm if one doesn't exist |
863 |
- #if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
864 |
- # ewarn "Some tests will be skipped due to missing terminal program" |
865 |
- # These tests seem to sometimes fail even with a terminal; skip for now and reevulate with meson |
866 |
- # Also try https://gitlab.gnome.org/GNOME/glib/issues/1601 once ready for backport (or in a bump) and file new issue if still fails |
867 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
868 |
- # desktop-app-info/launch* might fail similarly |
869 |
- sed -i -e "/desktop-app-info\/launch-as-manager/d" gio/tests/desktop-app-info.c || die |
870 |
- #fi |
871 |
- |
872 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=722604 |
873 |
- sed -i -e "/timer\/stop/d" glib/tests/timer.c || die |
874 |
- sed -i -e "/timer\/basic/d" glib/tests/timer.c || die |
875 |
- |
876 |
- ewarn "Tests for search-utils have been skipped" |
877 |
- sed -i -e "/search-utils/d" glib/tests/Makefile.am || die |
878 |
- else |
879 |
- # Don't build tests, also prevents extra deps, bug #512022 |
880 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
881 |
- fi |
882 |
- |
883 |
- # Various cherry-picked patches from glib-2-58 branch (will be part of 2.58.2) |
884 |
- # Also patch to keep gtimezone working right on non-symlinked /etc/localtime on Gentoo (might get into 2.58.2, might not) |
885 |
- eapply "${WORKDIR}"/patches |
886 |
- |
887 |
- # gdbus-codegen is a separate package |
888 |
- eapply "${FILESDIR}"/${PN}-2.54.3-external-gdbus-codegen.patch |
889 |
- |
890 |
- # Tarball doesn't come with gtk-doc.make and we can't unconditionally depend on dev-util/gtk-doc due |
891 |
- # to circular deps during bootstramp. If actually not building gtk-doc, an almost empty file will do |
892 |
- # fine as well - this is also what upstream autogen.sh does if gtkdocize is not found. If gtk-doc is |
893 |
- # installed, eautoreconf will call gtkdocize, which overwrites the empty gtk-doc.make with a full copy. |
894 |
- cat > gtk-doc.make << EOF |
895 |
-EXTRA_DIST = |
896 |
-CLEANFILES = |
897 |
-EOF |
898 |
- |
899 |
- gnome2_src_prepare |
900 |
- epunt_cxx |
901 |
-} |
902 |
- |
903 |
-multilib_src_configure() { |
904 |
- # Avoid circular depend with dev-util/pkgconfig and |
905 |
- # native builds (cross-compiles won't need pkg-config |
906 |
- # in the target ROOT to work here) |
907 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
908 |
- if has_version sys-apps/dbus; then |
909 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
910 |
- export DBUS1_LIBS="-ldbus-1" |
911 |
- fi |
912 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
913 |
- export LIBFFI_LIBS="-lffi" |
914 |
- export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass |
915 |
- export PCRE_LIBS="-lpcre" |
916 |
- fi |
917 |
- |
918 |
- # These configure tests don't work when cross-compiling. |
919 |
- if tc-is-cross-compiler ; then |
920 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
921 |
- case ${CHOST} in |
922 |
- hppa*|metag*) export glib_cv_stack_grows=yes ;; |
923 |
- *) export glib_cv_stack_grows=no ;; |
924 |
- esac |
925 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
926 |
- export glib_cv_uscore=no |
927 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
928 |
- export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
929 |
- fi |
930 |
- |
931 |
- local myconf |
932 |
- |
933 |
- case "${CHOST}" in |
934 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
935 |
- *) myconf="${myconf} --with-threads=posix" ;; |
936 |
- esac |
937 |
- |
938 |
- # libelf used only by the gresource bin |
939 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
940 |
- $(usex debug --enable-debug=yes ' ') \ |
941 |
- $(use_enable xattr) \ |
942 |
- $(use_enable fam) \ |
943 |
- $(multilib_native_use_enable gtk-doc) \ |
944 |
- $(use_enable kernel_linux libmount) \ |
945 |
- $(use_enable selinux) \ |
946 |
- $(use_enable static-libs static) \ |
947 |
- $(use_enable systemtap dtrace) \ |
948 |
- $(use_enable systemtap systemtap) \ |
949 |
- $(multilib_native_use_enable utils libelf) \ |
950 |
- --with-python=${EPYTHON} \ |
951 |
- --disable-compile-warnings \ |
952 |
- --enable-man \ |
953 |
- --with-pcre=system \ |
954 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
955 |
- |
956 |
- if multilib_is_native_abi; then |
957 |
- local d |
958 |
- for d in glib gio gobject; do |
959 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
960 |
- done |
961 |
- fi |
962 |
-} |
963 |
- |
964 |
-multilib_src_test() { |
965 |
- export XDG_CONFIG_DIRS=/etc/xdg |
966 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
967 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
968 |
- export LC_TIME=C # bug #411967 |
969 |
- unset GSETTINGS_BACKEND # bug #596380 |
970 |
- python_setup |
971 |
- |
972 |
- # Related test is a bit nitpicking |
973 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
974 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
975 |
- |
976 |
- # Hardened: gdb needs this, bug #338891 |
977 |
- if host-is-pax ; then |
978 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
979 |
- || die "Hardened adjustment failed" |
980 |
- fi |
981 |
- |
982 |
- # Need X for dbus-launch session X11 initialization |
983 |
- virtx emake check |
984 |
-} |
985 |
- |
986 |
-multilib_src_install() { |
987 |
- emake DESTDIR="${D}" completiondir="$(get_bashcompdir)" install |
988 |
- keepdir /usr/$(get_libdir)/gio/modules |
989 |
-} |
990 |
- |
991 |
-multilib_src_install_all() { |
992 |
- einstalldocs |
993 |
- |
994 |
- # These are installed by dev-util/glib-utils |
995 |
- # TODO: With patching we might be able to get rid of the python-any deps and removals, and test depend on glib-utils instead; revisit with meson |
996 |
- rm "${ED}usr/bin/glib-genmarshal" || die |
997 |
- rm "${ED}usr/share/man/man1/glib-genmarshal.1" || die |
998 |
- rm "${ED}usr/bin/glib-mkenums" || die |
999 |
- rm "${ED}usr/share/man/man1/glib-mkenums.1" || die |
1000 |
- rm "${ED}usr/bin/gtester-report" || die |
1001 |
- rm "${ED}usr/share/man/man1/gtester-report.1" || die |
1002 |
- |
1003 |
- # Do not install charset.alias even if generated, leave it to libiconv |
1004 |
- rm -f "${ED}/usr/$(get_libdir)/charset.alias" |
1005 |
- |
1006 |
- # Don't install gdb python macros, bug 291328 |
1007 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
1008 |
- |
1009 |
- # Completely useless with or without USE static-libs, people need to use pkg-config |
1010 |
- find "${ED}" -name '*.la' -delete || die |
1011 |
-} |
1012 |
- |
1013 |
-pkg_preinst() { |
1014 |
- gnome2_pkg_preinst |
1015 |
- |
1016 |
- # Make gschemas.compiled belong to glib alone |
1017 |
- local cache="usr/share/glib-2.0/schemas/gschemas.compiled" |
1018 |
- |
1019 |
- if [[ -e ${EROOT}${cache} ]]; then |
1020 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
1021 |
- else |
1022 |
- touch "${ED}"/${cache} || die |
1023 |
- fi |
1024 |
- |
1025 |
- multilib_pkg_preinst() { |
1026 |
- # Make giomodule.cache belong to glib alone |
1027 |
- local cache="usr/$(get_libdir)/gio/modules/giomodule.cache" |
1028 |
- |
1029 |
- if [[ -e ${EROOT}${cache} ]]; then |
1030 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
1031 |
- else |
1032 |
- touch "${ED}"/${cache} || die |
1033 |
- fi |
1034 |
- } |
1035 |
- |
1036 |
- # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache |
1037 |
- # file due to inability to create it and GIO might not look at any of the modules there |
1038 |
- if ! tc-is-cross-compiler ; then |
1039 |
- multilib_foreach_abi multilib_pkg_preinst |
1040 |
- fi |
1041 |
-} |
1042 |
- |
1043 |
-pkg_postinst() { |
1044 |
- # force (re)generation of gschemas.compiled |
1045 |
- GNOME2_ECLASS_GLIB_SCHEMAS="force" |
1046 |
- |
1047 |
- gnome2_pkg_postinst |
1048 |
- |
1049 |
- multilib_pkg_postinst() { |
1050 |
- gnome2_giomodule_cache_update \ |
1051 |
- || die "Update GIO modules cache failed (for ${ABI})" |
1052 |
- } |
1053 |
- if ! tc-is-cross-compiler ; then |
1054 |
- multilib_foreach_abi multilib_pkg_postinst |
1055 |
- else |
1056 |
- ewarn "Updating of GIO modules cache skipped due to cross-compilation." |
1057 |
- ewarn "You might want to run gio-querymodules manually on the target for" |
1058 |
- ewarn "your final image for performance reasons and re-run it when packages" |
1059 |
- ewarn "installing GIO modules get upgraded or added to the image." |
1060 |
- fi |
1061 |
-} |
1062 |
- |
1063 |
-pkg_postrm() { |
1064 |
- gnome2_pkg_postrm |
1065 |
- |
1066 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
1067 |
- multilib_pkg_postrm() { |
1068 |
- rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache |
1069 |
- } |
1070 |
- multilib_foreach_abi multilib_pkg_postrm |
1071 |
- rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled |
1072 |
- fi |
1073 |
-} |