freebsd-ports/java/jflex/Makefile
Edmondas Girkantas 11a679a486 */*: Return to pool as per maintainer's request
Thanks to Edmondas Girkantas for his dedication to ports tree.

PR:		273815
2023-09-16 03:27:19 +09:00

41 lines
1.3 KiB
Makefile

PORTNAME= jflex
PORTVERSION= 1.8.1
CATEGORIES= java devel
MASTER_SITES= https://github.com/jflex-de/jflex/releases/download/v${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast Lexical Analyser Generator for Java[tm]
WWW= https://www.jflex.de/
LICENSE= BSD3CLAUSE
USE_JAVA= yes
#
# JFlex has two build options --- Maven and Bazel --- and neither of
# them are easy within the Ports tree framework. If you *really* want
# to build it from source, grab the distfile (which includes the source)
# or the entire repo, and have fun! -- ~jashankj, 2020-04-08
#
NO_BUILD= yes
OPTIONS_DEFINE= DOCS EXAMPLES
SUB_FILES= jflex.sh
SUB_LIST+= PORTVERSION=${PORTVERSION}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${STAGEDIR}${PREFIX}/bin/jflex
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-full-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
${LN} -s ${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name \.* ")
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name \.*")
.include <bsd.port.mk>