blob: 00ae267d21f130083536f8be82be6ff2cf5cbd0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
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= Implementation of JavaScript written in Java
LICENSE= MPL
ALL_TARGET= jar
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
JAVA_VERSION= 1.6+
LINEDIT_DESC= Enable line editing in the Rhino shell
LINEDIT_RUN_DEPENDS= ${JLINEJAR}:${PORTSDIR}/devel/jline
LINEDIT_USE= java=yes ant=yes
MAKE_ARGS= -Dxmlbeans.url=file://${DISTDIR}/${DIST_SUBDIR}/xmlbeans-2.5.0.zip \
-Dswing-ex-url=file://${DISTDIR}/${DIST_SUBDIR}/src.zip
OPTIONS_DEFAULT= LINEDIT
OPTIONS_DEFINE= LINEDIT
USES= zip
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLINEDIT}
JLINEJAR= ${JAVAJARDIR}/jline.jar
.else
JLINEJAR=""
.endif
RHINOJAR= ${DATADIR}/${PORTNAME}.jar
SUB_FILES= rhinoc rhinodbg rhinosh
SUB_LIST= RHINOJAR=${RHINOJAR} JLINEJAR="${JLINEJAR}"
WRKSRC= ${WRKDIR}/${PORTNAME}${DISTVERSION}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}; \
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}${DISTVERSION}/js.jar ${STAGEDIR}${RHINOJAR}; \
RHINOSCRIPTS="${SUB_FILES}"; \
for RHINOSCRIPT in $${RHINOSCRIPTS}; do \
${INSTALL_SCRIPT} ${WRKDIR}/$${RHINOSCRIPT} ${STAGEDIR}${PREFIX}/bin/; \
done
.include <bsd.port.mk>
|