Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 22:53:19 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373582 - in head/lang: . duktape duktape/files
Message-ID:  <201411282253.sASMrJer078780@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Nov 28 22:53:19 2014
New Revision: 373582
URL: https://svnweb.freebsd.org/changeset/ports/373582
QAT: https://qat.redports.org/buildarchive/r373582/

Log:
  Duktape is an embeddable Javascript engine, with a focus on portability and
  compact footprint.
  
  Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h
  to your build, and use the Duktape API to call Ecmascript functions from C code
  and vice versa.
  
  Main features:
  
    * Embeddable, portable, compact; about 210kB code, 80kB memory, 40kLoC source
  (excluding comments etc)
    * Ecmascript E5/E5.1 compliant, some features borrowed
      from E6 draft
    * Built-in regular expression engine
    * Built-in Unicode support
    * Minimal platform dependencies
    * Combined reference counting and mark-and-sweep garbage collection with
      finalization
    * Custom features like coroutines, built-in logging framework, and built-in
      CommonJS-based module loading framework
    * Property virtualization using a subset of Ecmascript E6 Proxy object
    * Liberal license (MIT)

Added:
  head/lang/duktape/
  head/lang/duktape/Makefile   (contents, props changed)
  head/lang/duktape/distinfo   (contents, props changed)
  head/lang/duktape/files/
  head/lang/duktape/files/patch-Makefile.cmdline   (contents, props changed)
  head/lang/duktape/pkg-descr   (contents, props changed)
Modified:
  head/lang/Makefile

Modified: head/lang/Makefile
==============================================================================
--- head/lang/Makefile	Fri Nov 28 22:41:11 2014	(r373581)
+++ head/lang/Makefile	Fri Nov 28 22:53:19 2014	(r373582)
@@ -49,6 +49,7 @@
     SUBDIR += dlv
     SUBDIR += dmd1
     SUBDIR += dmd2
+    SUBDIR += duktape
     SUBDIR += ecl
     SUBDIR += elan
     SUBDIR += elixir

Added: head/lang/duktape/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/duktape/Makefile	Fri Nov 28 22:53:19 2014	(r373582)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	duktape
+PORTVERSION=	1.0.2
+CATEGORIES=	lang devel
+MASTER_SITES=	http://duktape.org/
+
+MAINTAINER=	bapt@FreeBSD.org
+COMMENT=	Embeddable Javascript engine
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=	readline tar:xz
+
+MAKEFILE=	Makefile.cmdline
+ALL_TARGET=	#
+
+PLIST_FILES=	bin/duk
+
+# for readline
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-I${LOCALBASE}/lib
+
+MAKE_ARGS=	CC="${CC}"
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/duk ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>

Added: head/lang/duktape/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/duktape/distinfo	Fri Nov 28 22:53:19 2014	(r373582)
@@ -0,0 +1,2 @@
+SHA256 (duktape-1.0.2.tar.xz) = 916f4ae8f8a679c4cd976ca8442d3e863205bb858e6e8483997f4fa0f487b784
+SIZE (duktape-1.0.2.tar.xz) = 428588

Added: head/lang/duktape/files/patch-Makefile.cmdline
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/duktape/files/patch-Makefile.cmdline	Fri Nov 28 22:53:19 2014	(r373582)
@@ -0,0 +1,20 @@
+--- Makefile.cmdline.orig	2014-11-08 02:33:22 UTC
++++ Makefile.cmdline
+@@ -10,14 +10,14 @@ DUKTAPE_CMDLINE_SOURCES = \
+ 
+ CC	= gcc
+ CCOPTS	= -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
+-CCOPTS += -I./src
++CCOPTS += -I./src ${CPPFLAGS}
+ CCLIBS	= -lm
+ 
+ # If you have readline, you may want to enable these.  On some platforms
+ # -lreadline also requires -lncurses (e.g. RHEL), so it is added by default
+ # (you may be able to remove it)
+-#CCOPTS += -DDUK_CMDLINE_FANCY
+-#CCLIBS += -lreadline
++CCOPTS += -DDUK_CMDLINE_FANCY
++CCLIBS += ${LDFLAGS} -lreadline
+ #CCLIBS += -lncurses
+ 
+ # Optional feature defines, see: http://duktape.org/guide.html#compiling

Added: head/lang/duktape/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/duktape/pkg-descr	Fri Nov 28 22:53:19 2014	(r373582)
@@ -0,0 +1,8 @@
+Duktape is an embeddable Javascript engine, with a focus on portability and
+compact footprint.
+
+Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h
+to your build, and use the Duktape API to call Ecmascript functions from C code
+and vice versa.
+
+WWW: http://duktape.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411282253.sASMrJer078780>