pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/nodejs Create a node.js REPLACE_* mk-fragment.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0e31091c5f38
branches: trunk
changeset: 338058:0e31091c5f38
user: maya <maya%pkgsrc.org@localhost>
date: Sun Aug 18 03:44:42 2019 +0000
description:
Create a node.js REPLACE_* mk-fragment.
Extracting the code in devel/yarn to be used in another package, too.
diffstat:
lang/nodejs/application.mk | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diffs (26 lines):
diff -r 3f191419374b -r 0e31091c5f38 lang/nodejs/application.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/application.mk Sun Aug 18 03:44:42 2019 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: application.mk,v 1.1 2019/08/18 03:44:42 maya Exp $
+#
+# Replace the #! interpreter for nodejs scripts.
+#
+# This mk fragment should be included in all node.js packages that
+# install node scripts, or at least those that don't use setuptools
+# or some other mechanism to set the real path. Specifically, it is
+# reasonable to include both egg.mk and application.mk.
+#
+# Package-settable variables:
+#
+# REPLACE_NODEJS
+# A list of node scripts to be installed, relative to ${WRKSRC}.
+#
+# Keywords: node node.js nodejs
+#
+.if defined(REPLACE_NODEJS)
+REPLACE_INTERPRETER+= nodejs
+REPLACE.nodejs.old= .*node
+REPLACE.nodejs.new= ${PREFIX}/bin/node
+REPLACE_FILES.nodejs= ${REPLACE_NODEJS}
+.endif
Home |
Main Index |
Thread Index |
Old Index