Thu May 5 03:59:49 2016 UTC ()
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.


(agc)
diff -r0 -r1.1 pkgsrc/lang/duktape/DESCR
diff -r0 -r1.1 pkgsrc/lang/duktape/Makefile
diff -r0 -r1.1 pkgsrc/lang/duktape/PLIST
diff -r0 -r1.1 pkgsrc/lang/duktape/distinfo

File Added: pkgsrc/lang/duktape/DESCR
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.

File Added: pkgsrc/lang/duktape/Makefile
# $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"

File Added: pkgsrc/lang/duktape/PLIST
@comment $NetBSD: PLIST,v 1.1 2016/05/05 03:59:48 agc Exp $
bin/duk

File Added: pkgsrc/lang/duktape/distinfo
$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