blob: f0c239cffc8860e37d08beade2e772371a145eb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
PORTNAME= jflex
PORTVERSION= 1.8.1
CATEGORIES= java devel
MASTER_SITES= https://github.com/jflex-de/jflex/releases/download/v${PORTVERSION}/
MAINTAINER= eg@fbsd.lt
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>
|