pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/quickjs



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sun May 10 10:32:33 UTC 2020

Modified Files:
        pkgsrc/lang/quickjs: Makefile PLIST

Log Message:
lang/quickjs: install documentation and examples


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/quickjs/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/quickjs/PLIST

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

Modified files:

Index: pkgsrc/lang/quickjs/Makefile
diff -u pkgsrc/lang/quickjs/Makefile:1.6 pkgsrc/lang/quickjs/Makefile:1.7
--- pkgsrc/lang/quickjs/Makefile:1.6    Sun May 10 10:17:05 2020
+++ pkgsrc/lang/quickjs/Makefile        Sun May 10 10:32:33 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/05/10 10:17:05 rillig Exp $
+# $NetBSD: Makefile,v 1.7 2020/05/10 10:32:33 rillig Exp $
 
 NAME=          quickjs
 QJS_DATE=      2020-04-12
@@ -17,6 +17,7 @@ LICENSE=      mit
 USE_TOOLS+=    gmake
 MAKE_FLAGS=    prefix=${PREFIX}
 TEST_TARGET=   test
+AUTO_MKDIRS=   yes
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -34,4 +35,9 @@ PLIST.lto=yes
 MAKE_ENV+=     CONFIG_BIGNUM=yes
 .endif
 
+post-install:
+       cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.pdf ${DESTDIR}${PREFIX}/share/doc/quickjs/
+       cd ${WRKSRC}/examples && ${INSTALL_DATA} *.js *.c ${DESTDIR}${PREFIX}/share/doc/quickjs/examples/
+       cd ${WRKSRC}/tests && ${INSTALL_DATA} *.js *.c ${DESTDIR}${PREFIX}/share/doc/quickjs/tests/
+
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/quickjs/PLIST
diff -u pkgsrc/lang/quickjs/PLIST:1.3 pkgsrc/lang/quickjs/PLIST:1.4
--- pkgsrc/lang/quickjs/PLIST:1.3       Mon Feb 10 13:06:08 2020
+++ pkgsrc/lang/quickjs/PLIST   Sun May 10 10:32:33 2020
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/02/10 13:06:08 he Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/05/10 10:32:33 rillig Exp $
 bin/qjs
 bin/qjsc
 bin/qjscalc
@@ -6,3 +6,28 @@ include/quickjs/quickjs-libc.h
 include/quickjs/quickjs.h
 lib/quickjs/libquickjs.a
 ${PLIST.lto}lib/quickjs/libquickjs.lto.a
+share/doc/quickjs/examples/fib.c
+share/doc/quickjs/examples/fib_module.js
+share/doc/quickjs/examples/hello.js
+share/doc/quickjs/examples/hello_module.js
+share/doc/quickjs/examples/pi_bigdecimal.js
+share/doc/quickjs/examples/pi_bigfloat.js
+share/doc/quickjs/examples/pi_bigint.js
+share/doc/quickjs/examples/point.c
+share/doc/quickjs/examples/test_fib.js
+share/doc/quickjs/examples/test_point.js
+share/doc/quickjs/jsbignum.html
+share/doc/quickjs/jsbignum.pdf
+share/doc/quickjs/quickjs.html
+share/doc/quickjs/quickjs.pdf
+share/doc/quickjs/tests/bjson.c
+share/doc/quickjs/tests/microbench.js
+share/doc/quickjs/tests/test_bignum.js
+share/doc/quickjs/tests/test_bjson.js
+share/doc/quickjs/tests/test_builtin.js
+share/doc/quickjs/tests/test_closure.js
+share/doc/quickjs/tests/test_loop.js
+share/doc/quickjs/tests/test_op.js
+share/doc/quickjs/tests/test_op_overloading.js
+share/doc/quickjs/tests/test_qjscalc.js
+share/doc/quickjs/tests/test_std.js



Home | Main Index | Thread Index | Old Index