pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 Enforce the values that PERL5_MODULE_TYPE c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30049f79fdf6
branches:  trunk
changeset: 489743:30049f79fdf6
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Feb 26 00:04:48 2005 +0000

description:
Enforce the values that PERL5_MODULE_TYPE can take.

diffstat:

 lang/perl5/module.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 18e936388b96 -r 30049f79fdf6 lang/perl5/module.mk
--- a/lang/perl5/module.mk      Fri Feb 25 23:47:53 2005 +0000
+++ b/lang/perl5/module.mk      Sat Feb 26 00:04:48 2005 +0000
@@ -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_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])



Home | Main Index | Thread Index | Old Index