pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/perl5 Adding support to install via bundled Modul...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e5cc3dd52b5e
branches: trunk
changeset: 569493:e5cc3dd52b5e
user: sno <sno%pkgsrc.org@localhost>
date: Sat Jan 16 15:02:14 2010 +0000
description:
Adding support to install via bundled Module::Install by allowing
PERL5_MODULE_TYPE set to Module::Install::Bundled.
diffstat:
lang/perl5/module.mk | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r f5cc6e45c679 -r e5cc3dd52b5e lang/perl5/module.mk
--- a/lang/perl5/module.mk Sat Jan 16 15:00:09 2010 +0000
+++ b/lang/perl5/module.mk Sat Jan 16 15:02:14 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.60 2009/06/11 10:32:29 sno Exp $
+# $NetBSD: module.mk,v 1.61 2010/01/16 15:02:14 sno Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -41,7 +41,8 @@
.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
(${PERL5_MODULE_TYPE} != "Module::Build") && \
- (${PERL5_MODULE_TYPE} != "Module::Install")
+ (${PERL5_MODULE_TYPE} != "Module::Install") && \
+ (${PERL5_MODULE_TYPE} != "Module::Install::Bundled")
PKG_FAIL_REASON+= "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
.endif
@@ -59,6 +60,8 @@
. endif
.elif ${PERL5_MODULE_TYPE} == "Module::Install"
_PERL5_MODTYPE= modinst
+.elif ${PERL5_MODULE_TYPE} == "Module::Install::Bundled"
+_PERL5_MODTYPE= modinst
.elif ${PERL5_MODULE_TYPE} == "MakeMaker"
_PERL5_MODTYPE= makemaker
.endif
@@ -129,6 +132,7 @@
.PHONY: do-modinst-configure
do-modinst-configure:
+.if ${PERL5_MODULE_TYPE} == "Module::Install"
${RUN} \
for dir in ${PERL5_CONFIGURE_DIRS}; do \
cd ${WRKSRC}; \
@@ -141,6 +145,17 @@
${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS}; \
fi; \
done
+.else
+ ${RUN} \
+ for dir in ${PERL5_CONFIGURE_DIRS}; do \
+ cd ${WRKSRC}; \
+ if ${TEST} -f "$$dir"/Makefile.PL; then \
+ cd "$$dir"; \
+ ${SETENV} ${MAKE_ENV} \
+ ${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS}; \
+ fi; \
+ done
+.endif
.PHONY: perl5-configure
perl5-configure: do-${_PERL5_MODTYPE}-configure
Home |
Main Index |
Thread Index |
Old Index