pkgsrc-WIP-changes archive

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

spidermonkey31: Fix install target



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Oct 13 12:09:22 2016 +0200
Changeset:	cbc01bd46625c23c5d92666b007dd138c56ecb2a

Modified Files:
	spidermonkey31/Makefile

Log Message:
spidermonkey31: Fix install target

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

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

diffstat:
 spidermonkey31/Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diffs:
diff --git a/spidermonkey31/Makefile b/spidermonkey31/Makefile
index dad29bd..cee1017 100644
--- a/spidermonkey31/Makefile
+++ b/spidermonkey31/Makefile
@@ -57,13 +57,18 @@ post-install:
 	install_name_tool -id ${PREFIX}/lib/libmozjs-31.dylib \
 		${DESTDIR}${PREFIX}/lib/libmozjs-31.dylib
 .endif
-	${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-31/*.*
-	${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-31/*/*.*
-	${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libmozjs-31.a
-	${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-31.pc
 # Remove conflict with alternative spidermonkey releases
 	${MV} ${DESTDIR}${PREFIX}/bin/js ${DESTDIR}${PREFIX}/bin/js31
 	${MV} ${DESTDIR}${PREFIX}/bin/js-config ${DESTDIR}${PREFIX}/bin/js31-config
+# This package installs dummy headers as symlinks to.. ${WRKSRC} - fix it here
+# There won't be updates of this spidermonkey release so it's not necessary
+# to produce a more accurate fix in package's install target.
+	${RUN} cd ${DESTDIR}${PREFIX}/include && \
+		for lnk in `find . -type l`; do \
+			hdr=`readlink $$lnk`; \
+			${RM} -f $$lnk; \
+		${INSTALL} $$hdr $$lnk; \
+	done
 # Install missing files
 	${INSTALL} ${WRKSRC}/js/src/js-config.h ${DESTDIR}${PREFIX}/include/mozjs-31/
 


Home | Main Index | Thread Index | Old Index