mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 18:06:27 -04:00
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
41 lines
1.3 KiB
Makefile
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
|
|
|
|
USES= java
|
|
|
|
#
|
|
# 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>
|