- Update to 1.7.r2

- Add an option to enable line editing in the Rhino shell
- Fix download site for xmlbeans
This commit is contained in:
Nicola Vitale 2009-05-30 07:41:06 +00:00
parent 372eb252ae
commit 860735b7ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234822
3 changed files with 20 additions and 10 deletions

View file

@ -6,14 +6,13 @@
#
PORTNAME= rhino
DISTVERSION= 1_7R1
#PORTREVISION= 0
DISTVERSION= 1_7R2
PORTREVISION= 0
#PORTEPOCH= 0
PORTREVISION= 1
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
http://www.apache.org/dist/xmlbeans/binaries/:xmlbeans
MASTER_SITE_SUBDIR= xmlbeans/binaries/:xmlbeans
DISTFILES= ${PORTNAME}${DISTVERSION}.zip:rhino \
src.zip:swingex \
@ -24,6 +23,8 @@ EXTRACT_ONLY= ${PORTNAME}${DISTVERSION}.zip
MAINTAINER= nivit@FreeBSD.org
COMMENT= An implementation of JavaScript written in Java
OPTIONS= LINEDIT "Enable line editing in the Rhino shell" on
ALL_TARGET= jar
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
@ -36,7 +37,7 @@ MAKE_ARGS= -Dxmlbeans.url=file://${DISTDIR}/${DIST_SUBDIR}/xmlbeans-2.2.0.zip \
RHINOJAR= ${DATADIR}/${PORTNAME}.jar
SUB_FILES= rhinoc rhinodbg rhinosh
SUB_LIST= RHINOJAR=${RHINOJAR}
SUB_LIST= RHINOJAR=${RHINOJAR} JLINEJAR=":${JLINEJAR}"
USE_ANT= yes
USE_JAVA= yes
@ -52,4 +53,13 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/$${RHINOSCRIPT} ${PREFIX}/bin/; \
done
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if defined(WITH_LINEDIT)
JLINEJAR= ${JAVAJARDIR}/jline.jar
RUN_DEPENDS+= ${JLINEJAR}:${PORTSDIR}/devel/jline
.else
JLINEJAR=""
.endif
.include <bsd.port.post.mk>

View file

@ -1,6 +1,6 @@
MD5 (rhino/rhino1_7R1.zip) = 613eed8201d37be201805e5048ebb0c3
SHA256 (rhino/rhino1_7R1.zip) = 084e250d2392369b2548b663e61bcf128baecb2f527e381e9ba89f0148db2c0d
SIZE (rhino/rhino1_7R1.zip) = 2668726
MD5 (rhino/rhino1_7R2.zip) = 40d0a9abec8169e42920214b37fa8e0e
SHA256 (rhino/rhino1_7R2.zip) = 677f7dc1b67a1587bc03974d5f0720474a56b8f29835e1d860739908df8462dc
SIZE (rhino/rhino1_7R2.zip) = 2996867
MD5 (rhino/src.zip) = ab016c8f81812bb930fc0f7a69e053c5
SHA256 (rhino/src.zip) = 062837ddb18951ace41ba0050aec95a690c00190a6218e5c9591c381035dfa7d
SIZE (rhino/src.zip) = 19708

View file

@ -3,4 +3,4 @@
# $FreeBSD$
#
# Rhino shell
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%RHINOJAR%%" org.mozilla.javascript.tools.shell.Main $@
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -cp "%%RHINOJAR%%%%JLINEJAR%%" org.mozilla.javascript.tools.shell.Main $@