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 for Module::Build::Tiny and ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a560366cc6d7
branches: trunk
changeset: 620879:a560366cc6d7
user: sno <sno%pkgsrc.org@localhost>
date: Wed Jul 03 07:16:39 2013 +0000
description:
Adding support for Module::Build::Tiny and fix --installdirs flag for
Module::Build and Module::Build::Tiny (Module::Build expects flags
instead of VAR=VALUE keychains).
diffstat:
lang/perl5/module.mk | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r feadca0348f0 -r a560366cc6d7 lang/perl5/module.mk
--- a/lang/perl5/module.mk Wed Jul 03 07:13:55 2013 +0000
+++ b/lang/perl5/module.mk Wed Jul 03 07:16:39 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.67 2012/10/10 09:27:12 sno Exp $
+# $NetBSD: module.mk,v 1.68 2013/07/03 07:16:39 sno Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -41,6 +41,7 @@
.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
(${PERL5_MODULE_TYPE} != "Module::Build") && \
+ (${PERL5_MODULE_TYPE} != "Module::Build::Tiny") && \
(${PERL5_MODULE_TYPE} != "Module::Install") && \
(${PERL5_MODULE_TYPE} != "Module::Install::Bundled")
PKG_FAIL_REASON+= "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
@@ -58,6 +59,9 @@
. else
PERL5_MODBUILD_DESTDIR_OPTION=
. endif
+.elif ${PERL5_MODULE_TYPE} == "Module::Build::Tiny"
+PERL5_MODTYPE= modbuild
+PERL5_MODBUILD_DESTDIR_OPTION=--destdir ${DESTDIR:Q}
.elif ${PERL5_MODULE_TYPE} == "Module::Install"
PERL5_MODTYPE= modinst
.elif ${PERL5_MODULE_TYPE} == "Module::Install::Bundled"
@@ -81,6 +85,11 @@
BUILD_DEPENDS+= {perl>=5.12.2,p5-Module-Build>=0.36030}:../../devel/p5-Module-Build
.endif
+.if empty(PKGPATH:Mdevel/p5-Module-Build-Tiny) && \
+ (${PERL5_MODULE_TYPE} == "Module::Build::Tiny")
+BUILD_DEPENDS+= p5-Module-Build-Tiny>=0.23:../../devel/p5-Module-Build-Tiny
+.endif
+
.if empty(PKGPATH:Mdevel/p5-Module-Install) && \
(${PERL5_MODULE_TYPE} == "Module::Install")
BUILD_DEPENDS+= p5-Module-Install>=0.91:../../devel/p5-Module-Install
@@ -102,7 +111,7 @@
# directories.
#
MAKE_PARAMS.makemaker+= INSTALLDIRS=vendor
-MAKE_PARAMS.modbuild+= installdirs=vendor
+MAKE_PARAMS.modbuild+= --installdirs=vendor
MAKE_PARAMS.modinst+= installdirs=vendor
MAKE_PARAMS+= ${MAKE_PARAMS.${PERL5_MODTYPE}}
Home |
Main Index |
Thread Index |
Old Index