pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Added a new variable PERL5_USE_PACKLIST tha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd7f89708ab4
branches:  trunk
changeset: 523905:fd7f89708ab4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Jan 15 05:32:04 2007 +0000

description:
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.

diffstat:

 lang/perl5/packlist.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 04f82d3d567b -r fd7f89708ab4 lang/perl5/packlist.mk
--- a/lang/perl5/packlist.mk    Mon Jan 15 03:40:15 2007 +0000
+++ b/lang/perl5/packlist.mk    Mon Jan 15 05:32:04 2007 +0000
@@ -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 @@
 
 .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)



Home | Main Index | Thread Index | Old Index