pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rakudo rakudo: Avoid non-portable usage of sed -i



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf746f110bea
branches:  trunk
changeset: 447543:bf746f110bea
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Feb 21 12:13:07 2021 +0000

description:
rakudo: Avoid non-portable usage of sed -i

PR pkg/56001

diffstat:

 lang/rakudo/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 24191e2f49c4 -r bf746f110bea lang/rakudo/Makefile
--- a/lang/rakudo/Makefile      Sun Feb 21 11:30:15 2021 +0000
+++ b/lang/rakudo/Makefile      Sun Feb 21 12:13:07 2021 +0000
@@ -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 @@
 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 @@
 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