pkgsrc-WIP-changes archive

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

emscripten: Some py scripts may require a shell wrapper at runtime, starting with emar



Module Name:	pkgsrc-wip
Committed By:	Mayuresh <mayuresh%warunjikar.in@localhost>
Pushed By:	mayuresh
Date:		Wed Jan 21 11:19:12 2026 +0530
Changeset:	25a67f3285e23f05f836ed454f43fd439b07c548

Modified Files:
	emscripten/Makefile
	emscripten/PLIST
Added Files:
	emscripten/files/emar

Log Message:
emscripten: Some py scripts may require a shell wrapper at runtime, starting with emar

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=25a67f3285e23f05f836ed454f43fd439b07c548

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

diffstat:
 emscripten/Makefile   | 9 +++++++++
 emscripten/PLIST      | 1 +
 emscripten/files/emar | 3 +++
 3 files changed, 13 insertions(+)

diffs:
diff --git a/emscripten/Makefile b/emscripten/Makefile
index 8af62c04bf..533c8f1397 100644
--- a/emscripten/Makefile
+++ b/emscripten/Makefile
@@ -57,10 +57,16 @@ SUBST_STAGE.wrappers=	post-install
 SUBST_FILES.wrappers=	${WRAPPER_SCRIPTS:S,^,${DESTDIR}${PREFIX}/bin/,}
 SUBST_VARS.wrappers+=	PREFIX PKGBASE
 
+SUBST_CLASSES+=		pywrappers
+SUBST_STAGE.pywrappers=	post-install
+SUBST_FILES.pywrappers=	${PY_WRAPPERS:S,^,${DESTDIR}${PREFIX}/lib/${PKGBASE}/,}
+SUBST_VARS.pywrappers+=	PREFIX PKGBASE
+
 do-build:
 
 INSTALLATION_DIRS+=	lib/${PKGBASE} bin
 WRAPPER_SCRIPTS=	emcc em++
+PY_WRAPPERS=		emar
 
 # Borrowed and adopted from FreeBSD port
 # See https://github.com/emscripten-core/emscripten/issues/17193
@@ -75,6 +81,9 @@ do-install:
 .for s in ${WRAPPER_SCRIPTS}
 	${INSTALL_SCRIPT} ${FILESDIR}/${s} ${DESTDIR}${PREFIX}/bin/${s}
 .endfor
+.for s in ${PY_WRAPPERS}
+	${INSTALL_SCRIPT} ${FILESDIR}/${s} ${DESTDIR}${PREFIX}/lib/${PKGBASE}/${s}
+.endfor
 
 .include "../../lang/nodejs/application.mk"
 .include "../../lang/python/application.mk"
diff --git a/emscripten/PLIST b/emscripten/PLIST
index 1d6586a25c..81f155e36d 100644
--- a/emscripten/PLIST
+++ b/emscripten/PLIST
@@ -20,6 +20,7 @@ lib/emscripten/docs/splashpres.pdf
 lib/emscripten/em++
 lib/emscripten/em++.py
 lib/emscripten/em-config.py
+lib/emscripten/emar
 lib/emscripten/emar.py
 lib/emscripten/embuilder.py
 lib/emscripten/emcc
diff --git a/emscripten/files/emar b/emscripten/files/emar
new file mode 100755
index 0000000000..704532e493
--- /dev/null
+++ b/emscripten/files/emar
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec @PREFIX@/lib/@PKGBASE@/emar.py "$@"


Home | Main Index | Thread Index | Old Index