diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-17 01:46:19 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-17 01:46:19 +0000 |
commit | 4c7f53015234750325f6cdc8ac5ca0c2c51d5a8b (patch) | |
tree | d848ee6752b1bc3c14e2b3fc47c52d40815b5da2 /lang/duktape | |
parent | Link on libedit instead of readline (diff) |
Update to 1.1.0
Use libedit from ports instead of libreadline
Notes
Notes:
svn path=/head/; revision=377210
Diffstat (limited to 'lang/duktape')
-rw-r--r-- | lang/duktape/Makefile | 13 | ||||
-rw-r--r-- | lang/duktape/distinfo | 4 | ||||
-rw-r--r-- | lang/duktape/files/patch-Makefile.cmdline | 2 |
3 files changed, 12 insertions, 7 deletions
diff --git a/lang/duktape/Makefile b/lang/duktape/Makefile index cff5c2e9c952..ce289af793c5 100644 --- a/lang/duktape/Makefile +++ b/lang/duktape/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= duktape -PORTVERSION= 1.0.2 +PORTVERSION= 1.1.0 CATEGORIES= lang devel MASTER_SITES= http://duktape.org/ @@ -11,19 +11,24 @@ COMMENT= Embeddable Javascript engine LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= readline tar:xz +USES= tar:xz +LIB_DEPENDS= libedit.so.0:${PORTSDIR}/devel/libedit MAKEFILE= Makefile.cmdline ALL_TARGET= # PLIST_FILES= bin/duk -# for readline +# for libedit CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -I${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib MAKE_ARGS= CC="${CC}" +post-patch: + @${REINPLACE_CMD} -e "/history\.h/d ; s,readline/,editline/,g " \ + ${WRKSRC}/examples/cmdline/duk_cmdline.c + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/duk ${STAGEDIR}${PREFIX}/bin diff --git a/lang/duktape/distinfo b/lang/duktape/distinfo index 778697afce95..402ced8353fc 100644 --- a/lang/duktape/distinfo +++ b/lang/duktape/distinfo @@ -1,2 +1,2 @@ -SHA256 (duktape-1.0.2.tar.xz) = 916f4ae8f8a679c4cd976ca8442d3e863205bb858e6e8483997f4fa0f487b784 -SIZE (duktape-1.0.2.tar.xz) = 428588 +SHA256 (duktape-1.1.0.tar.xz) = 15faf9778f919844440665568088462cee5a876bb0b54f63484485b73506aa69 +SIZE (duktape-1.1.0.tar.xz) = 460312 diff --git a/lang/duktape/files/patch-Makefile.cmdline b/lang/duktape/files/patch-Makefile.cmdline index e5172971a330..d6856948105a 100644 --- a/lang/duktape/files/patch-Makefile.cmdline +++ b/lang/duktape/files/patch-Makefile.cmdline @@ -14,7 +14,7 @@ -#CCOPTS += -DDUK_CMDLINE_FANCY -#CCLIBS += -lreadline +CCOPTS += -DDUK_CMDLINE_FANCY -+CCLIBS += ${LDFLAGS} -lreadline ++CCLIBS += ${LDFLAGS} -ledit #CCLIBS += -lncurses # Optional feature defines, see: http://duktape.org/guide.html#compiling |