PORTNAME=	bsh
DISTVERSION=	2.1.1
PORTREVISION=	4
CATEGORIES=	lang java

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Beanshell java scripting language
WWW=		http://www.beanshell.org/

LICENSE=	APACHE20

USES=		java:ant,run
USE_GITHUB=	yes
GH_ACCOUNT=	beanshell
GH_PROJECT=	beanshell

CONFLICTS_INSTALL=	schilyutils # bin/bsh

ALL_TARGET=	jarall

SUB_FILES=	${PORTNAME}.sh
SUB_LIST=	JARNAME=${PORTNAME}.jar

PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}.jar \
		bin/${PORTNAME}

do-install:
	${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${DISTVERSION}.jar \
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
