summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-02-26 00:04:48 +0000
committerjlam <jlam@pkgsrc.org>2005-02-26 00:04:48 +0000
commit73f10c0cf4788676c4adf027fb330751eadf61d9 (patch)
treeddb8441bcec6064c513b85cdd76c4c8c9de9fdfa /lang/perl5
parent171aa5cb93427a64bbd61cc9587356fb4ea158c3 (diff)
downloadpkgsrc-73f10c0cf4788676c4adf027fb330751eadf61d9.tar.gz
Enforce the values that PERL5_MODULE_TYPE can take.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index aa3a9cbee9d..6902d91637c 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.41 2005/02/25 15:57:12 wiz Exp $
+# $NetBSD: module.mk,v 1.42 2005/02/26 00:04:48 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -40,6 +40,11 @@ BUILDING_PERL5?= no
BUILDING_MODULE_BUILD?= no
PERL5_MODULE_TYPE?= MakeMaker
+.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
+ (${PERL5_MODULE_TYPE} != "Module::Build")
+PKG_FAIL_REASON+= "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
+.endif
+
.if empty(BUILDING_PERL5:M[yY][eE][sS])
. if !defined(NO_BUILDLINK)
. if empty(USE_BUILDLINK3:M[nN][oO])