From 648bed166f1d5f840cebedaeb78910346e4b1e2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Mon, 26 Jun 2017 00:11:39 +0200 Subject: [PATCH] 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 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 -- 2.26.2