Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2018 16:07:29 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464830 - in head/lang: . mujs mujs/files
Message-ID:  <201803171607.w2HG7ToD024691@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Mar 17 16:07:29 2018
New Revision: 464830
URL: https://svnweb.freebsd.org/changeset/ports/464830

Log:
  New port: lang/mujs: Embeddable Javascript interpreter in C

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

Modified: head/lang/Makefile
==============================================================================
--- head/lang/Makefile	Sat Mar 17 15:58:27 2018	(r464829)
+++ head/lang/Makefile	Sat Mar 17 16:07:29 2018	(r464830)
@@ -182,6 +182,7 @@
     SUBDIR += mosh
     SUBDIR += mosml
     SUBDIR += mtasc
+    SUBDIR += mujs
     SUBDIR += munger
     SUBDIR += myrddin
     SUBDIR += nawk

Added: head/lang/mujs/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mujs/Makefile	Sat Mar 17 16:07:29 2018	(r464830)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME=	mujs
+DISTVERSION=	1.0.3
+CATEGORIES=	lang devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Embeddable Javascript interpreter in C
+
+LICENSE=	ISCL
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		gmake
+USE_GITHUB=	yes
+GH_ACCOUNT=	ccxvii
+USE_LDCONFIG=	yes
+ALL_TARGET=	default
+
+PLIST_FILES=	bin/mujs \
+		include/mujs.h \
+		lib/libmujs.so \
+		libdata/pkgconfig/mujs.pc
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmujs.so
+
+.include <bsd.port.mk>

Added: head/lang/mujs/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mujs/distinfo	Sat Mar 17 16:07:29 2018	(r464830)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521301055
+SHA256 (ccxvii-mujs-1.0.3_GH0.tar.gz) = 5aabafe512d7a7c6d2c8d67483a5331e55440eeca2db2dc4602ca643c62b5ef6
+SIZE (ccxvii-mujs-1.0.3_GH0.tar.gz) = 117180

Added: head/lang/mujs/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mujs/files/patch-Makefile	Sat Mar 17 16:07:29 2018	(r464830)
@@ -0,0 +1,23 @@
+--- Makefile.orig	2018-03-17 15:44:40 UTC
++++ Makefile
+@@ -45,9 +45,9 @@ OUT := build/$(build)
+ SRCS := $(wildcard js*.c utf*.c regexp.c)
+ HDRS := $(wildcard js*.h mujs.h utf.h regexp.h)
+ 
+-default: static
++default: shared
+ static: $(OUT) $(OUT)/mujs $(OUT)/libmujs.a $(OUT)/mujs.pc
+-shared: static $(OUT)/libmujs.so
++shared: $(OUT) $(OUT)/mujs $(OUT)/libmujs.so $(OUT)/mujs.pc
+ 
+ astnames.h: jsparse.h
+ 	grep -E '(AST|EXP|STM)_' jsparse.h | sed 's/^[^A-Z]*\(AST_\)*/"/;s/,.*/",/' | tr A-Z a-z > $@
+@@ -105,7 +105,7 @@ install-static: install-common
+ install-shared: install-common
+ 	install -m 755 build/release/libmujs.so $(DESTDIR)$(libdir)
+ 
+-install: install-static
++install: install-shared
+ 
+ tarball:
+ 	git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip

Added: head/lang/mujs/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mujs/pkg-descr	Sat Mar 17 16:07:29 2018	(r464830)
@@ -0,0 +1,11 @@
+MuJS is a lightweight Javascript interpreter designed for embedding in
+other software to extend them with scripting capabilities.
+
+MuJS was designed with a focus on small size, correctness, and simplicity.
+It is written in portable C and implements ECMAScript as specified by ECMA-262.
+The interface for binding with native code is designed to be as simple as
+possible to use, and is very similar to Lua. There is no need to interact with
+byzantine C++ template mechanisms, or worry about marking and unmarking garbage
+collection roots, or wrestle with obscure build systems.
+
+WWW: https://mujs.com/



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