aboutsummaryrefslogtreecommitdiff
path: root/lang/bsh
diff options
context:
space:
mode:
authorFelippe de Meirelles Motta <lippe@FreeBSD.org>2008-06-23 00:45:15 +0000
committerFelippe de Meirelles Motta <lippe@FreeBSD.org>2008-06-23 00:45:15 +0000
commitd461abc2dfa132ad8a9dcf6fc9579522973cc392 (patch)
treee2d9e6dcc644701b727f07aaf7b5e2881f1470ae /lang/bsh
parent498bd654e9644d0bcc49cac51ad947dd8eb99be7 (diff)
downloadports-d461abc2dfa132ad8a9dcf6fc9579522973cc392.tar.gz
ports-d461abc2dfa132ad8a9dcf6fc9579522973cc392.zip
Notes
Diffstat (limited to 'lang/bsh')
-rw-r--r--lang/bsh/Makefile26
-rw-r--r--lang/bsh/files/bsh.sh.in2
-rw-r--r--lang/bsh/pkg-descr10
3 files changed, 22 insertions, 16 deletions
diff --git a/lang/bsh/Makefile b/lang/bsh/Makefile
index 6f206a514180..df55283ec087 100644
--- a/lang/bsh/Makefile
+++ b/lang/bsh/Makefile
@@ -7,25 +7,33 @@
PORTNAME= bsh
PORTVERSION= 2.0.b4
-PORTREVISION= 2
-CATEGORIES= java
+PORTREVISION= 3
+CATEGORIES= lang java
MASTER_SITES= http://www.beanshell.org/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/b/}
EXTRACT_SUFX= .jar
EXTRACT_ONLY=
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A Java scripting environment
+MAINTAINER= simon@olofsson.de
+COMMENT= A Java scripting language
-PLIST_FILES= %%JAVAJARDIR%%/bsh.jar bin/bsh
USE_JAVA= yes
JAVA_VERSION= 1.2+
NO_BUILD= yes
-SUB_FILES= bsh.sh
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+SUB_FILES= ${PORTNAME}.sh
+SUB_LIST= JARNAME=${PORTNAME}.jar
+
+PLIST_FILES= %%DATADIR%%/${PORTNAME}.jar \
+ bin/${PORTNAME}
+PLIST_DIRS= %%DATADIR%%
do-install:
- ${MKDIR} ${JAVALIBDIR}
- ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${JAVAJARDIR}/bsh.jar
- ${INSTALL_SCRIPT} ${WRKDIR}/bsh.sh ${PREFIX}/bin/bsh
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
+ ${DATADIR}/${PORTNAME}.jar
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/lang/bsh/files/bsh.sh.in b/lang/bsh/files/bsh.sh.in
index ba83bc6e545d..36ba1108ccd4 100644
--- a/lang/bsh/files/bsh.sh.in
+++ b/lang/bsh/files/bsh.sh.in
@@ -2,4 +2,4 @@
#
# $FreeBSD$
-JAVA_VERSION=1.2+ "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/bsh.jar" "$@"
+JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/%%JARNAME%%" "$@"
diff --git a/lang/bsh/pkg-descr b/lang/bsh/pkg-descr
index 382f718980d4..c915410cd570 100644
--- a/lang/bsh/pkg-descr
+++ b/lang/bsh/pkg-descr
@@ -1,8 +1,6 @@
-BeanShell is a small, free, embeddable, Java source interpreter with
-object scripting language features, written in Java. BeanShell
-executes standard Java statements and expressions, in addition to
-obvious scripting commands and syntax. BeanShell supports scripted
-objects as simple method closures like those in Perl and
-JavaScript(tm).
+BeanShell is a small, free, embeddable Java source interpreter with object
+scripting language features, written in Java. BeanShell dynamically executes
+standard Java syntax and extends it with common scripting conveniences such as
+loose types, commands, and method closures like those in Perl and JavaScript.
WWW: http://www.beanshell.org/