PORTNAME=	antlr3
PORTVERSION=	3.5.2
PORTREVISION=	1
CATEGORIES=	devel java
MASTER_SITES=	http://www.antlr3.org/download/
DISTNAME=	antlr-${PORTVERSION}-complete
EXTRACT_SUFX=	.jar
EXTRACT_ONLY=

MAINTAINER=	takumiiinn@gmail.com
COMMENT=	ANother Tool for Language Recognition
WWW=		https://www.antlr3.org/

LICENSE=	BSD3CLAUSE

USES=		java

NO_BUILD=	yes
NO_ARCH=	yes
INSTALL_JAR=	${DISTFILES}
SUB_LIST=	INSTALL_JAR=${INSTALL_JAR}
SUB_FILES=	antlr.sh
PLIST_FILES=	bin/${PORTNAME} \
		${JAVAJARDIR}/${INSTALL_JAR}

do-install:
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${JAVAJARDIR}/${INSTALL_JAR}
	${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
