From owner-svn-ports-all@freebsd.org Sat Apr 14 17:10:02 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E8A0F89FD3; Sat, 14 Apr 2018 17:10:02 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 006A88B86A; Sat, 14 Apr 2018 17:10:02 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EF1BA2AFB5; Sat, 14 Apr 2018 17:10:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3EHA1Wq075398; Sat, 14 Apr 2018 17:10:01 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3EHA1VD075392; Sat, 14 Apr 2018 17:10:01 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201804141710.w3EHA1VD075392@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 14 Apr 2018 17:10:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467333 - in head/lang: . duktape-lib duktape-lib/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/lang: . duktape-lib duktape-lib/files X-SVN-Commit-Revision: 467333 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 17:10:02 -0000 Author: yuri Date: Sat Apr 14 17:10:01 2018 New Revision: 467333 URL: https://svnweb.freebsd.org/changeset/ports/467333 Log: New port: lang/duktape-lib: Embeddable Javascript engine (shared lib) PR: 227516 Submitted by: Alfonso S. Siciliano Added: head/lang/duktape-lib/ head/lang/duktape-lib/Makefile (contents, props changed) head/lang/duktape-lib/distinfo (contents, props changed) head/lang/duktape-lib/files/ head/lang/duktape-lib/files/patch-Makefile.sharedlibrary (contents, props changed) head/lang/duktape-lib/pkg-descr (contents, props changed) head/lang/duktape-lib/pkg-plist (contents, props changed) Modified: head/lang/Makefile Modified: head/lang/Makefile ============================================================================== --- head/lang/Makefile Sat Apr 14 16:33:28 2018 (r467332) +++ head/lang/Makefile Sat Apr 14 17:10:01 2018 (r467333) @@ -57,6 +57,7 @@ SUBDIR += dmd1 SUBDIR += dmd2 SUBDIR += duktape + SUBDIR += duktape-lib SUBDIR += ecl SUBDIR += elan SUBDIR += elixir Added: head/lang/duktape-lib/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/duktape-lib/Makefile Sat Apr 14 17:10:01 2018 (r467333) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= duktape +DISTVERSION= 2.2.0 +CATEGORIES= lang devel +MASTER_SITES= http://duktape.org/ +PKGNAMESUFFIX= -lib + +MAINTAINER= alfix86@gmail.com +COMMENT= Embeddable Javascript engine (shared lib) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= tar:xz +USE_LDCONFIG= yes + +MAKEFILE= Makefile.sharedlibrary + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/duktape.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/src/duk_config.h ${STAGEDIR}${PREFIX}/include +.for l in libduktape.so libduktaped.so + ${INSTALL_LIB} ${WRKSRC}/${l}.202.20200 ${STAGEDIR}${PREFIX}/lib + ${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.202.20200 ${STAGEDIR}${PREFIX}/lib/${l} + ${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.202.20200 ${STAGEDIR}${PREFIX}/lib/${l}.202 +.endfor + +.include Added: head/lang/duktape-lib/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/duktape-lib/distinfo Sat Apr 14 17:10:01 2018 (r467333) @@ -0,0 +1,3 @@ +TIMESTAMP = 1523674954 +SHA256 (duktape-2.2.0.tar.xz) = 62f72206427633077cb02e7ccd2599ace4d254db409334593b86d262c0d50c14 +SIZE (duktape-2.2.0.tar.xz) = 969136 Added: head/lang/duktape-lib/files/patch-Makefile.sharedlibrary ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/duktape-lib/files/patch-Makefile.sharedlibrary Sat Apr 14 17:10:01 2018 (r467333) @@ -0,0 +1,16 @@ +--- Makefile.sharedlibrary.orig 2017-09-23 01:06:08 UTC ++++ Makefile.sharedlibrary +@@ -44,11 +44,11 @@ all: libduktape.so.$(REAL_VERSION) libdu + # to $INSTALL_PREFIX/include on installation. + + libduktape.so.$(REAL_VERSION): +- gcc -shared -fPIC -Wall -Wextra -Os -Wl,-soname,libduktape.so.$(SONAME_VERSION) \ ++ $(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktape.so.$(SONAME_VERSION) \ + -o $@ $(DUKTAPE_SRCDIR)/duktape.c + + libduktaped.so.$(REAL_VERSION): +- gcc -shared -fPIC -g -Wall -Wextra -Os -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \ ++ $(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \ + -o $@ $(DUKTAPE_SRCDIR)/duktape.c + + # Symlinks depend on platform conventions. Added: head/lang/duktape-lib/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/duktape-lib/pkg-descr Sat Apr 14 17:10:01 2018 (r467333) @@ -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/ Added: head/lang/duktape-lib/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/duktape-lib/pkg-plist Sat Apr 14 17:10:01 2018 (r467333) @@ -0,0 +1,8 @@ +include/duk_config.h +include/duktape.h +lib/libduktape.so +lib/libduktape.so.202 +lib/libduktape.so.202.20200 +lib/libduktaped.so +lib/libduktaped.so.202 +lib/libduktaped.so.202.20200