Download raw body.
[new] lang/mujs
On 2024/04/23 22:09, Pascal Stumpf wrote:
> On Tue, 23 Apr 2024 20:51:59 +0100, Stuart Henderson wrote:
> > On 2024/04/23 21:10, Pascal Stumpf wrote:
> > > 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.
> > >
> > >
> > > Useful for js in an upcoming port of the new elinks codebase.
> > >
> > > textproc/mupdf,js needs a small fix to cope with an external libmujs.
> >
> > Any reason not to use the shared library?
>
> Not really, other than upstream apparently preferring the static one.
That's normal for them :)
If it's static, you'll need to bump any ports that depend on it after
any update.
> Updated tarball with shared library.
OK
> > --- Makefile.orig Tue Apr 23 18:49:24 2024
> > +++ Makefile Tue Apr 23 20:51:10 2024
> > @@ -1,5 +1,7 @@
> > COMMENT = lightweight Javascript interpreter
> >
> > +SHARED_LIBS = mujs 0.0
> > +
> > V = 1.3.4
> > DISTNAME = mujs-$V
> >
> > @@ -16,12 +18,13 @@ WANTLIB += c m readline
> >
> > SITES = https://mujs.com/downloads/
> >
> > -MAKE_FLAGS = OPTIM="${CFLAGS}"
> > +MAKE_FLAGS = OPTIM="${CFLAGS}" SO="so.${LIBmujs_VERSION}"
> >
> > USE_GMAKE = Yes
> >
> > NO_TEST = Yes
> >
> > ALL_TARGET = release
> > +INSTALL_TARGET = install-shared
> >
> > .include <bsd.port.mk>
[new] lang/mujs