aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorokazaki <okazaki@FreeBSD.org>2002-01-22 19:52:52 +0800
committerokazaki <okazaki@FreeBSD.org>2002-01-22 19:52:52 +0800
commit06d6651df631e410baca5efa6fb2d961f3a44da5 (patch)
treef30d56656f1b62862458418bb278453652d52980 /lang
parent577ba7ef5cd29b74727b4bd32676dc32c26dd52d (diff)
downloadfreebsd-ports-gnome-06d6651df631e410baca5efa6fb2d961f3a44da5.tar.gz
freebsd-ports-gnome-06d6651df631e410baca5efa6fb2d961f3a44da5.tar.zst
freebsd-ports-gnome-06d6651df631e410baca5efa6fb2d961f3a44da5.zip
Add njs 0.2.5,
NJS (NGS) is a standalone JavaScript/ECMAScript interpreter. PR: 33842 Submitted by: thierry@pompo.net
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/njs/Makefile45
-rw-r--r--lang/njs/distinfo1
-rw-r--r--lang/njs/files/patch-docs_Makefile.in14
-rw-r--r--lang/njs/pkg-comment1
-rw-r--r--lang/njs/pkg-descr7
-rw-r--r--lang/njs/pkg-message5
-rw-r--r--lang/njs/pkg-plist11
8 files changed, 85 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 3e260c184e6b..7b3394288eb0 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -100,6 +100,7 @@
SUBDIR += nawk
SUBDIR += nhc98
SUBDIR += nickle
+ SUBDIR += njs
SUBDIR += nml
SUBDIR += nqc
SUBDIR += o2c
diff --git a/lang/njs/Makefile b/lang/njs/Makefile
new file mode 100644
index 000000000000..b323ef0ad592
--- /dev/null
+++ b/lang/njs/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: njs
+# Date created: Fri Jan 11 20:45:26 GMT 2002
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= njs
+PORTVERSION= 0.2.5
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.bbassett.net/pub/njs/ \
+ http://www.bbassett.net/njs/ \
+ http://www.iki.fi/mtr/js/
+DISTNAME= js-${PORTVERSION}
+
+MAINTAINER= thierry@pompo.net
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+MAKE_ARG= MAKEINFO="makeinfo --no-split"
+
+MAN1= js.1 jsdas.1
+
+post-extract:
+ ${RM} ${WRKSRC}/docs/js.info*
+
+post-patch:
+ ${PERL} -pi -e 's:=makeinfo:="makeinfo --no-split":g' ${WRKSRC}/configure
+
+pre-install:
+.if defined(NOPORTDOCS)
+ ${PERL} -pi -e "s:docs micros examples:micros:g" ${WRKSRC}/Makefile
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+.for info in js.info
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
+.endfor
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/lang/njs/distinfo b/lang/njs/distinfo
new file mode 100644
index 000000000000..07952ce7e84f
--- /dev/null
+++ b/lang/njs/distinfo
@@ -0,0 +1 @@
+MD5 (js-0.2.5.tar.gz) = b299c678e388a170eea09b6e12375152
diff --git a/lang/njs/files/patch-docs_Makefile.in b/lang/njs/files/patch-docs_Makefile.in
new file mode 100644
index 000000000000..bb3425ed5d2f
--- /dev/null
+++ b/lang/njs/files/patch-docs_Makefile.in
@@ -0,0 +1,14 @@
+--- docs/Makefile.in.orig Fri Jan 15 08:40:27 1999
++++ docs/Makefile.in Sun Jan 13 16:07:07 2002
+@@ -219,10 +219,7 @@
+ done
+ @$(POST_INSTALL)
+ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+- for file in $(INFO_DEPS); do \
+- echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
+- install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
+- done; \
++ echo " install-info will be done in POST-INSTALL."; \
+ else : ; fi
+
+ uninstall-info:
diff --git a/lang/njs/pkg-comment b/lang/njs/pkg-comment
new file mode 100644
index 000000000000..d97f1818ddad
--- /dev/null
+++ b/lang/njs/pkg-comment
@@ -0,0 +1 @@
+NJS (NGS) is a standalone JavaScript/ECMAScript interpreter
diff --git a/lang/njs/pkg-descr b/lang/njs/pkg-descr
new file mode 100644
index 000000000000..cac3ee9f7c5d
--- /dev/null
+++ b/lang/njs/pkg-descr
@@ -0,0 +1,7 @@
+NJS is an independent implementation of the JavaScript language developed
+by Netscape and standardized by ECMA. It is designed to be re-entrant,
+extendible, fast, and programmable.
+
+Warning: it is still under development.
+
+WWW: http://www.bbassett.net/njs/
diff --git a/lang/njs/pkg-message b/lang/njs/pkg-message
new file mode 100644
index 000000000000..25b08b319886
--- /dev/null
+++ b/lang/njs/pkg-message
@@ -0,0 +1,5 @@
+*****************************************************************************
+
+ js & jsdas have been installed in %%PREFIX%%/bin.
+
+*****************************************************************************
diff --git a/lang/njs/pkg-plist b/lang/njs/pkg-plist
new file mode 100644
index 000000000000..3657b984fbbd
--- /dev/null
+++ b/lang/njs/pkg-plist
@@ -0,0 +1,11 @@
+bin/js
+bin/jsas
+bin/jsdas
+bin/jswrap
+include/js.h
+include/jsint.h
+include/jsconfig.h
+%%PORTDOCS%%@unexec install-info --delete %D/info/js.info %D/info/dir
+%%PORTDOCS%%info/js.info
+%%PORTDOCS%%@exec install-info %D/info/js.info %D/info/dir
+lib/libjs.a