summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoragc <agc>2016-05-05 03:59:48 +0000
committeragc <agc>2016-05-05 03:59:48 +0000
commitb10f7a0b5710b9283abd53af76f1845e8a77f70d (patch)
tree1e7b4f5cddb1b90f1c76b1809175f9a7770f98c1 /lang
parent2af04c5a03d909ec5ad384349af8c090a90257a1 (diff)
downloadpkgsrc-b10f7a0b5710b9283abd53af76f1845e8a77f70d.tar.gz
Add duktape 1.5.1, an MIT-licensed Javascript engine.
This is the command-line tool, which uses the recently added libduktape package. Duktape is an embeddable Ecmascript E5/E5.1 engine with a focus on portability and compact footprint. By integrating Duktape into your C/C++ program you can easily extend its functionality through scripting. You can also build the main control flow of your program in Ecmascript and use fast C code functions to do heavy lifting. The terms Ecmascript and Javascript are often considered more or less equivalent, although Javascript and its variants are technically just one environment where the Ecmascript language is used. The line between the two is not very clear in practice: even non-browser Ecmascript environments often provide some browser-specific built-ins. Duktape is no exception, and provides the commonly used print() and alert() built-ins. Even so, we use the term Ecmascript throughout to refer to the language implemented by Duktape.
Diffstat (limited to 'lang')
-rw-r--r--lang/duktape/DESCR14
-rw-r--r--lang/duktape/Makefile24
-rw-r--r--lang/duktape/PLIST2
-rw-r--r--lang/duktape/distinfo6
4 files changed, 46 insertions, 0 deletions
diff --git a/lang/duktape/DESCR b/lang/duktape/DESCR
new file mode 100644
index 00000000000..f6fb6577632
--- /dev/null
+++ b/lang/duktape/DESCR
@@ -0,0 +1,14 @@
+Duktape is an embeddable Ecmascript E5/E5.1 engine with a focus on
+portability and compact footprint. By integrating Duktape into your
+C/C++ program you can easily extend its functionality through
+scripting. You can also build the main control flow of your program
+in Ecmascript and use fast C code functions to do heavy lifting.
+
+The terms Ecmascript and Javascript are often considered more or less
+equivalent, although Javascript and its variants are technically just
+one environment where the Ecmascript language is used. The line
+between the two is not very clear in practice: even non-browser
+Ecmascript environments often provide some browser-specific built-ins.
+Duktape is no exception, and provides the commonly used print() and
+alert() built-ins. Even so, we use the term Ecmascript throughout to
+refer to the language implemented by Duktape.
diff --git a/lang/duktape/Makefile b/lang/duktape/Makefile
new file mode 100644
index 00000000000..c550505aabc
--- /dev/null
+++ b/lang/duktape/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2016/05/05 03:59:48 agc Exp $
+
+DISTNAME= duktape-1.5.0
+CATEGORIES= devel
+MASTER_SITES= http://duktape.org/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://duktape.org/
+COMMENT= Embeddable Javascript engine
+LICENSE= mit
+
+do-build:
+ (cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} examples/cmdline/duk_cmdline.c \
+ -Wl,-R${PREFIX}/lib -L${PREFIX}/lib -lduktape -lm -o duk)
+
+do-install:
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/duk ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/libduktape/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/duktape/PLIST b/lang/duktape/PLIST
new file mode 100644
index 00000000000..9bcb2e7fa12
--- /dev/null
+++ b/lang/duktape/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/05/05 03:59:48 agc Exp $
+bin/duk
diff --git a/lang/duktape/distinfo b/lang/duktape/distinfo
new file mode 100644
index 00000000000..83ecace0b75
--- /dev/null
+++ b/lang/duktape/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/05/05 03:59:48 agc Exp $
+
+SHA1 (duktape-1.5.0.tar.xz) = 6c53eff86e498c9a81181dfaf72034d616a35cba
+RMD160 (duktape-1.5.0.tar.xz) = c4af4b76978e03fe621886601b65d9fbad240b19
+SHA512 (duktape-1.5.0.tar.xz) = f9b1500980e75700296d054d91edcd6a86d5ee20d63a7c246c66af7d5f5f097191cf59c4175214138345154afb6e3f5bb338a549ac3fbadeba858d8beb610093
+Size (duktape-1.5.0.tar.xz) = 708528 bytes