From: Andreas K. Hüttel Date: Sun, 25 Jun 2017 22:11:39 +0000 (+0200) Subject: dev-perl/Gtk2-Notify: Fix build on Perl 5.26, bug 616950 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=648bed166f1d5f840cebedaeb78910346e4b1e2a;p=gentoo.git dev-perl/Gtk2-Notify: Fix build on Perl 5.26, bug 616950 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild b/dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild index bf2c56079921..3a7cb84cfaee 100644 --- a/dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild +++ b/dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild @@ -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