summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-15 05:32:04 +0000
committerrillig <rillig>2007-01-15 05:32:04 +0000
commit685d2c67f5d4fa98806516ddc0e63889bfc94924 (patch)
tree6a51cf5a7334c832f7718d6f72e36fb48783e92d
parent404f250259473d647c55f3c28aa32da791534b6d (diff)
downloadpkgsrc-685d2c67f5d4fa98806516ddc0e63889bfc94924.tar.gz
Added a new variable PERL5_USE_PACKLIST that decides whether the Perl
packlist is used to generate the pkgsrc PLIST. This is the case for most of the Perl modules, so the default value is "yes". Currently, there is no change in functionality. After some further testing, the default will be that a Perl module provides a packlist and needs to say if it doesn't.
-rw-r--r--lang/perl5/packlist.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/perl5/packlist.mk b/lang/perl5/packlist.mk
index f4abeb272f2..6c6db6fc527 100644
--- a/lang/perl5/packlist.mk
+++ b/lang/perl5/packlist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: packlist.mk,v 1.10 2006/11/03 10:48:05 joerg Exp $
+# $NetBSD: packlist.mk,v 1.11 2007/01/15 05:32:04 rillig Exp $
#
# This Makefile fragment is intended to be included by packages that
# create packlist files. This file is automatically included by
@@ -7,6 +7,10 @@
#
# The following variables should be set prior to including this file:
#
+# PERL5_USE_PACKLIST
+# When set to "yes" (the default), automatically generates the
+# PLIST for the pkgsrc package from the Perl packlist.
+#
# PERL5_PACKLIST_DIR "install*arch" directory under which packlist
# files are installed; defaults to
# ${PERL5_INSTALLVENDORARCH}.
@@ -19,6 +23,11 @@ _PERL5_PACKLIST_MK= # defined
.include "../../mk/bsd.prefs.mk"
+.if !empty(PERL5_USE_PACKLIST:M[Yy][Ee][Ss])
+# XXX: still experimental, but many packages already work
+#PERL5_PACKLIST?= auto/${DISTNAME:C/-[0-9].*$//:C,-,/,g}/.packlist
+.endif
+
PERL5_PACKLIST_DESTDIR?= yes
.if defined(PERL5_PACKLIST)