summaryrefslogtreecommitdiff
path: root/devel/p5-ExtUtils-MakeMaker
diff options
context:
space:
mode:
authorjlam <jlam>2006-04-10 18:24:34 +0000
committerjlam <jlam>2006-04-10 18:24:34 +0000
commit9449d5f13e7d5b0e204c7da3b66da77f21583c3b (patch)
tree79f90635571948c2db80b52f044d5e626e3bd0df /devel/p5-ExtUtils-MakeMaker
parentfaab97f6292aded63047131441a705493a0d7768 (diff)
downloadpkgsrc-9449d5f13e7d5b0e204c7da3b66da77f21583c3b.tar.gz
Honor INSTALLSITESCRIPT and INSTALLVENDORSCRIPT for site- and
vendor-specific locations for scripts installed by Perl modules. By default, site scripts go into lib/perl5/site_perl/bin and vendor scripts go into lib/perl5/vendor_perl/bin. This matches the behavior of the ExtUtils::MakeMaker that is in pkgsrc perl (which has been similarly patched). This package now doesn't overwrite the "instmodsh" script installed by the perl package. Bump the PKGREVISION to 1.
Diffstat (limited to 'devel/p5-ExtUtils-MakeMaker')
-rw-r--r--devel/p5-ExtUtils-MakeMaker/Makefile3
-rw-r--r--devel/p5-ExtUtils-MakeMaker/distinfo5
-rw-r--r--devel/p5-ExtUtils-MakeMaker/patches/patch-aa50
-rw-r--r--devel/p5-ExtUtils-MakeMaker/patches/patch-ab57
-rw-r--r--devel/p5-ExtUtils-MakeMaker/patches/patch-ac46
5 files changed, 159 insertions, 2 deletions
diff --git a/devel/p5-ExtUtils-MakeMaker/Makefile b/devel/p5-ExtUtils-MakeMaker/Makefile
index 856c5f44629..c04e5ade629 100644
--- a/devel/p5-ExtUtils-MakeMaker/Makefile
+++ b/devel/p5-ExtUtils-MakeMaker/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2006/03/04 21:29:21 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2006/04/10 18:24:34 jlam Exp $
#
DISTNAME= ExtUtils-MakeMaker-6.30
PKGNAME= p5-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/M/MS/MSCHWERN/}
diff --git a/devel/p5-ExtUtils-MakeMaker/distinfo b/devel/p5-ExtUtils-MakeMaker/distinfo
index 9874009339f..4d2c62c78ee 100644
--- a/devel/p5-ExtUtils-MakeMaker/distinfo
+++ b/devel/p5-ExtUtils-MakeMaker/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/02/15 23:17:46 abs Exp $
+$NetBSD: distinfo,v 1.2 2006/04/10 18:24:34 jlam Exp $
SHA1 (ExtUtils-MakeMaker-6.30.tar.gz) = 6845b52970a35ef7cfddce8b2a9fc23b0a2b3812
RMD160 (ExtUtils-MakeMaker-6.30.tar.gz) = 3cf6d412e1fb10bd7a432216a860df4e5d1d862d
Size (ExtUtils-MakeMaker-6.30.tar.gz) = 219796 bytes
+SHA1 (patch-aa) = 0fc10ce8e19cb0e8e717cbd23d756c42c77ed1b7
+SHA1 (patch-ab) = 44ece83764cdbb06a8d3e1f4725ebf2a51050f67
+SHA1 (patch-ac) = a53b5fb16fb196b8d2b0bcbcc7bb177ae68b0f72
diff --git a/devel/p5-ExtUtils-MakeMaker/patches/patch-aa b/devel/p5-ExtUtils-MakeMaker/patches/patch-aa
new file mode 100644
index 00000000000..fafc18f8481
--- /dev/null
+++ b/devel/p5-ExtUtils-MakeMaker/patches/patch-aa
@@ -0,0 +1,50 @@
+$NetBSD: patch-aa,v 1.1 2006/04/10 18:24:34 jlam Exp $
+
+--- lib/ExtUtils/MM_Any.pm.orig 2005-04-27 16:09:47.000000000 -0400
++++ lib/ExtUtils/MM_Any.pm
+@@ -1052,6 +1052,15 @@ sub init_INSTALL_from_PREFIX {
+ : '';
+ }
+
++ $self->{INSTALLSITESCRIPT} ||= '$(INSTALLSCRIPT)'
++ unless $Config{installsitescript};
++
++ unless( $Config{installvendorscript} ) {
++ $self->{INSTALLVENDORSCRIPT} ||= $Config{usevendorprefix}
++ ? $Config{installscript}
++ : '';
++ }
++
+
+ my $iprefix = $Config{installprefixexp} || $Config{installprefix} ||
+ $Config{prefixexp} || $Config{prefix} || '';
+@@ -1111,6 +1120,12 @@ sub init_INSTALL_from_PREFIX {
+ script => { s => $iprefix,
+ t => 'perl',
+ d => 'bin' },
++ vendorscript => { s => $vprefix,
++ t => 'vendor',
++ d => 'bin' },
++ sitescript => { s => $sprefix,
++ t => 'site',
++ d => 'bin' },
+ );
+
+ my %man_layouts =
+@@ -1253,7 +1268,6 @@ sub init_INSTALL_from_INSTALLBASE {
+ # Adjust for variable quirks.
+ $install{INSTALLARCHLIB} ||= delete $install{INSTALLARCH};
+ $install{INSTALLPRIVLIB} ||= delete $install{INSTALLLIB};
+- delete @install{qw(INSTALLVENDORSCRIPT INSTALLSITESCRIPT)};
+
+ foreach my $key (keys %install) {
+ $self->{$key} ||= $install{$key};
+@@ -1627,7 +1641,7 @@ sub installvars {
+ return qw(PRIVLIB SITELIB VENDORLIB
+ ARCHLIB SITEARCH VENDORARCH
+ BIN SITEBIN VENDORBIN
+- SCRIPT
++ SCRIPT SITESCRIPT VENDORSCRIPT
+ MAN1DIR SITEMAN1DIR VENDORMAN1DIR
+ MAN3DIR SITEMAN3DIR VENDORMAN3DIR
+ );
diff --git a/devel/p5-ExtUtils-MakeMaker/patches/patch-ab b/devel/p5-ExtUtils-MakeMaker/patches/patch-ab
new file mode 100644
index 00000000000..c845db803c9
--- /dev/null
+++ b/devel/p5-ExtUtils-MakeMaker/patches/patch-ab
@@ -0,0 +1,57 @@
+$NetBSD: patch-ab,v 1.1 2006/04/10 18:24:34 jlam Exp $
+
+--- lib/ExtUtils/MM_Unix.pm.orig 2005-05-20 19:05:33.000000000 -0400
++++ lib/ExtUtils/MM_Unix.pm
+@@ -12,8 +12,8 @@ use DirHandle;
+
+ use vars qw($VERSION @ISA
+ $Is_OS2 $Is_VMS $Is_Win32 $Is_Dos
+- $Is_OSF $Is_IRIX $Is_NetBSD $Is_BSD
+- $Is_SunOS4 $Is_Solaris $Is_SunOS $Is_Interix
++ $Is_OSF $Is_IRIX $Is_BSD
++ $Is_SunOS4 $Is_Solaris $Is_SunOS
+ $Verbose %pm
+ %Config_Override
+ );
+@@ -32,13 +32,11 @@ BEGIN {
+ $Is_VMS = $^O eq 'VMS';
+ $Is_OSF = $^O eq 'dec_osf';
+ $Is_IRIX = $^O eq 'irix';
+- $Is_NetBSD = $^O eq 'netbsd';
+- $Is_Interix = $^O eq 'interix';
+ $Is_SunOS4 = $^O eq 'sunos';
+ $Is_Solaris = $^O eq 'solaris';
+ $Is_SunOS = $Is_SunOS4 || $Is_Solaris;
+ $Is_BSD = $^O =~ /^(?:free|net|open)bsd$/ or
+- $^O eq 'bsdos' or $^O eq 'interix';
++ $^O eq 'bsdos' or $^O eq 'dragonfly' or $^O eq 'interix';
+ }
+
+ BEGIN {
+@@ -928,7 +926,7 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $
+
+ my $libs = '$(LDLOADLIBS)';
+
+- if (($Is_NetBSD || $Is_Interix) && $Config{'useshrplib'}) {
++ if ($Is_BSD && $Config{'useshrplib'}) {
+ # Use nothing on static perl platforms, and to the flags needed
+ # to link against the shared libperl library on shared perl
+ # platforms. We peek at lddlflags to see if we need -Wl,-R
+@@ -2074,7 +2072,7 @@ pure_site_install ::
+ $(INST_LIB) $(DESTINSTALLSITELIB) \
+ $(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \
+ $(INST_BIN) $(DESTINSTALLSITEBIN) \
+- $(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
++ $(INST_SCRIPT) $(DESTINSTALLSITESCRIPT) \
+ $(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \
+ $(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR)
+ $(NOECHO) $(WARN_IF_OLD_PACKLIST) \
+@@ -2087,7 +2085,7 @@ pure_vendor_install ::
+ $(INST_LIB) $(DESTINSTALLVENDORLIB) \
+ $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
+ $(INST_BIN) $(DESTINSTALLVENDORBIN) \
+- $(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
++ $(INST_SCRIPT) $(DESTINSTALLVENDORSCRIPT) \
+ $(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \
+ $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
+
diff --git a/devel/p5-ExtUtils-MakeMaker/patches/patch-ac b/devel/p5-ExtUtils-MakeMaker/patches/patch-ac
new file mode 100644
index 00000000000..90e707c5f0a
--- /dev/null
+++ b/devel/p5-ExtUtils-MakeMaker/patches/patch-ac
@@ -0,0 +1,46 @@
+$NetBSD: patch-ac,v 1.1 2006/04/10 18:24:34 jlam Exp $
+
+--- lib/ExtUtils/MakeMaker.pm.orig 2005-05-20 19:08:36.000000000 -0400
++++ lib/ExtUtils/MakeMaker.pm
+@@ -222,7 +222,7 @@ sub full_setup {
+ INSTALLMAN1DIR INSTALLMAN3DIR
+ INSTALLSITEMAN1DIR INSTALLSITEMAN3DIR
+ INSTALLVENDORMAN1DIR INSTALLVENDORMAN3DIR
+- INSTALLSCRIPT
++ INSTALLSCRIPT INSTALLSITESCRIPT INSTALLVENDORSCRIPT
+ PERL_LIB PERL_ARCHLIB
+ SITELIBEXP SITEARCHEXP
+
+@@ -1545,7 +1545,7 @@ Defaults to $Config{installprivlib}.
+ =item INSTALLSCRIPT
+
+ Used by 'make install' which copies files from INST_SCRIPT to this
+-directory.
++directory if INSTALLDIRS is set to perl.
+
+ =item INSTALLSITEARCH
+
+@@ -1572,6 +1572,11 @@ $(SITEPREFIX)/man/man$(MAN*EXT).
+
+ If set to 'none', no man pages will be installed.
+
++=item INSTALLSITESCRIPT
++
++Used by 'make install' which copies files from INST_SCRIPT to this
++directory if INSTALLDIRS is set to site (default).
++
+ =item INSTALLVENDORARCH
+
+ Used by 'make install', which copies files from INST_ARCHLIB to this
+@@ -1596,6 +1601,11 @@ INSTALLDIRS=vendor. Defaults to $(VENDO
+
+ If set to 'none', no man pages will be installed.
+
++=item INSTALLVENDORSCRIPT
++
++Used by 'make install' which copies files from INST_SCRIPT to this
++directory if INSTALLDIRS is set to vendor.
++
+ =item INST_ARCHLIB
+
+ Same as INST_LIB for architecture dependent files.