dev-perl/Gtk2-Notify: Fix build on Perl 5.26, bug 616950
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 25 Jun 2017 22:11:39 +0000 (00:11 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 25 Jun 2017 22:11:39 +0000 (00:11 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild

index bf2c560799216b060c52516b91c7a6f56491644f..3a7cb84cfaeedb1a5ec5d2d237c0cf44b160c08f 100644 (file)
@@ -30,6 +30,12 @@ PATCHES=( "${FILESDIR}"/${PN}-0.05-libnotify.patch )
 PERL_RM_FILES=( t/notification.t )
 # the test dies if no notification daemon is present...
 
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install;/use lib q[.]; use inc::Module::Install;/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}
+
 src_test() {
        # bug 416729
        virtx perl-module_src_test