mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
New port: lang/mujs: Embeddable Javascript interpreter in C
This commit is contained in:
parent
e2b1aaa548
commit
76a2f17299
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464830
@ -182,6 +182,7 @@
|
||||
SUBDIR += mosh
|
||||
SUBDIR += mosml
|
||||
SUBDIR += mtasc
|
||||
SUBDIR += mujs
|
||||
SUBDIR += munger
|
||||
SUBDIR += myrddin
|
||||
SUBDIR += nawk
|
||||
|
27
lang/mujs/Makefile
Normal file
27
lang/mujs/Makefile
Normal file
@ -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>
|
3
lang/mujs/distinfo
Normal file
3
lang/mujs/distinfo
Normal file
@ -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
|
23
lang/mujs/files/patch-Makefile
Normal file
23
lang/mujs/files/patch-Makefile
Normal file
@ -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
|
11
lang/mujs/pkg-descr
Normal file
11
lang/mujs/pkg-descr
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user