From f5b199079acb833411bfa49e8beec1fccbc8d336 Mon Sep 17 00:00:00 2001 From: nivit Date: Sun, 27 Jan 2008 23:10:45 +0000 Subject: Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. Rhino is an implementation of the core language only and doesn't contain objects or methods for manipulating HTML documents. Rhino contains * All the features of JavaScript 1.6 * Allows direct scripting of Java * A JavaScript shell for executing JavaScript scripts * A JavaScript compiler to transform JavaScript source files into Java class files * A JavaScript debugger for scripts executed with Rhino WWW: http://www.mozilla.org/rhino/ --- lang/rhino/Makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++ lang/rhino/distinfo | 9 ++++++++ lang/rhino/files/rhinoc.in | 6 +++++ lang/rhino/files/rhinodbg.in | 6 +++++ lang/rhino/files/rhinosh.in | 6 +++++ lang/rhino/pkg-descr | 17 ++++++++++++++ lang/rhino/pkg-plist | 6 +++++ 7 files changed, 104 insertions(+) create mode 100644 lang/rhino/Makefile create mode 100644 lang/rhino/distinfo create mode 100644 lang/rhino/files/rhinoc.in create mode 100644 lang/rhino/files/rhinodbg.in create mode 100644 lang/rhino/files/rhinosh.in create mode 100644 lang/rhino/pkg-descr create mode 100644 lang/rhino/pkg-plist (limited to 'lang/rhino') diff --git a/lang/rhino/Makefile b/lang/rhino/Makefile new file mode 100644 index 000000000000..c461be908faa --- /dev/null +++ b/lang/rhino/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: rhino +# Date created: 2008-01-26 +# Whom: Nicola Vitale +# +# $FreeBSD$ +# + +PORTNAME= rhino +DISTVERSION= 1_6R7 +#PORTREVISION= 0 +#PORTEPOCH= 0 +CATEGORIES= lang java +MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/js/:rhino \ + http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/:swingex \ + ${MASTER_SITE_APACHE}:xmlbeans +MASTER_SITE_SUBDIR= xmlbeans/binaries/:xmlbeans +DISTFILES= ${PORTNAME}${DISTVERSION}.zip:rhino \ + src.zip:swingex \ + xmlbeans-2.2.0.zip:xmlbeans +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME}${DISTVERSION}.zip + +MAINTAINER= nivit@FreeBSD.org +COMMENT= An implementation of JavaScript written in Java + +ALL_TARGET= jar + +DATADIR= ${JAVASHAREDIR}/${PORTNAME} + +JAVA_VERSION= 1.4+ + +MAKE_ARGS= -Dxmlbeans.url=file://${DISTDIR}/${DIST_SUBDIR}/xmlbeans-2.2.0.zip \ + -Dswing-ex-url=file://${DISTDIR}/${DIST_SUBDIR}/src.zip + +RHINOJAR= ${DATADIR}/${PORTNAME}.jar + +SUB_FILES= rhinoc rhinodbg rhinosh +SUB_LIST= RHINOJAR=${RHINOJAR} + +USE_ANT= yes +USE_JAVA= yes +USE_ZIP= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}${DISTVERSION} + +do-install: + @${MKDIR} ${DATADIR}; \ + ${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}${DISTVERSION}/js.jar ${RHINOJAR}; \ + RHINOSCRIPTS="${SUB_FILES}"; \ + for RHINOSCRIPT in $${RHINOSCRIPTS}; do \ + ${INSTALL_SCRIPT} ${WRKDIR}/$${RHINOSCRIPT} ${PREFIX}/bin/; \ + done + +.include diff --git a/lang/rhino/distinfo b/lang/rhino/distinfo new file mode 100644 index 000000000000..283b55840bf4 --- /dev/null +++ b/lang/rhino/distinfo @@ -0,0 +1,9 @@ +MD5 (rhino/rhino1_6R7.zip) = 7be259ae496aae78feaafe7099e09897 +SHA256 (rhino/rhino1_6R7.zip) = c94c6de3a29b3acbc4eee732e688f75a5d94bd02c9878be4ceb4d3cd220f3866 +SIZE (rhino/rhino1_6R7.zip) = 1753170 +MD5 (rhino/src.zip) = ab016c8f81812bb930fc0f7a69e053c5 +SHA256 (rhino/src.zip) = 062837ddb18951ace41ba0050aec95a690c00190a6218e5c9591c381035dfa7d +SIZE (rhino/src.zip) = 19708 +MD5 (rhino/xmlbeans-2.2.0.zip) = f279d25e2dccbb524e406543c38b4aae +SHA256 (rhino/xmlbeans-2.2.0.zip) = 93632a33292340898015074156cfc2904794c26f310cc9cbe7a00524534360dd +SIZE (rhino/xmlbeans-2.2.0.zip) = 3720924 diff --git a/lang/rhino/files/rhinoc.in b/lang/rhino/files/rhinoc.in new file mode 100644 index 000000000000..ebbde1a376a1 --- /dev/null +++ b/lang/rhino/files/rhinoc.in @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Rhino compiler +JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%RHINOJAR%%" org.mozilla.javascript.tools.jsc.Main $@ diff --git a/lang/rhino/files/rhinodbg.in b/lang/rhino/files/rhinodbg.in new file mode 100644 index 000000000000..faa68d569f19 --- /dev/null +++ b/lang/rhino/files/rhinodbg.in @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Rhino debugger +JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%RHINOJAR%%" org.mozilla.javascript.tools.debugger.Main $@ diff --git a/lang/rhino/files/rhinosh.in b/lang/rhino/files/rhinosh.in new file mode 100644 index 000000000000..394ab74473e3 --- /dev/null +++ b/lang/rhino/files/rhinosh.in @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Rhino shell +JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%RHINOJAR%%" org.mozilla.javascript.tools.shell.Main $@ diff --git a/lang/rhino/pkg-descr b/lang/rhino/pkg-descr new file mode 100644 index 000000000000..6310e14d3a64 --- /dev/null +++ b/lang/rhino/pkg-descr @@ -0,0 +1,17 @@ +Rhino is an open-source implementation of JavaScript written entirely +in Java. It is typically embedded into Java applications to provide +scripting to end users. + +Rhino is an implementation of the core language only and doesn't contain +objects or methods for manipulating HTML documents. + +Rhino contains + + * All the features of JavaScript 1.6 + * Allows direct scripting of Java + * A JavaScript shell for executing JavaScript scripts + * A JavaScript compiler to transform JavaScript source files + into Java class files + * A JavaScript debugger for scripts executed with Rhino + +WWW: http://www.mozilla.org/rhino/ diff --git a/lang/rhino/pkg-plist b/lang/rhino/pkg-plist new file mode 100644 index 000000000000..41b8d5e2849e --- /dev/null +++ b/lang/rhino/pkg-plist @@ -0,0 +1,6 @@ +@comment $FreeBSD$ +bin/rhinoc +bin/rhinodbg +bin/rhinosh +%%DATADIR%%/rhino.jar +@dirrm %%DATADIR%% -- cgit