Gentoo Archives: gentoo-commits

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/glib/
Date: Mon, 02 May 2016 02:03:57
Message-Id: 1462154472.0b3de90b40d9fa34c2ab820613a0b85be27a4615.tetromino@gentoo
1 commit: 0b3de90b40d9fa34c2ab820613a0b85be27a4615
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 02:01:12 2016 +0000
4 Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 02:01:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b3de90b
7
8 dev-libs/glib: clean up old
9
10 Package-Manager: portage-2.2.28
11
12 dev-libs/glib/glib-2.46.2-r1.ebuild | 319 ------------------------------------
13 1 file changed, 319 deletions(-)
14
15 diff --git a/dev-libs/glib/glib-2.46.2-r1.ebuild b/dev-libs/glib/glib-2.46.2-r1.ebuild
16 deleted file mode 100644
17 index 1eb630d..0000000
18 --- a/dev-libs/glib/glib-2.46.2-r1.ebuild
19 +++ /dev/null
20 @@ -1,319 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -# Until bug #537330 glib is a reverse dependency of pkgconfig and, then
26 -# adding new dependencies end up making stage3 to grow. Every addition needs
27 -# then to be think very closely.
28 -
29 -EAPI="5"
30 -PYTHON_COMPAT=( python2_7 )
31 -# Building with --disable-debug highly unrecommended. It will build glib in
32 -# an unusable form as it disables some commonly used API. Please do not
33 -# convert this to the use_enable form, as it results in a broken build.
34 -GCONF_DEBUG="yes"
35 -# Completely useless with or without USE static-libs, people need to use
36 -# pkg-config
37 -GNOME2_LA_PUNT="yes"
38 -
39 -inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \
40 - pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
41 -
42 -DESCRIPTION="The GLib library of C routines"
43 -HOMEPAGE="http://www.gtk.org/"
44 -SRC_URI="${SRC_URI}
45 - https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
46 -
47 -LICENSE="LGPL-2+"
48 -SLOT="2"
49 -IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
50 -REQUIRED_USE="
51 - utils? ( ${PYTHON_REQUIRED_USE} )
52 - test? ( ${PYTHON_REQUIRED_USE} )
53 -"
54 -
55 -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"
56 -
57 -RDEPEND="
58 - !<dev-util/gdbus-codegen-${PV}
59 - >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
60 - >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
61 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
62 - selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
63 - xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
64 - fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
65 - utils? (
66 - ${PYTHON_DEPS}
67 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
68 - || (
69 - >=dev-libs/elfutils-0.142
70 - >=dev-libs/libelf-0.8.12
71 - >=sys-freebsd/freebsd-lib-9.2_rc1
72 - )
73 - )
74 -"
75 -DEPEND="${RDEPEND}
76 - app-text/docbook-xml-dtd:4.1.2
77 - >=dev-libs/libxslt-1.0
78 - >=sys-devel/gettext-0.11
79 - >=dev-util/gtk-doc-am-1.20
80 - systemtap? ( >=dev-util/systemtap-1.3 )
81 - test? (
82 - sys-devel/gdb
83 - ${PYTHON_DEPS}
84 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
85 - >=sys-apps/dbus-1.2.14 )
86 - !<dev-util/gtk-doc-1.15-r2
87 -"
88 -# gobject-introspection blocker to ensure people don't mix
89 -# different g-i and glib major versions
90 -
91 -PDEPEND="!<gnome-base/gvfs-1.6.4-r990
92 - dbus? ( gnome-base/dconf )
93 - mime? ( x11-misc/shared-mime-info )
94 -"
95 -# shared-mime-info needed for gio/xdgmime, bug #409481
96 -# dconf is needed to be able to save settings, bug #498436
97 -# Earlier versions of gvfs do not work with glib
98 -
99 -MULTILIB_CHOST_TOOLS=(
100 - /usr/bin/gio-querymodules
101 -)
102 -
103 -pkg_setup() {
104 - if use kernel_linux ; then
105 - CONFIG_CHECK="~INOTIFY_USER"
106 - if use test; then
107 - CONFIG_CHECK="~IPV6"
108 - WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
109 - fi
110 - linux-info_pkg_setup
111 - fi
112 -}
113 -
114 -src_prepare() {
115 - # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
116 - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
117 -
118 - if use test; then
119 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
120 - if ! has_version dev-util/desktop-file-utils ; then
121 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
122 - ewarn "think on installing it to get these tests run."
123 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
124 - sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
125 - fi
126 -
127 - # gdesktopappinfo requires existing terminal (gnome-terminal or any
128 - # other), falling back to xterm if one doesn't exist
129 - if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
130 - ewarn "Some tests will be skipped due to missing terminal program"
131 - sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
132 - fi
133 -
134 - # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
135 - if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then
136 - ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3"
137 - ewarn "not being present on your system, think on installing them to get these tests run."
138 - sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
139 - sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
140 - sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
141 - sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
142 - sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
143 - sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
144 - sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
145 - # needed to prevent gdbus-threading from asserting
146 - ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
147 - fi
148 -
149 - # Some tests need ipv6, upstream bug #667468
150 - # https://bugs.gentoo.org/show_bug.cgi?id=508752
151 - if [[ ! -f /proc/net/if_net6 ]]; then
152 - sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die
153 - sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die
154 - sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die
155 - fi
156 -
157 - # This test is prone to fail, bug #504024, upstream bug #723719
158 - sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die
159 - else
160 - # Don't build tests, also prevents extra deps, bug #512022
161 - sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
162 - fi
163 -
164 - # gdbus-codegen is a separate package
165 - epatch "${FILESDIR}"/${PN}-2.40.0-external-gdbus-codegen.patch
166 -
167 - # leave python shebang alone
168 - sed -e '/${PYTHON}/d' \
169 - -i glib/Makefile.{am,in} || die
170 -
171 - epatch_user
172 -
173 - # Also needed to prevent cross-compile failures, see bug #267603
174 - eautoreconf
175 -
176 - gnome2_src_prepare
177 -
178 - epunt_cxx
179 -}
180 -
181 -multilib_src_configure() {
182 - # Avoid circular depend with dev-util/pkgconfig and
183 - # native builds (cross-compiles won't need pkg-config
184 - # in the target ROOT to work here)
185 - if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
186 - if has_version sys-apps/dbus; then
187 - export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
188 - export DBUS1_LIBS="-ldbus-1"
189 - fi
190 - export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
191 - export LIBFFI_LIBS="-lffi"
192 - fi
193 -
194 - # These configure tests don't work when cross-compiling.
195 - if tc-is-cross-compiler ; then
196 - # https://bugzilla.gnome.org/show_bug.cgi?id=756473
197 - case ${CHOST} in
198 - hppa*|metag*) export glib_cv_stack_grows=yes ;;
199 - *) export glib_cv_stack_grows=no ;;
200 - esac
201 - # https://bugzilla.gnome.org/show_bug.cgi?id=756474
202 - export glib_cv_uscore=no
203 - # https://bugzilla.gnome.org/show_bug.cgi?id=756475
204 - export ac_cv_func_posix_get{pwuid,grgid}_r=yes
205 - fi
206 -
207 - local myconf
208 -
209 - case "${CHOST}" in
210 - *-mingw*) myconf="${myconf} --with-threads=win32" ;;
211 - *) myconf="${myconf} --with-threads=posix" ;;
212 - esac
213 -
214 - # FIXME: Always use internal libpcre, bug #254659
215 - # (maybe consider going back to system lib)
216 - # libelf used only by the gresource bin
217 - ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
218 - $(use_enable xattr) \
219 - $(use_enable fam) \
220 - $(use_enable selinux) \
221 - $(use_enable static-libs static) \
222 - $(use_enable systemtap dtrace) \
223 - $(use_enable systemtap systemtap) \
224 - $(multilib_native_use_enable utils libelf) \
225 - --disable-compile-warnings \
226 - --enable-man \
227 - --with-pcre=internal \
228 - --with-xml-catalog="${EPREFIX}/etc/xml/catalog"
229 -
230 - if multilib_is_native_abi; then
231 - local d
232 - for d in glib gio gobject; do
233 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
234 - done
235 - fi
236 -}
237 -
238 -multilib_src_test() {
239 - export XDG_CONFIG_DIRS=/etc/xdg
240 - export XDG_DATA_DIRS=/usr/local/share:/usr/share
241 - export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
242 - export LC_TIME=C # bug #411967
243 - python_export_best
244 -
245 - # Related test is a bit nitpicking
246 - mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
247 - chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
248 -
249 - # Hardened: gdb needs this, bug #338891
250 - if host-is-pax ; then
251 - pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
252 - || die "Hardened adjustment failed"
253 - fi
254 -
255 - # Need X for dbus-launch session X11 initialization
256 - Xemake check
257 -}
258 -
259 -multilib_src_install() {
260 - gnome2_src_install completiondir="$(get_bashcompdir)"
261 - keepdir /usr/$(get_libdir)/gio/modules
262 -}
263 -
264 -multilib_src_install_all() {
265 - DOCS="AUTHORS ChangeLog* NEWS* README"
266 - einstalldocs
267 -
268 - if use utils ; then
269 - python_replicate_script "${ED}"/usr/bin/gtester-report
270 - else
271 - rm "${ED}usr/bin/gtester-report"
272 - rm "${ED}usr/share/man/man1/gtester-report.1"
273 - fi
274 -
275 - # Do not install charset.alias even if generated, leave it to libiconv
276 - rm -f "${ED}/usr/lib/charset.alias"
277 -
278 - # Don't install gdb python macros, bug 291328
279 - rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
280 -}
281 -
282 -pkg_preinst() {
283 - gnome2_pkg_preinst
284 -
285 - # Make gschemas.compiled belong to glib alone
286 - local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
287 -
288 - if [[ -e ${EROOT}${cache} ]]; then
289 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
290 - else
291 - touch "${ED}"/${cache} || die
292 - fi
293 -
294 - multilib_pkg_preinst() {
295 - # Make giomodule.cache belong to glib alone
296 - local cache="usr/$(get_libdir)/gio/giomodule.cache"
297 -
298 - if [[ -e ${EROOT}${cache} ]]; then
299 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
300 - else
301 - touch "${ED}"/${cache} || die
302 - fi
303 - }
304 -
305 - multilib_foreach_abi multilib_pkg_preinst
306 -}
307 -
308 -pkg_postinst() {
309 - # force (re)generation of gschemas.compiled
310 - GNOME2_ECLASS_GLIB_SCHEMAS="force"
311 -
312 - gnome2_pkg_postinst
313 -
314 - multilib_pkg_postinst() {
315 - gnome2_giomodule_cache_update \
316 - || die "Update GIO modules cache failed (for ${ABI})"
317 - }
318 - multilib_foreach_abi multilib_pkg_postinst
319 -
320 - if has_version '<x11-libs/gtk+-3.0.12:3'; then
321 - # To have a clear upgrade path for gtk+-3.0.x users, have to resort to
322 - # a warning instead of a blocker
323 - ewarn
324 - ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
325 - ewarn "You should upgrade to a newer version of gtk+:3 immediately."
326 - fi
327 -}
328 -
329 -pkg_postrm() {
330 - gnome2_pkg_postrm
331 -
332 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
333 - multilib_pkg_postrm() {
334 - rm -f "${EROOT}"usr/$(get_libdir)/gio/giomodule.cache
335 - }
336 - multilib_foreach_abi multilib_pkg_postrm
337 - rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
338 - fi
339 -}