Gentoo Archives: gentoo-commits

From: Sobhan Mohammadpour <sobhan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-libs/glib/
Date: Fri, 16 Feb 2018 16:11:08
Message-Id: 1518796824.4bddcb0718a7f70007fcd3cf75e4f7e91b4bb4b7.sobhan@gentoo
1 commit: 4bddcb0718a7f70007fcd3cf75e4f7e91b4bb4b7
2 Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 16:00:24 2018 +0000
4 Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 16:00:24 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=4bddcb07
7
8 dev-libs/glib: remove old
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11 Manifest-Sign-Key: 0x7DF238CF0AA182E1
12
13 dev-libs/glib/glib-2.54.3-r1.ebuild | 301 ------------------------------------
14 1 file changed, 301 deletions(-)
15
16 diff --git a/dev-libs/glib/glib-2.54.3-r1.ebuild b/dev-libs/glib/glib-2.54.3-r1.ebuild
17 deleted file mode 100644
18 index 4e5804f4..00000000
19 --- a/dev-libs/glib/glib-2.54.3-r1.ebuild
20 +++ /dev/null
21 @@ -1,301 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
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=6
30 -PYTHON_COMPAT=( python2_7 )
31 -# Completely useless with or without USE static-libs, people need to use pkg-config
32 -GNOME2_LA_PUNT="yes"
33 -
34 -inherit bash-completion-r1 epunt-cxx flag-o-matic gnome-meson libtool linux-info \
35 - multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx
36 -
37 -DESCRIPTION="The GLib library of C routines"
38 -HOMEPAGE="https://www.gtk.org/"
39 -SRC_URI="${SRC_URI}
40 - https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
41 -
42 -LICENSE="LGPL-2.1+"
43 -SLOT="2"
44 -IUSE="dbus debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
45 -REQUIRED_USE="
46 - utils? ( ${PYTHON_REQUIRED_USE} )
47 - test? ( ${PYTHON_REQUIRED_USE} )
48 -"
49 -
50 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
51 -
52 -# Added util-linux multilib dependency to have libmount support (which
53 -# is always turned on on linux systems, unless explicitly disabled, but
54 -# this ebuild does not do that anyway) (bug #599586)
55 -
56 -RDEPEND="
57 - !<dev-util/gdbus-codegen-${PV}
58 - >=dev-libs/libpcre-8.13:3[${MULTILIB_USEDEP},static-libs?]
59 - >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
60 - >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
61 - >=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
62 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
63 - kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] )
64 - selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
65 - xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
66 - fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
67 - utils? (
68 - ${PYTHON_DEPS}
69 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
70 - virtual/libelf:0=
71 - )
72 -"
73 -DEPEND="${RDEPEND}
74 - app-text/docbook-xml-dtd:4.1.2
75 - >=dev-libs/libxslt-1.0
76 - >=sys-devel/gettext-0.11
77 - >=dev-util/gtk-doc-am-1.20
78 - systemtap? ( >=dev-util/systemtap-1.3 )
79 - test? (
80 - sys-devel/gdb
81 - ${PYTHON_DEPS}
82 - >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
83 - >=sys-apps/dbus-1.2.14 )
84 - !<dev-util/gtk-doc-1.15-r2
85 -"
86 -PDEPEND="!<gnome-base/gvfs-1.6.4-r990
87 - dbus? ( gnome-base/dconf )
88 - mime? ( x11-misc/shared-mime-info )
89 -"
90 -# shared-mime-info needed for gio/xdgmime, bug #409481
91 -# dconf is needed to be able to save settings, bug #498436
92 -# Earlier versions of gvfs do not work with glib
93 -
94 -MULTILIB_CHOST_TOOLS=(
95 - /usr/bin/gio-querymodules$(get_exeext)
96 -)
97 -
98 -pkg_setup() {
99 - if use kernel_linux ; then
100 - CONFIG_CHECK="~INOTIFY_USER"
101 - if use test ; then
102 - CONFIG_CHECK="~IPV6"
103 - WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
104 - fi
105 - linux-info_pkg_setup
106 - fi
107 -}
108 -
109 -src_prepare() {
110 - # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
111 - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
112 - # Copy missing gengiotypefuncs.py
113 - cp "${FILESDIR}"/gengiotypefuncs.py "${S}"/gio/tests/ || die
114 -
115 - # We need gengiotypefuncs
116 - if use test; then
117 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
118 - if ! has_version dev-util/desktop-file-utils ; then
119 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
120 - ewarn "think on installing it to get these tests run."
121 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
122 - sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
123 - fi
124 -
125 - # gdesktopappinfo requires existing terminal (gnome-terminal or any
126 - # other), falling back to xterm if one doesn't exist
127 - if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
128 - ewarn "Some tests will be skipped due to missing terminal program"
129 - sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
130 - fi
131 -
132 - # https://bugzilla.gnome.org/show_bug.cgi?id=722604
133 - sed -i -e "/timer\/stop/d" glib/tests/timer.c || die
134 - sed -i -e "/timer\/basic/d" glib/tests/timer.c || die
135 -
136 - ewarn "Tests for search-utils have been skipped"
137 - sed -i -e "/search-utils/d" glib/tests/Makefile.am || die
138 - else
139 - # Don't build tests, also prevents extra deps, bug #512022
140 - sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
141 - fi
142 -
143 - # gdbus-codegen is a separate package
144 - eapply "${FILESDIR}"/${PN}-2.54.2-external-codegen.patch
145 -
146 - # Leave python shebang alone - handled by python_replicate_script
147 - # We could call python_setup and give configure a valid --with-python
148 - # arg, but that would mean a build dep on python when USE=utils.
149 - sed -e '/${PYTHON}/d' \
150 - -i glib/Makefile.{am,in} || die
151 -
152 - gnome-meson_src_prepare
153 -
154 - epunt_cxx
155 -}
156 -
157 -multilib_src_configure() {
158 - # TODO is this still relevent?
159 - # Avoid circular depend with dev-util/pkgconfig and
160 - # native builds (cross-compiles won't need pkg-config
161 - # in the target ROOT to work here)
162 - if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
163 - if has_version sys-apps/dbus; then
164 - export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
165 - export DBUS1_LIBS="-ldbus-1"
166 - fi
167 - export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
168 - export LIBFFI_LIBS="-lffi"
169 - export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass
170 - export PCRE_LIBS="-lpcre"
171 - fi
172 -
173 - # These configure tests don't work when cross-compiling.
174 - if tc-is-cross-compiler ; then
175 - # https://bugzilla.gnome.org/show_bug.cgi?id=756473
176 - case ${CHOST} in
177 - hppa*|metag*) export glib_cv_stack_grows=yes ;;
178 - *) export glib_cv_stack_grows=no ;;
179 - esac
180 - # https://bugzilla.gnome.org/show_bug.cgi?id=756474
181 - export glib_cv_uscore=no
182 - # https://bugzilla.gnome.org/show_bug.cgi?id=756475
183 - export ac_cv_func_posix_get{pwuid,grgid}_r=yes
184 - fi
185 -
186 - local myconf
187 -
188 - # FIXME multilib automagic for libelf
189 - # FIXME set systemtap/tapse/static-lib install dir and test it.
190 - # FIXME no selinux, fam, xattr for now.
191 - # FIXME enable docs if possible.
192 -
193 - use static-libs && myconf="-Ddefault_library='static'"
194 - use debug && myconf="$myconf -Dbuildtype='debug'"
195 -
196 - gnome-meson_src_configure \
197 - ${myconf} \
198 - -Denable-libmount=$(usex kernel_linux yes no) \
199 - $(meson_use systemtap enable-dtrace) \
200 - $(meson_use systemtap enable-systemtap) \
201 - -Dwith-pcre=system \
202 - -Dwith-docs=no \
203 - -Dwith-man=yes
204 -
205 - if multilib_is_native_abi; then
206 - local d
207 - for d in glib gio gobject; do
208 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
209 - done
210 - fi
211 -}
212 -
213 -multilib_src_compile() {
214 - gnome-meson_src_compile
215 -}
216 -# FIXME
217 -multilib_src_test() {
218 - export XDG_CONFIG_DIRS=/etc/xdg
219 - export XDG_DATA_DIRS=/usr/local/share:/usr/share
220 - export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
221 - export LC_TIME=C # bug #411967
222 - unset GSETTINGS_BACKEND # bug #596380
223 - python_setup
224 -
225 - # Related test is a bit nitpicking
226 - mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
227 - chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
228 -
229 - # Hardened: gdb needs this, bug #338891
230 - if host-is-pax ; then
231 - pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
232 - || die "Hardened adjustment failed"
233 - fi
234 -
235 - # Need X for dbus-launch session X11 initialization
236 - virtx meson_src_test
237 -}
238 -
239 -multilib_src_install() {
240 - chmod +x glib-gettextize || die
241 - gnome-meson_src_install completiondir="$(get_bashcompdir)"
242 - keepdir /usr/$(get_libdir)/gio/modules
243 -}
244 -
245 -multilib_src_install_all() {
246 - einstalldocs
247 -
248 - if use utils ; then
249 - python_replicate_script "${ED}"/usr/bin/gtester-report
250 - else
251 - rm "${ED}usr/bin/gtester-report"
252 - rm "${ED}usr/share/man/man1/gtester-report.1"
253 - fi
254 -
255 - # Do not install charset.alias even if generated, leave it to libiconv
256 - rm -f "${ED}/usr/lib/charset.alias"
257 -
258 - # Don't install gdb python macros, bug 291328
259 - rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
260 -}
261 -
262 -pkg_preinst() {
263 - gnome-meson_pkg_preinst
264 -
265 - # Make gschemas.compiled belong to glib alone
266 - local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
267 -
268 - if [[ -e ${EROOT}${cache} ]]; then
269 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
270 - else
271 - touch "${ED}"/${cache} || die
272 - fi
273 -
274 - multilib_pkg_preinst() {
275 - # Make giomodule.cache belong to glib alone
276 - local cache="usr/$(get_libdir)/gio/modules/giomodule.cache"
277 -
278 - if [[ -e ${EROOT}${cache} ]]; then
279 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
280 - else
281 - touch "${ED}"/${cache} || die
282 - fi
283 - }
284 -
285 - # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache
286 - # file due to inability to create it and GIO might not look at any of the modules there
287 - if ! tc-is-cross-compiler ; then
288 - multilib_foreach_abi multilib_pkg_preinst
289 - fi
290 -}
291 -
292 -pkg_postinst() {
293 - # force (re)generation of gschemas.compiled
294 - GNOME2_ECLASS_GLIB_SCHEMAS="force"
295 -
296 - gnome-meson_pkg_postinst
297 -
298 - multilib_pkg_postinst() {
299 - gnome2_giomodule_cache_update \
300 - || die "Update GIO modules cache failed (for ${ABI})"
301 - }
302 - if ! tc-is-cross-compiler ; then
303 - multilib_foreach_abi multilib_pkg_postinst
304 - else
305 - ewarn "Updating of GIO modules cache skipped due to cross-compilation."
306 - ewarn "You might want to run gio-querymodules manually on the target for"
307 - ewarn "your final image for performance reasons and re-run it when packages"
308 - ewarn "installing GIO modules get upgraded or added to the image."
309 - fi
310 -}
311 -
312 -pkg_postrm() {
313 - gnome-meson_pkg_postrm
314 -
315 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
316 - multilib_pkg_postrm() {
317 - rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache
318 - }
319 - multilib_foreach_abi multilib_pkg_postrm
320 - rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
321 - fi
322 -}