sys-auth/polkit: fix workaround around around, bug #570586
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Jan 2016 18:52:25 +0000 (19:52 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Jan 2016 18:53:53 +0000 (19:53 +0100)
Package-Manager: portage-2.2.26

sys-auth/polkit/polkit-0.113-r1.ebuild

index b3bbd004b9772f9b00cec9b9ea88dbcc71d4a6fb..64d67b23e7d938ded81a322e279bc834baa7e91e 100644 (file)
@@ -66,8 +66,11 @@ pkg_setup() {
 src_prepare() {
        sed -i -e 's|unix-group:wheel|unix-user:0|' src/polkitbackend/*-default.rules || die #401513
 
-       # Drop upstream hack around standard gtk-doc behavior, bug #552170
-       sed -i -e 's/@ENABLE_GTK_DOC_TRUE@//' docs/polkit/Makefile.in || die
+       # Workaround upstream hack around standard gtk-doc behavior, bug #552170
+       sed -i -e 's/@ENABLE_GTK_DOC_TRUE@\(TARGET_DIR\)/\1/' \
+               -e '/install-data-local:/,/uninstall-local:/ s/@ENABLE_GTK_DOC_TRUE@//' \
+               -e 's/@ENABLE_GTK_DOC_FALSE@install-data-local://' \
+               docs/polkit/Makefile.in || die
 }
 
 src_configure() {