mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
glib: sync with gentoo
This commit is contained in:
parent
698ea7ac03
commit
7ee3697cd2
3 changed files with 31 additions and 107 deletions
|
|
@ -1,3 +1,4 @@
|
|||
DIST glib-2.48.2.tar.xz 6408644 SHA256 f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4 SHA512 2eac104eb2207d0a6488992e48069a34b417f51e141364f281ab7b0953a6de88be177b1c694dd9464a856c9a5d8021e3cf0193a8d9c5aaf6ea11f1f9ff743c43 WHIRLPOOL cba211000d5597e93d01113e5f2b6736e47f4daa00935a53af182b3304fef9a1ac25f78995c7a53cc1234261433a1bbd1ec751c87b556845a15da720af5b971b
|
||||
DIST glib-2.50.3.tar.xz 7589284 SHA256 82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999 SHA512 ef35806c15170b6608445f255136c0bebd2d433adf903c2af2865f6a57b4f2fcfc1e4a7cea1a0dac48ff5fe26248fbf7886dba4a8d209506f0a94160df8fb7af WHIRLPOOL fc8effb457005a234ccb164d74026cec4af7f9a70eef0a8d58efebfacdcf0d7f7713042a9476e6a89e4effbdf4b0d59377811790557cc991cf6b397e5e984f93
|
||||
DIST glib-2.52.3.tar.xz 7679972 SHA256 25ee7635a7c0fcd4ec91cbc3ae07c7f8f5ce621d8183511f414ded09e7e4e128 SHA512 a068f2519cfb82de8d4b7f004e7c1f15e841cad4046430a83b02b359d011e0c4077cdff447a1687ed7c68f1a11b4cf66b9ed9fc23ab5f0c7c6be84eb0ddc3017 WHIRLPOOL 733ab64abbd60c633833d662d6b58e011478f85d1b0ab48a4af4cbe79e6c9973ccc86247dec2897a0c7663edeee516a3f034c14ac9b5e7a3dba97a04a88298f0
|
||||
DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
|
||||
|
|
|
|||
|
|
@ -1,95 +0,0 @@
|
|||
diff --git a/configure.ac b/configure.ac
|
||||
index a01e58d..59d4527 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -367,14 +367,14 @@ AC_SUBST(PERL_PATH)
|
||||
# option to specify python interpreter to use; this just sets $PYTHON, so that
|
||||
# we will fallback to reading $PYTHON if --with-python is not given, and
|
||||
# python.m4 will get the expected input
|
||||
-AC_ARG_WITH(python,
|
||||
- AS_HELP_STRING([--with-python=PATH],
|
||||
- [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"]),
|
||||
- [PYTHON="$withval"], [])
|
||||
-if test x"$PYTHON" = xyes; then
|
||||
- AC_MSG_ERROR([--with-python option requires a path or program argument])
|
||||
-fi
|
||||
-AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
|
||||
+# AC_ARG_WITH(python,
|
||||
+# AS_HELP_STRING([--with-python=PATH],
|
||||
+# [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"]),
|
||||
+# [PYTHON="$withval"], [])
|
||||
+# if test x"$PYTHON" = xyes; then
|
||||
+# AC_MSG_ERROR([--with-python option requires a path or program argument])
|
||||
+# fi
|
||||
+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
|
||||
|
||||
|
||||
dnl ***********************
|
||||
@@ -3580,7 +3580,6 @@ gobject/glib-mkenums
|
||||
gobject/tests/Makefile
|
||||
gthread/Makefile
|
||||
gio/Makefile
|
||||
-gio/gdbus-2.0/codegen/Makefile
|
||||
gio/gdbus-2.0/codegen/config.py
|
||||
gio/gnetworking.h
|
||||
gio/xdgmime/Makefile
|
||||
diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am
|
||||
index 47fdd38..c7eb136 100644
|
||||
--- a/docs/reference/gio/Makefile.am
|
||||
+++ b/docs/reference/gio/Makefile.am
|
||||
@@ -157,8 +157,7 @@ man_MANS += \
|
||||
glib-compile-resources.1 \
|
||||
gsettings.1 \
|
||||
gresource.1 \
|
||||
- gdbus.1 \
|
||||
- gdbus-codegen.1
|
||||
+ gdbus.1
|
||||
|
||||
XSLTPROC_FLAGS = \
|
||||
--nonet \
|
||||
diff --git a/gio/Makefile.am b/gio/Makefile.am
|
||||
index e993e2f..025ad94 100644
|
||||
--- a/gio/Makefile.am
|
||||
+++ b/gio/Makefile.am
|
||||
@@ -1,6 +1,6 @@
|
||||
include $(top_srcdir)/glib.mk
|
||||
|
||||
-SUBDIRS = gdbus-2.0/codegen
|
||||
+SUBDIRS =
|
||||
|
||||
if OS_UNIX
|
||||
SUBDIRS += xdgmime
|
||||
diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am
|
||||
index 2c54e59..3cd3c5a 100644
|
||||
--- a/gio/tests/Makefile.am
|
||||
+++ b/gio/tests/Makefile.am
|
||||
@@ -437,10 +437,8 @@ gnotification_SOURCES = $(gdbus_sessionbus_sources) gnotifica
|
||||
|
||||
BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
|
||||
gdbus-test-codegen.o: gdbus-test-codegen-generated.h
|
||||
-gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
|
||||
- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
|
||||
- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
|
||||
- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
|
||||
+gdbus-test-codegen-generated.h: test-codegen.xml Makefile
|
||||
+ $(AM_V_GEN) gdbus-codegen \
|
||||
--interface-prefix org.project. \
|
||||
--generate-c-code gdbus-test-codegen-generated \
|
||||
--c-generate-object-manager \
|
||||
diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am
|
||||
index d6d1412..62ef706 100644
|
||||
--- a/gio/tests/gdbus-object-manager-example/Makefile.am
|
||||
+++ b/gio/tests/gdbus-object-manager-example/Makefile.am
|
||||
@@ -11,10 +11,8 @@ GDBUS_GENERATED = \
|
||||
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \
|
||||
$(NULL)
|
||||
|
||||
-$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
|
||||
- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
|
||||
- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
|
||||
- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
|
||||
+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile
|
||||
+ $(AM_V_GEN) gdbus-codegen \
|
||||
--interface-prefix org.gtk.GDBus.Example.ObjectManager. \
|
||||
--c-namespace Example \
|
||||
--c-generate-object-manager \
|
||||
|
|
@ -12,22 +12,26 @@ PYTHON_COMPAT=( python2_7 )
|
|||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \
|
||||
multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx
|
||||
multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx
|
||||
|
||||
DESCRIPTION="The GLib library of C routines"
|
||||
HOMEPAGE="http://www.gtk.org/"
|
||||
HOMEPAGE="https://www.gtk.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2"
|
||||
IUSE="dbus debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
|
||||
IUSE="dbus debug fam kernel_linux livecd +mime pentoo selinux static-libs systemtap test utils xattr"
|
||||
REQUIRED_USE="
|
||||
utils? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
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"
|
||||
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"
|
||||
|
||||
# Added util-linux multilib dependency to have libmount support (which
|
||||
# is always turned on on linux systems, unless explicitly disabled, but
|
||||
# this ebuild does not do that anyway) (bug #599586)
|
||||
|
||||
RDEPEND="
|
||||
!<dev-util/gdbus-codegen-${PV}
|
||||
|
|
@ -36,6 +40,7 @@ RDEPEND="
|
|||
>=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
|
||||
>=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
kernel_linux? ( sys-apps/util-linux[${MULTILIB_USEDEP}] )
|
||||
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
|
||||
xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
|
||||
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
|
||||
|
|
@ -112,10 +117,8 @@ src_prepare() {
|
|||
sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
|
||||
fi
|
||||
|
||||
eapply "${FILESDIR}"/${PN}-2.50.3-fix-gdatetime-tests.patch
|
||||
|
||||
# gdbus-codegen is a separate package
|
||||
eapply "${FILESDIR}"/${PN}-2.40.0-external-gdbus-codegen.patch
|
||||
eapply "${FILESDIR}"/${PN}-2.50.0-external-gdbus-codegen.patch
|
||||
|
||||
# Leave python shebang alone - handled by python_replicate_script
|
||||
# We could call python_setup and give configure a valid --with-python
|
||||
|
|
@ -142,6 +145,8 @@ multilib_src_configure() {
|
|||
fi
|
||||
export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
|
||||
export LIBFFI_LIBS="-lffi"
|
||||
export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass
|
||||
export PCRE_LIBS="-lpcre"
|
||||
fi
|
||||
|
||||
# These configure tests don't work when cross-compiling.
|
||||
|
|
@ -169,6 +174,7 @@ multilib_src_configure() {
|
|||
$(usex debug --enable-debug=yes ' ') \
|
||||
$(use_enable xattr) \
|
||||
$(use_enable fam) \
|
||||
$(use_enable kernel_linux libmount) \
|
||||
$(use_enable selinux) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable systemtap dtrace) \
|
||||
|
|
@ -192,6 +198,7 @@ multilib_src_test() {
|
|||
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
||||
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
|
||||
export LC_TIME=C # bug #411967
|
||||
unset GSETTINGS_BACKEND # bug #596380
|
||||
python_setup
|
||||
|
||||
# Related test is a bit nitpicking
|
||||
|
|
@ -253,7 +260,7 @@ pkg_preinst() {
|
|||
|
||||
multilib_pkg_preinst() {
|
||||
# Make giomodule.cache belong to glib alone
|
||||
local cache="usr/$(get_libdir)/gio/giomodule.cache"
|
||||
local cache="usr/$(get_libdir)/gio/modules/giomodule.cache"
|
||||
|
||||
if [[ -e ${EROOT}${cache} ]]; then
|
||||
cp "${EROOT}"${cache} "${ED}"/${cache} || die
|
||||
|
|
@ -262,7 +269,11 @@ pkg_preinst() {
|
|||
fi
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_preinst
|
||||
# Don't run the cache ownership when cross-compiling, as it would end up with an empty cache
|
||||
# file due to inability to create it and GIO might not look at any of the modules there
|
||||
if ! tc-is-cross-compiler ; then
|
||||
multilib_foreach_abi multilib_pkg_preinst
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
|
@ -275,7 +286,14 @@ pkg_postinst() {
|
|||
gnome2_giomodule_cache_update \
|
||||
|| die "Update GIO modules cache failed (for ${ABI})"
|
||||
}
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
if ! tc-is-cross-compiler ; then
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
else
|
||||
ewarn "Updating of GIO modules cache skipped due to cross-compilation."
|
||||
ewarn "You might want to run gio-querymodules manually on the target for"
|
||||
ewarn "your final image for performance reasons and re-run it when packages"
|
||||
ewarn "installing GIO modules get upgraded or added to the image."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
|
|
@ -283,7 +301,7 @@ pkg_postrm() {
|
|||
|
||||
if [[ -z ${REPLACED_BY_VERSION} ]]; then
|
||||
multilib_pkg_postrm() {
|
||||
rm -f "${EROOT}"usr/$(get_libdir)/gio/giomodule.cache
|
||||
rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache
|
||||
}
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
|
||||
Loading…
Reference in a new issue