aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2002-06-08 22:30:51 +0800
committertobez <tobez@FreeBSD.org>2002-06-08 22:30:51 +0800
commita81d431346c57e415fad15422e5c93cc78b34067 (patch)
tree4d6b8f0604f087a34e7beafba9de1c8f2be2a763 /devel
parente6bfbff26d818e614d8e947527daff79aa037c21 (diff)
downloadfreebsd-ports-gnome-a81d431346c57e415fad15422e5c93cc78b34067.tar.gz
freebsd-ports-gnome-a81d431346c57e415fad15422e5c93cc78b34067.tar.zst
freebsd-ports-gnome-a81d431346c57e415fad15422e5c93cc78b34067.zip
Add a patch to get around the interactive intelligence built into the
Makefile.PL. We know better in this instance. PORTREVISION is not bumped since there so little time passed since the last commit.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Getopt-Long/files/patch-Makefile.PL39
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/p5-Getopt-Long/files/patch-Makefile.PL b/devel/p5-Getopt-Long/files/patch-Makefile.PL
new file mode 100644
index 000000000000..b0d85776e608
--- /dev/null
+++ b/devel/p5-Getopt-Long/files/patch-Makefile.PL
@@ -0,0 +1,39 @@
+$Id$
+
+--- Makefile.PL.orig Fri May 24 17:51:36 2002
++++ Makefile.PL Fri May 24 17:52:52 2002
+@@ -5,6 +5,7 @@
+
+ require "./lib/Getopt/Long.pm";
+ my $version = $Getopt::Long::VERSION_STRING || $Getopt::Long::VERSION;
++my $leave_alone = $Config{installprivlib} =~ m|/libdata/perl/|;
+
+ sub MY::postamble {
+ my $ret = "";
+@@ -18,7 +19,7 @@
+ I can add instructions to the Makefile to remove it when you
+ install this version.
+ EOD
+- my $ans = prompt ("Shall I add the remove instructions?");
++ my $ans = $leave_alone ? "no" : "yes";
+ if ( $ans =~ /^y/i ) {
+ $ret .= <<EOD;
+ install ::
+@@ -37,7 +38,7 @@
+ I can add instructions to the Makefile to remove them when you
+ install this version.
+ EOD
+- my $ans = prompt ("Shall I add the remove instructions?");
++ my $ans = $leave_alone ? "no" : "yes";
+ if ( $ans =~ /^y/i ) {
+ $ret .= <<EOD;
+ install ::
+@@ -68,7 +69,7 @@
+ ABSTRACT => 'Module to handle parsing command line options',
+ ),
+
+- INSTALLDIRS => 'perl',
++ INSTALLDIRS => ($leave_alone ? 'site' : 'perl'),
+ PM => { "lib/newgetopt.pl" => '$(INST_LIB)/newgetopt.pl',
+ "lib/Getopt/Long.pm" => '$(INST_LIB)/Getopt/Long.pm',
+ # "perlcmdline.pod" => '$(INST_LIB)/pod/perlcmdline.pod',