summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2018-06-10 13:15:16 +0300
committerMart Raudsepp <leio@gentoo.org>2018-06-10 13:48:30 +0300
commit5d0ed3214adad91152c80dc62b05d81f33d04157 (patch)
tree75b8409576eb15a5b26d1b0e19314851215bf217 /dev-libs/glib
parentmedia-sound/vorbis-tools: Fix examples install dir (diff)
downloadgentoo-5d0ed3214adad91152c80dc62b05d81f33d04157.tar.gz
gentoo-5d0ed3214adad91152c80dc62b05d81f33d04157.tar.bz2
gentoo-5d0ed3214adad91152c80dc62b05d81f33d04157.zip
dev-libs/glib-2.54: add back gtester-report with USE=utils
Apparently it was fixed up for python3 upstream in 2.54.3, so add it back, as no special handling needed regarding python versions. However keep it behind USE=utils as before, deleting it when not enabled, and fixing up shebang when kept. Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-libs/glib')
-rw-r--r--dev-libs/glib/glib-2.54.3-r6.ebuild (renamed from dev-libs/glib/glib-2.54.3-r5.ebuild)14
1 files changed, 10 insertions, 4 deletions
diff --git a/dev-libs/glib/glib-2.54.3-r5.ebuild b/dev-libs/glib/glib-2.54.3-r6.ebuild
index 6f4824c6ad82..424d46671f5a 100644
--- a/dev-libs/glib/glib-2.54.3-r5.ebuild
+++ b/dev-libs/glib/glib-2.54.3-r6.ebuild
@@ -122,6 +122,9 @@ src_prepare() {
# gdbus-codegen is a separate package
eapply "${FILESDIR}"/${PN}-2.54.3-external-gdbus-codegen.patch
+ # Leave gtester-report python shebang alone - handled by python_fix_shebang
+ sed -e '/${PYTHON}/d' -i glib/Makefile.{am,in} || die
+
# Also needed to prevent cross-compile failures, see bug #267603
eautoreconf
@@ -220,10 +223,13 @@ multilib_src_install() {
multilib_src_install_all() {
einstalldocs
- # gtester-report works only with python2 and is heavily deprecated - https://bugzilla.gnome.org/show_bug.cgi?id=668035#c4
- # Remove it instead of bothering with making it work with python3 in PYTHON_COMPAT
- rm "${ED}usr/bin/gtester-report"
- rm "${ED}usr/share/man/man1/gtester-report.1"
+ if use utils ; then
+ python_fix_shebang "${ED}"/usr/bin/gtester-report
+ else
+ # gtester-report is heavily deprecated, so do not install by default - https://bugzilla.gnome.org/show_bug.cgi?id=668035#c4
+ rm "${ED}usr/bin/gtester-report"
+ rm "${ED}usr/share/man/man1/gtester-report.1"
+ fi
# Do not install charset.alias even if generated, leave it to libiconv
rm -f "${ED}/usr/lib/charset.alias"