pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/configure (replace-interpreter.mk) Add REPLACE_R, t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ebc18367f350
branches:  trunk
changeset: 458114:ebc18367f350
user:      mef <mef%pkgsrc.org@localhost>
date:      Thu Sep 09 21:59:36 2021 +0000

description:
(replace-interpreter.mk) Add REPLACE_R, tks rillig@ and greg@

diffstat:

 mk/configure/replace-interpreter.mk |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 4f0462ec2cd5 -r ebc18367f350 mk/configure/replace-interpreter.mk
--- a/mk/configure/replace-interpreter.mk       Thu Sep 09 21:41:59 2021 +0000
+++ b/mk/configure/replace-interpreter.mk       Thu Sep 09 21:59:36 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace-interpreter.mk,v 1.21 2020/06/07 06:10:36 rillig Exp $
+# $NetBSD: replace-interpreter.mk,v 1.22 2021/09/09 21:59:36 mef Exp $
 
 # This file provides common templates for replacing #! interpreters
 # in script files.
@@ -11,6 +11,7 @@
 # REPLACE_KSH
 # REPLACE_PERL
 # REPLACE_PERL6
+# REPLACE_R
 # REPLACE_SH
 #      Lists of filename patterns relative to WRKSRC in which the #!
 #      interpreter should be replaced by the pkgsrc one. Any directories
@@ -48,6 +49,7 @@
 REPLACE_CSH?=  # none
 REPLACE_KSH?=  # none
 REPLACE_PERL?= # none
+REPLACE_R?=    # none
 REPLACE_SH?=   # none
 
 .if !empty(REPLACE_AWK:M*)
@@ -93,6 +95,13 @@
 REPLACE_FILES.sys-Perl6=${REPLACE_PERL6}
 .endif
 
+.if !empty(REPLACE_R:M*)
+REPLACE_INTERPRETER+=  sys-R
+REPLACE.sys-R.old=     [^[:space:]]*R
+REPLACE.sys-R.new=     ${PREFIX}/bin/R
+REPLACE_FILES.sys-R=   ${REPLACE_R}
+.endif
+
 .if !empty(REPLACE_SH:M*)
 REPLACE_INTERPRETER+=  sys-sh
 REPLACE.sys-sh.old=    [^[:space:]]*sh
@@ -136,7 +145,7 @@
 
 _VARGROUPS+=           interp
 _PKG_VARS.interp=      REPLACE_AWK REPLACE_BASH REPLACE_CSH REPLACE_KSH
-_PKG_VARS.interp+=     REPLACE_PERL REPLACE_PERL6 REPLACE_SH
+_PKG_VARS.interp+=     REPLACE_PERL REPLACE_PERL6 REPLACE_R REPLACE_SH
 _PKG_VARS.interp+=     REPLACE_INTERPRETER
 .for interp in ${REPLACE_INTERPRETER}
 _DEF_VARS.interp+=     REPLACE.${interp}.old REPLACE.${interp}.new REPLACE_FILES.${interp}



Home | Main Index | Thread Index | Old Index