commit:     648bed166f1d5f840cebedaeb78910346e4b1e2a
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 25 22:11:39 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Jun 25 22:11:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=648bed16

dev-perl/Gtk2-Notify: Fix build on Perl 5.26, bug 616950

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-perl/Gtk2-Notify/Gtk2-Notify-0.50.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

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 bf2c5607992..3a7cb84cfae 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

Reply via email to