summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorsno <sno>2009-06-11 10:35:07 +0000
committersno <sno>2009-06-11 10:35:07 +0000
commit89342e01f0f27ba72d1514c7974be8000c100403 (patch)
treef5f0629a8896b672e074c1272d70403d4ab5655f /lang
parent758d4748d975038f6e8eca22f8acc54d00b255c1 (diff)
downloadpkgsrc-89342e01f0f27ba72d1514c7974be8000c100403.tar.gz
Adding patch to allow nearly all CPAN modules can use the license of
installed perl
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile6
-rw-r--r--lang/perl5/license.mk12
2 files changed, 16 insertions, 2 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 4f4970e2cfc..48b52450140 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.152 2009/06/11 10:32:29 sno Exp $
+# $NetBSD: Makefile,v 1.153 2009/06/11 10:35:07 sno Exp $
+
+.include "license.mk"
DISTNAME= perl-5.10.0
CATEGORIES= lang devel perl5
@@ -9,7 +11,7 @@ DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= jlam@pkgsrc.org
HOMEPAGE= http://www.perl.org/
COMMENT= Practical Extraction and Report Language
-LICENSE= gnu-gpl-v2
+LICENSE= ${PERL5_LICENSE}
PKG_DESTDIR_SUPPORT= user-destdir
diff --git a/lang/perl5/license.mk b/lang/perl5/license.mk
new file mode 100644
index 00000000000..00f9b30ee1f
--- /dev/null
+++ b/lang/perl5/license.mk
@@ -0,0 +1,12 @@
+# $NetBSD: license.mk,v 1.1 2009/06/11 10:35:07 sno Exp $
+#
+# This Makefile fragment is intended to be included by packages that build
+# and install perl5 modules and by the perl5 package.
+#
+# The following variables may be set prior to including this file:
+#
+# PERL5_LICENSE If set, it'll not overwritten with gnu-gpl-v2.
+# Allowed values: gnu-gpl-v2 and artistic until
+# pkgsrc can handle dual licenses correctly.
+#
+PERL5_LICENSE?= gnu-gpl-v2 # OR artistic