pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools Split out the perl handling to a separate fil...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6a4d2336c9d5
branches: trunk
changeset: 493119:6a4d2336c9d5
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Apr 27 17:29:06 2005 +0000
description:
Split out the perl handling to a separate file, since we always use the
pkgsrc perl, and it isn't really like any of the other tools that we
replace based on a system-/pkgsrc-supplied distinction.
diffstat:
mk/tools/perl.mk | 18 ++++++++++++++++++
mk/tools/replace.mk | 23 ++---------------------
2 files changed, 20 insertions(+), 21 deletions(-)
diffs (80 lines):
diff -r 59c267779db9 -r 6a4d2336c9d5 mk/tools/perl.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/tools/perl.mk Wed Apr 27 17:29:06 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: perl.mk,v 1.1 2005/04/27 17:29:06 jlam Exp $
+
+# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
+# is defined. This ensures that the correct perl is executed when it's
+# invoked as a bare "perl".
+#
+.if defined(USE_PERL5) && !defined(TOOLS_IGNORE.perl)
+. if !empty(PKGPATH:Mlang/perl58)
+MAKEFLAGS+= TOOLS_IGNORE.perl=
+. else
+. include "../../lang/perl5/buildlink3.mk"
+TOOLS_SYMLINK+= perl
+TOOLS_REAL_CMD.perl= ${PERL5}
+. if exists(${TOOLS_REAL_CMD.perl})
+PERL5= ${TOOLS_REAL_CMD.perl}
+. endif
+. endif
+.endif
diff -r 59c267779db9 -r 6a4d2336c9d5 mk/tools/replace.mk
--- a/mk/tools/replace.mk Wed Apr 27 17:25:35 2005 +0000
+++ b/mk/tools/replace.mk Wed Apr 27 17:29:06 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.42 2005/04/27 17:15:13 jlam Exp $
+# $NetBSD: replace.mk,v 1.43 2005/04/27 17:29:06 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions. The replacements are placed under
@@ -38,10 +38,6 @@
USE_TOOLS+= tbl
.endif
-.if defined(USE_PERL5)
-USE_TOOLS+= perl
-.endif
-
# These are the platform-specific lists of system-supplied tools.
#
# XXX These should eventually just migrate over to the appropriate
@@ -57,8 +53,7 @@
#
_TOOLS_REPLACE_LIST= awk bison cmp egrep fgrep file find gawk gm4 \
gmake grep gsed gtar gunzip gzcat gzip lex m4 \
- mtree patch pax perl sed sh shlock tbl xargs \
- yacc
+ mtree patch pax sed sh shlock tbl xargs yacc
# "TOOL" variable names associated with each of the tools
_TOOLS_VARNAME.awk= AWK
@@ -82,7 +77,6 @@
_TOOLS_VARNAME.mtree= MTREE
_TOOLS_VARNAME.patch= PATCH
_TOOLS_VARNAME.pax= PAX
-_TOOLS_VARNAME.perl= PERL5
_TOOLS_VARNAME.sed= SED
_TOOLS_VARNAME.sh= SH
_TOOLS_VARNAME.shlock= SHLOCK
@@ -420,19 +414,6 @@
. endif
.endif
-.if !defined(TOOLS_IGNORE.perl) && !empty(USE_TOOLS:Mperl)
-. if !empty(PKGPATH:Mlang/perl5)
-MAKEFLAGS+= TOOLS_IGNORE.perl=
-. elif !empty(_TOOLS_USE_PKGSRC.perl:M[yY][eE][sS])
-. include "../../lang/perl5/buildlink3.mk"
-TOOLS_SYMLINK+= perl
-TOOLS_REAL_CMD.perl= ${LOCALBASE}/bin/perl
-. if exists(${TOOLS_REAL_CMD.perl})
-${_TOOLS_VARNAME.perl}= ${TOOLS_REAL_CMD.perl}
-. endif
-. endif
-.endif
-
# "gsed" overrides "sed"
.if !defined(TOOLS_IGNORE.sed) && !empty(USE_TOOLS:Msed) && \
empty(USE_TOOLS:Mgsed)
Home |
Main Index |
Thread Index |
Old Index