From b4261b617b46c75e1015ea2042246d7c9087518f Mon Sep 17 00:00:00 2001 From: pvalchev Date: Tue, 22 Oct 2002 22:17:02 +0000 Subject: [PATCH] Import js-0.2.5 The NGS JavaScript interpreter is an independent implementation of the JavaScript language, developed by Netscape et al. This implementation is designed to be re-entrant, extendible, fast, and programmable. Maintainer Jose Nazario --- lang/js/Makefile | 26 +++++++++++++++++++++++++ lang/js/distinfo | 3 +++ lang/js/patches/patch-examples_simple_c | 11 +++++++++++ lang/js/patches/patch-src_getopt_c | 11 +++++++++++ lang/js/patches/patch-src_mrgsort_c | 11 +++++++++++ lang/js/pkg/DESCR | 10 ++++++++++ lang/js/pkg/PLIST | 19 ++++++++++++++++++ 7 files changed, 91 insertions(+) create mode 100644 lang/js/Makefile create mode 100644 lang/js/distinfo create mode 100644 lang/js/patches/patch-examples_simple_c create mode 100644 lang/js/patches/patch-src_getopt_c create mode 100644 lang/js/patches/patch-src_mrgsort_c create mode 100644 lang/js/pkg/DESCR create mode 100644 lang/js/pkg/PLIST diff --git a/lang/js/Makefile b/lang/js/Makefile new file mode 100644 index 00000000000..992a251818d --- /dev/null +++ b/lang/js/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/10/22 22:17:02 pvalchev Exp $ + +COMMENT= "command line JavaScript interpreter" + +DISTNAME= js-0.2.5 +CATEGORIES= lang + +HOMEPAGE= http://people.ssh.fi/mtr/js/ + +MAINTAINER= Jose Nazario + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +USE_GMAKE= Yes +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --prefix="${PREFIX}" + +REGRESS_TARGET= check + +.include diff --git a/lang/js/distinfo b/lang/js/distinfo new file mode 100644 index 00000000000..6cb6c9d0fb3 --- /dev/null +++ b/lang/js/distinfo @@ -0,0 +1,3 @@ +MD5 (js-0.2.5.tar.gz) = b299c678e388a170eea09b6e12375152 +RMD160 (js-0.2.5.tar.gz) = a8d681a2c405a0410cdcf0166ab3e040d2ae65cd +SHA1 (js-0.2.5.tar.gz) = a1a3a33cc350d7f432edc07fc0334ab0cc729247 diff --git a/lang/js/patches/patch-examples_simple_c b/lang/js/patches/patch-examples_simple_c new file mode 100644 index 00000000000..b62f251cea6 --- /dev/null +++ b/lang/js/patches/patch-examples_simple_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-examples_simple_c,v 1.1.1.1 2002/10/22 22:17:02 pvalchev Exp $ +--- examples/simple.c.orig Tue Oct 22 15:43:22 2002 ++++ examples/simple.c Tue Oct 22 15:43:31 2002 +@@ -29,6 +29,7 @@ + + #include + #include ++#include + + #include + diff --git a/lang/js/patches/patch-src_getopt_c b/lang/js/patches/patch-src_getopt_c new file mode 100644 index 00000000000..57d9755d75f --- /dev/null +++ b/lang/js/patches/patch-src_getopt_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_getopt_c,v 1.1.1.1 2002/10/22 22:17:02 pvalchev Exp $ +--- src/getopt.c.orig Tue Oct 22 15:42:40 2002 ++++ src/getopt.c Tue Oct 22 15:42:54 2002 +@@ -43,6 +43,7 @@ + #endif + + #include ++#include + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C diff --git a/lang/js/patches/patch-src_mrgsort_c b/lang/js/patches/patch-src_mrgsort_c new file mode 100644 index 00000000000..fd928d373bf --- /dev/null +++ b/lang/js/patches/patch-src_mrgsort_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_mrgsort_c,v 1.1.1.1 2002/10/22 22:17:02 pvalchev Exp $ +--- src/mrgsort.c.orig Tue Oct 22 15:42:17 2002 ++++ src/mrgsort.c Tue Oct 22 15:42:26 2002 +@@ -29,6 +29,7 @@ + + #include + #include ++#include + #include + + #include "mrgsort.h" diff --git a/lang/js/pkg/DESCR b/lang/js/pkg/DESCR new file mode 100644 index 00000000000..901997c94e9 --- /dev/null +++ b/lang/js/pkg/DESCR @@ -0,0 +1,10 @@ +The NGS JavaScript interpreter is an independent implementation of the +JavaScript language, developed by Netscape et al. This implementation +is designed to be re-entrant, extendible, fast, and programmable. + +This implementation is not 100% compatible with the JavaScript +language, found from the Netscape's WWW browsers and servers. To +achieve the design goals, some shortcuts have been taken in the +implementation, as compared to the Netscape's implementation. + +WWW: ${HOMEPAGE} diff --git a/lang/js/pkg/PLIST b/lang/js/pkg/PLIST new file mode 100644 index 00000000000..d4b75c5f402 --- /dev/null +++ b/lang/js/pkg/PLIST @@ -0,0 +1,19 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/10/22 22:17:02 pvalchev Exp $ +@unexec install-info --delete --info-dir=%D/info %D/info/js.info +bin/js +bin/jsas +bin/jsdas +bin/jswrap +include/js.h +include/jsconfig.h +include/jsint.h +info/js.info +info/js.info-1 +info/js.info-2 +info/js.info-3 +info/js.info-4 +lib/libjs.a +lib/libjs.la +man/man1/js.1 +man/man1/jsdas.1 +@exec install-info --info-dir=%D/info %D/info/js.info