pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/rakudo



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Feb 21 12:13:07 UTC 2021

Modified Files:
        pkgsrc/lang/rakudo: Makefile

Log Message:
rakudo: Avoid non-portable usage of sed -i

PR pkg/56001


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/rakudo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/rakudo/Makefile
diff -u pkgsrc/lang/rakudo/Makefile:1.14 pkgsrc/lang/rakudo/Makefile:1.15
--- pkgsrc/lang/rakudo/Makefile:1.14    Sat Jan  9 07:31:56 2021
+++ pkgsrc/lang/rakudo/Makefile Sun Feb 21 12:13:07 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2021/01/09 07:31:56 mef Exp $
+# $NetBSD: Makefile,v 1.15 2021/02/21 12:13:07 nia Exp $
 
 DISTNAME=      rakudo-2020.12
 CATEGORIES=    lang perl6
@@ -21,7 +21,10 @@ CONFIG_SHELL=                ${PERL5}
 CONFIGURE_SCRIPT=      Configure.pl
 CONFIGURE_ARGS=                --prefix=${PREFIX} --backends=moar
 
-REPLACE_PERL6=         tools/install-dist.p6
+REPLACE_INTERPRETER+=  raku
+REPLACE.raku.old=      /usr/bin/env raku
+REPLACE.raku.new=      ${PREFIX}/bin/raku
+REPLACE_FILES.raku=    tools/install-dist.p6
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -36,7 +39,6 @@ INSTALLATION_DIRS=    share/perl6/bin
 post-install:
        ${RM} -rf ${DESTDIR}${PREFIX}/share/perl6/core/precomp/*
        ${RM} -rf ${DESTDIR}${PREFIX}/share/perl6/precomp/*
-       sed -i "s,/usr/bin/env raku,${PREFIX}/bin/raku," ${WRKSRC}/tools/install-dist.p6
        ${INSTALL_SCRIPT} ${WRKSRC}/tools/install-dist.p6 ${DESTDIR}${PREFIX}/share/perl6/bin/
 
 



Home | Main Index | Thread Index | Old Index