diff options
author | wiz <wiz@pkgsrc.org> | 2001-02-20 16:23:55 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-02-20 16:23:55 +0000 |
commit | 4f36320987d33fa7b94f7367300fe893c00460df (patch) | |
tree | 2ebe210eb83a491084a20000f03921eea5b49006 /pkgtools | |
parent | 15ec7fb4a3f59231be05d01f0a9828b7261f92ec (diff) | |
download | pkgsrc-4f36320987d33fa7b94f7367300fe893c00460df.tar.gz |
Import of perl-mk-1.0:
Another stab at speeding up recursive tree walks: Move perl
variables that depend on the installed version to a separate file,
so that some perl invocations only get done once per installation of
perl, not once per 'make' in pkgsrc.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/perl-mk/Makefile | 38 | ||||
-rw-r--r-- | pkgtools/perl-mk/pkg/DESCR | 1 | ||||
-rw-r--r-- | pkgtools/perl-mk/pkg/PLIST | 2 |
3 files changed, 41 insertions, 0 deletions
diff --git a/pkgtools/perl-mk/Makefile b/pkgtools/perl-mk/Makefile new file mode 100644 index 00000000000..fc827dd2adf --- /dev/null +++ b/pkgtools/perl-mk/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/20 16:23:55 wiz Exp $ +# + +DISTNAME= perl-mk-1.0 +CATEGORIES= pkgtools +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= wiz@netbsd.org +COMMENT= Note installed perl version for bsd.pkg.mk speedup + +# for backwards compatibility, and since we want to be included by the +# perl meta-package, we can't just use USE_PERL +DEPENDS+= perl-{5.0*,5.6.0nb[12],base-5.[6-9]*}:../../lang/perl5-base + +EXTRACT_ONLY= # empty +NO_CHECKSUM= # defined +NO_CONFIGURE= # defined +NO_PATCH= # defined +NO_BUILD= # defined + +MKPATH= ${PREFIX}/share/mk +PLIST_SUBST+= MKPATH="share/mk" + +do-install: + ${ECHO} PERL5_SITELIB=${PERL5_SITELIB} > ${MKPATH}/bsd.perl.mk + ${ECHO} PERL5_SITEARCH=${PERL5_SITEARCH} >> ${MKPATH}/bsd.perl.mk + ${ECHO} PERL5_ARCHLIB=${PERL5_ARCHLIB} >> ${MKPATH}/bsd.perl.mk + +.include "../../mk/bsd.pkg.mk" + +# needs PERL5 defined from bsd.pkg.mk +PERL5_SITELIB!= eval `${PERL5} -V:installsitelib 2>/dev/null`; \ + ${ECHO} $${installsitelib} +PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; \ + ${ECHO} $${installsitearch} +PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib 2>/dev/null`; \ + ${ECHO} $${installarchlib} diff --git a/pkgtools/perl-mk/pkg/DESCR b/pkgtools/perl-mk/pkg/DESCR new file mode 100644 index 00000000000..bea5a6ef418 --- /dev/null +++ b/pkgtools/perl-mk/pkg/DESCR @@ -0,0 +1 @@ +Installs a support file to speed up bsd.pkg.mk operation on perl packages. diff --git a/pkgtools/perl-mk/pkg/PLIST b/pkgtools/perl-mk/pkg/PLIST new file mode 100644 index 00000000000..f34ea9e807f --- /dev/null +++ b/pkgtools/perl-mk/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/20 16:23:55 wiz Exp $ +${MKPATH}/bsd.perl.mk |