summaryrefslogtreecommitdiff
path: root/lang/duktape
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2016-05-05 03:59:48 +0000
committeragc <agc@pkgsrc.org>2016-05-05 03:59:48 +0000
commite64c6e58428372dd4ef721b3fdffc06d47c3cdf9 (patch)
tree1e7b4f5cddb1b90f1c76b1809175f9a7770f98c1 /lang/duktape
parent7b03f15aa102eb83f2a56153248b133aa6a06c28 (diff)
downloadpkgsrc-e64c6e58428372dd4ef721b3fdffc06d47c3cdf9.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/duktape')
-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