Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2008 00:25:09 +0100
From:      "Simon Olofsson" <simon@olofsson.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/122210: [PATCH] lang/bsh: change main category, take maintainership
Message-ID:  <20080328222822.8E6F535E716@mail-in-06.arcor-online.net>
Resent-Message-ID: <200803282230.m2SMU0c3024991@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122210
>Category:       ports
>Synopsis:       [PATCH] lang/bsh: change main category, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 28 22:30:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Simon Olofsson
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD ports.olofsson.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
>Description:
Set main category to lang. Please repocopy.

Changes:
- Take maintainership
- Update comment and distinfo
- Use exec in startup script
- Adopt best practices for Java ports as described in section 6.10.3 of the Porter's Handbook

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- bsh-2.0.b4_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/bsh/Makefile /usr/home/simon/ports/lang/bsh/Makefile
--- /usr/ports/lang/bsh/Makefile	2008-03-29 00:05:43.000000000 +0100
+++ /usr/home/simon/ports/lang/bsh/Makefile	2008-03-29 00:08:19.000000000 +0100
@@ -8,24 +8,32 @@
 PORTNAME=	bsh
 PORTVERSION=	2.0.b4
 PORTREVISION=	1
-CATEGORIES=	java
+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 -ruN --exclude=CVS /usr/ports/lang/bsh/files/bsh.sh.in /usr/home/simon/ports/lang/bsh/files/bsh.sh.in
--- /usr/ports/lang/bsh/files/bsh.sh.in	2008-03-29 00:05:43.000000000 +0100
+++ /usr/home/simon/ports/lang/bsh/files/bsh.sh.in	2008-03-28 23:50:40.000000000 +0100
@@ -2,4 +2,4 @@
 #
 # $FreeBSD: ports/java/bsh/files/bsh.sh.in,v 1.2 2005/09/20 19:36:48 glewis Exp $
 
-JAVA_VERSION=1.2+ "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/bsh.jar" "$@"
+JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/%%JARNAME%%" "$@"
diff -ruN --exclude=CVS /usr/ports/lang/bsh/pkg-descr /usr/home/simon/ports/lang/bsh/pkg-descr
--- /usr/ports/lang/bsh/pkg-descr	2008-03-29 00:05:43.000000000 +0100
+++ /usr/home/simon/ports/lang/bsh/pkg-descr	2008-03-28 22:28:40.000000000 +0100
@@ -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/
--- bsh-2.0.b4_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080328222822.8E6F535E716>