pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 PERL5_CONFIGURE_DIRS may now contain direct...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb6308e4d585
branches:  trunk
changeset: 519531:bb6308e4d585
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Oct 04 22:24:49 2006 +0000

description:
PERL5_CONFIGURE_DIRS may now contain directory names relative to
${WRKSRC}. This saves some keystrokes when writing Makefiles.

diffstat:

 lang/perl5/module.mk |  22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 0734b4ddd16b -r bb6308e4d585 lang/perl5/module.mk
--- a/lang/perl5/module.mk      Wed Oct 04 22:23:04 2006 +0000
+++ b/lang/perl5/module.mk      Wed Oct 04 22:24:49 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.52 2006/10/04 21:31:34 rillig Exp $
+# $NetBSD: module.mk,v 1.53 2006/10/04 22:24:49 rillig Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install perl5 modules.
@@ -94,21 +94,25 @@
 
 .PHONY: do-makemaker-configure
 do-makemaker-configure:
-       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       ${_PKG_SILENT}${_PKG_DEBUG} set -e;                             \
        for dir in ${PERL5_CONFIGURE_DIRS}; do                          \
-               if ${TEST} -f $$dir/Makefile.PL; then                   \
-                       ( cd $$dir && ${SETENV} ${MAKE_ENV}             \
-                         ${PERL5} Makefile.PL ${MAKE_PARAMS} );        \
+               cd ${WRKSRC};                                           \
+               if ${TEST} -f "$$dir"/Makefile.PL; then                 \
+                       cd "$$dir";                                     \
+                       ${SETENV} ${MAKE_ENV}                           \
+                               ${PERL5} Makefile.PL ${MAKE_PARAMS};    \
                fi;                                                     \
        done
 
 .PHONY: do-modbuild-configure
 do-modbuild-configure:
-       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       ${_PKG_SILENT}${_PKG_DEBUG} set -e;                             \
        for dir in ${PERL5_CONFIGURE_DIRS}; do                          \
-               if ${TEST} -f $$dir/Build.PL; then                      \
-                       ( cd $$dir && ${SETENV} ${MAKE_ENV}             \
-                         ${PERL5} Build.PL ${MAKE_PARAMS} );           \
+               cd ${WRKSRC};                                           \
+               if ${TEST} -f "$$dir"/Build.PL; then                    \
+                       cd "$$dir";                                     \
+                       ${SETENV} ${MAKE_ENV}                           \
+                               ${PERL5} Build.PL ${MAKE_PARAMS};       \
                fi;                                                     \
        done
 



Home | Main Index | Thread Index | Old Index