pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 perl5: avoid hardcoding path to pwd



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40ce0e6851c6
branches:  trunk
changeset: 451307:40ce0e6851c6
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Apr 25 16:56:44 2021 +0000

description:
perl5: avoid hardcoding path to pwd

diffstat:

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

diffs (21 lines):

diff -r 3e8f31f69b71 -r 40ce0e6851c6 lang/perl5/Makefile
--- a/lang/perl5/Makefile       Sun Apr 25 16:17:17 2021 +0000
+++ b/lang/perl5/Makefile       Sun Apr 25 16:56:44 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.268 2021/01/25 09:33:19 wiz Exp $
+# $NetBSD: Makefile,v 1.269 2021/04/25 16:56:44 nia Exp $
 
 .include "license.mk"
 .include "Makefile.common"
@@ -90,6 +90,11 @@
 SUBST_FILES.toolsbin=  Configure
 SUBST_VARS.toolsbin=   TOOLS_RM
 
+SUBST_CLASSES+=                pwd
+SUBST_STAGE.pwd=       pre-configure
+SUBST_FILES.pwd=       dist/PathTools/Cwd.pm
+SUBST_SED.pwd+=                -e "s,/bin/pwd,${TOOLS_PLATFORM.pwd},g"
+
 .if ${OPSYS} == "Darwin" || ${OPSYS} == "Cygwin"
 #
 # The Perl build attempts to work around case-insensitivity problems on



Home | Main Index | Thread Index | Old Index