devel/emscripten: Fix the problem with paths in symlinked executables

PR:		252024
Reported by:	Nick Briggs <nicholas.h.briggs@gmail.com>
This commit is contained in:
Yuri Victorovich 2020-12-21 19:36:13 +00:00
parent d5b8de9271
commit c51f3afaf5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=558854
3 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= emscripten
DISTVERSION= 2.0.3
PORTREVISION= 1
CATEGORIES= devel www
MAINTAINER= yuri@FreeBSD.org
@ -23,7 +24,7 @@ GH_PROJECT= emscripten
SHEBANG_FILES= ${PYSCRIPTS} emcmake tools/emdump system/bin/sdl-config system/bin/sdl2-config third_party/websockify/run
SHEBANG_GLOB= *.py *.sh
PYSCRIPTS= em++ emar emcc emconfigure emmake emranlib emrun emscons
PYSCRIPTS= em++ em-config emar embuilder emcc emcmake emconfigure emmake emranlib emrun emscons emsize
NO_BUILD= yes
NO_ARCH= yes
@ -48,6 +49,11 @@ do-install:
cd ${WRKSRC} && ${CP} -r em* cmake site src system third_party tools ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/
${FIND} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} \( -name "*.bat" -o -name "*.orig" \) -delete
.for s in ${PYSCRIPTS}
@(echo "#!/bin/sh"; \
echo ""; \
echo "${PYTHON_CMD} ${PREFIX}/lib/${PORTNAME}/${s}.py \"$$"@"\"" \
) > ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s}
@${CHMOD} +x ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s}
${RLN} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${s} ${STAGEDIR}${PREFIX}/bin/${s}
.endfor
${RM} -rf ${STAGEDIR}${PREFIX}/lib/emscripten/system/lib/pkgconfig

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1600023458
TIMESTAMP = 1608578733
SHA256 (emscripten-core-emscripten-2.0.3_GH0.tar.gz) = ac9ccb17cb14603da19009179687417fe9e63b8185e50703dbab53405276ff97
SIZE (emscripten-core-emscripten-2.0.3_GH0.tar.gz) = 33487504

View File

@ -1,11 +1,15 @@
bin/em++
bin/em-config
bin/emar
bin/embuilder
bin/emcc
bin/emcmake
bin/emconfigure
bin/emmake
bin/emranlib
bin/emrun
bin/emscons
bin/emsize
lib/emscripten/cmake/Modules/CMakeSystemSpecificInformation.cmake
lib/emscripten/cmake/Modules/CheckTypeSize.c.in
lib/emscripten/cmake/Modules/CheckTypeSize.cmake