pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/yarn yarn: use REPLACE_NODEJS from lang/nodejs/a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b2d0818255d
branches:  trunk
changeset: 338061:7b2d0818255d
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Aug 18 04:19:58 2019 +0000

description:
yarn: use REPLACE_NODEJS from lang/nodejs/application.mk. NFC

diffstat:

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

diffs (27 lines):

diff -r d87cc1468435 -r 7b2d0818255d devel/yarn/Makefile
--- a/devel/yarn/Makefile       Sun Aug 18 03:49:03 2019 +0000
+++ b/devel/yarn/Makefile       Sun Aug 18 04:19:58 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2019/07/13 09:18:52 adam Exp $
+# $NetBSD: Makefile,v 1.8 2019/08/18 04:19:58 maya Exp $
 
 DISTNAME=      yarn-v1.17.3
 PKGNAME=       ${DISTNAME:S/-v/-/}
@@ -16,10 +16,7 @@
 
 INSTALLATION_DIRS=     bin libexec/yarn/bin libexec/yarn/lib
 
-REPLACE_INTERPRETER+=  nodejs
-REPLACE.nodejs.old=    .*node
-REPLACE.nodejs.new=    ${PREFIX}/bin/node
-REPLACE_FILES.nodejs=  bin/yarn.js
+REPLACE_NODEJS=        bin/yarn.js
 
 do-build:
        ${SED} ${FILES_SUBST_SED} ${FILESDIR}/yarn.sh >${WRKSRC}/yarn.sh
@@ -34,4 +31,5 @@
        ${INSTALL_SCRIPT} ${WRKSRC}/yarn.sh                     \
            ${DESTDIR}${PREFIX}/bin/yarnpkg
 
+.include "../../lang/nodejs/application.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index