head	1.9;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.2;
locks; strict;
comment	@# @;


1.9
date	2013.03.07.12.45.57;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.12.10.13.24.59;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.11.17.05.58.56;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.07.05.21.45.00;	author nivit;	state Exp;
branches;
next	1.5;

1.5
date	2011.08.08.14.05.10;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2009.05.30.07.41.06;	author nivit;	state Exp;
branches;
next	1.3;

1.3
date	2008.06.06.13.41.13;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2008.04.18.16.45.26;	author nivit;	state Exp;
branches;
next	1.1;

1.1
date	2008.01.27.23.10.44;	author nivit;	state Exp;
branches;
next	;


desc
@@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313526
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Nicola Vitale	<nivit@@FreeBSD.org>
# $FreeBSD: head/lang/rhino/Makefile 313526 2013-03-06 16:15:30Z nivit $

PORTNAME=	rhino
DISTVERSION=	1_7R4
CATEGORIES=	lang java
MASTER_SITES=	http://cloud.github.com/downloads/mozilla/rhino/:rhino \
		LOCAL/nivit/${PORTNAME}/:swingex \
		${MASTER_SITE_APACHE}:xmlbeans
MASTER_SITE_SUBDIR=	xmlbeans/binaries/:xmlbeans
DISTFILES=	${PORTNAME}${DISTVERSION}.zip:rhino \
		src.zip:swingex \
		xmlbeans-2.5.0.zip:xmlbeans
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	${PORTNAME}${DISTVERSION}.zip

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	An implementation of JavaScript written in Java

LICENSE=	MPL

ALL_TARGET=	jar

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

JAVA_VERSION=	1.6+

MAKE_ARGS=	-Dxmlbeans.url=file://${DISTDIR}/${DIST_SUBDIR}/xmlbeans-2.5.0.zip \
		-Dswing-ex-url=file://${DISTDIR}/${DIST_SUBDIR}/src.zip

OPTIONS_DEFINE=	LINEDIT
LINEDIT_DESC=	Enable line editing in the Rhino shell

OPTIONS_DEFAULT=	LINEDIT

.include <bsd.port.options.mk>

RHINOJAR=	${DATADIR}/${PORTNAME}.jar

SUB_FILES=	rhinoc rhinodbg rhinosh
SUB_LIST=	RHINOJAR=${RHINOJAR} JLINEJAR="${JLINEJAR}"

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 <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MLINEDIT}
JLINEJAR=	${JAVAJARDIR}/jline.jar
RUN_DEPENDS+=	${JLINEJAR}:${PORTSDIR}/devel/jline
.else
JLINEJAR=""
.endif

.include <bsd.port.post.mk>
@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308604
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308604 | bapt | 2012-12-10 13:18:28 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part2)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/rhino/Makefile 308604 2012-12-10 13:18:28Z bapt $
d8 1
a8 1
		http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/:swingex \
@


1.7
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	rhino
# Date created:		2008-01-26
# Whom:			Nicola Vitale	<nivit@@FreeBSD.org>
#
# $FreeBSD: head/lang/rhino/Makefile 300896 2012-07-14 13:54:48Z beat $
#
d26 1
a26 1
JAVA_VERSION=	1.5+
@


1.6
log
@- Update to 1.7.r4
- Remove files/patch-xmlimplsrc+build.xml
- Convert to the new options framework
- Update MASTER_SITES
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.5
log
@- Update to 1_7R3 and update xmlbeans to 2.5.0

PR:		ports/158438
Submitted by:	Pedro Giffuni <giffunip@@tutopia.com>
Approved by:	maintainer timeout (nivit; 1 month)
@
text
@d9 1
a9 1
DISTVERSION=	1_7R3
d11 1
a11 1
MASTER_SITES=	ftp://ftp.mozilla.org/pub/mozilla.org/js/:rhino \
d13 1
a13 1
		http://www.apache.org/dist/xmlbeans/binaries/:xmlbeans
a25 2
OPTIONS=	LINEDIT	"Enable line editing in the Rhino shell" on

d35 7
d45 1
a45 1
SUB_LIST=	RHINOJAR=${RHINOJAR} JLINEJAR=":${JLINEJAR}"
d63 1
a63 1
.if defined(WITH_LINEDIT)
@


1.4
log
@- Update to 1.7.r2
- Add an option to enable line editing in the Rhino shell
- Fix download site for xmlbeans
@
text
@d9 1
a9 3
DISTVERSION=	1_7R2
PORTREVISION=	0
#PORTEPOCH=	0
d17 1
a17 1
		xmlbeans-2.2.0.zip:xmlbeans
d24 2
d34 1
a34 1
MAKE_ARGS=	-Dxmlbeans.url=file://${DISTDIR}/${DIST_SUBDIR}/xmlbeans-2.2.0.zip \
@


1.3
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d9 2
a10 2
DISTVERSION=	1_7R1
#PORTREVISION=	0
a11 1
PORTREVISION=	1
d15 1
a15 1
		${MASTER_SITE_APACHE}:xmlbeans
d26 2
d40 1
a40 1
SUB_LIST=	RHINOJAR=${RHINOJAR}
d56 10
a65 1
.include <bsd.port.mk>
@


1.2
log
@- Update to 1.7.r1
- Increment JAVA_VERSION (1.5+)
@
text
@d12 1
@


1.1
log
@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/
@
text
@d9 1
a9 1
DISTVERSION=	1_6R7
d30 1
a30 1
JAVA_VERSION=	1.4+
@

