pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/perl5 Enable installation to DESTDIR for all pack...
details: https://anonhg.NetBSD.org/pkgsrc/rev/65ff71fac421
branches: trunk
changeset: 529167:65ff71fac421
user: heinz <heinz%pkgsrc.org@localhost>
date: Sat May 26 12:46:20 2007 +0000
description:
Enable installation to DESTDIR for all packages based on Module::Build.
diffstat:
lang/perl5/module.mk | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 3a086f2a69ef -r 65ff71fac421 lang/perl5/module.mk
--- a/lang/perl5/module.mk Sat May 26 12:10:25 2007 +0000
+++ b/lang/perl5/module.mk Sat May 26 12:46:20 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.54 2007/04/21 09:41:00 rillig Exp $
+# $NetBSD: module.mk,v 1.55 2007/05/26 12:46:20 heinz Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -55,6 +55,11 @@
.if ${PERL5_MODULE_TYPE} == "Module::Build"
_PERL5_MODTYPE= modbuild
+. if ${_USE_DESTDIR} != "no"
+_PERL5_MODBUILD_DESTDIR_OPTION=--destdir ${DESTDIR:Q}
+. else
+_PERL5_MODBUILD_DESTDIR_OPTION=
+. endif
.elif ${PERL5_MODULE_TYPE} == "MakeMaker"
_PERL5_MODTYPE= makemaker
.endif
@@ -134,7 +139,7 @@
.PHONY: do-modbuild-install
do-modbuild-install:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install ${_PERL5_MODBUILD_DESTDIR_OPTION}
.if target(do-${_PERL5_MODTYPE}-build) && !defined(NO_BUILD)
do-build: do-${_PERL5_MODTYPE}-build
Home |
Main Index |
Thread Index |
Old Index