Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/quickjs lang/quickjs: install documentation and e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47558f7f6662
branches:  trunk
changeset: 431197:47558f7f6662
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun May 10 10:32:33 2020 +0000

description:
lang/quickjs: install documentation and examples

diffstat:

 lang/quickjs/Makefile |   8 +++++++-
 lang/quickjs/PLIST    |  27 ++++++++++++++++++++++++++-
 2 files changed, 33 insertions(+), 2 deletions(-)

diffs (65 lines):

diff -r d339cc0f798f -r 47558f7f6662 lang/quickjs/Makefile
--- a/lang/quickjs/Makefile     Sun May 10 10:19:40 2020 +0000
+++ b/lang/quickjs/Makefile     Sun May 10 10:32:33 2020 +0000
@@ -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 @@
 USE_TOOLS+=    gmake
 MAKE_FLAGS=    prefix=${PREFIX}
 TEST_TARGET=   test
+AUTO_MKDIRS=   yes
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -34,4 +35,9 @@
 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"
diff -r d339cc0f798f -r 47558f7f6662 lang/quickjs/PLIST
--- a/lang/quickjs/PLIST        Sun May 10 10:19:40 2020 +0000
+++ b/lang/quickjs/PLIST        Sun May 10 10:32:33 2020 +0000
@@ -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.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