diff options
author | jlam <jlam> | 2005-02-26 00:04:48 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-02-26 00:04:48 +0000 |
commit | b6fe12fdfb124283637e850b312ed55060e76385 (patch) | |
tree | ddb8441bcec6064c513b85cdd76c4c8c9de9fdfa /lang | |
parent | ebd14a17c223a404f6610027178d50c87576289f (diff) | |
download | pkgsrc-b6fe12fdfb124283637e850b312ed55060e76385.tar.gz |
Enforce the values that PERL5_MODULE_TYPE can take.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/module.mk | 7 |
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]) |