pkgsrc/devel/jflex/Makefile
rillig 9637f7852e all: migrate homepages from http to https
pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
2020-01-26 17:30:40 +00:00

30 lines
888 B
Makefile

# $NetBSD: Makefile,v 1.8 2020/01/26 17:30:58 rillig Exp $
#
DISTNAME= jflex-1.6.0
CATEGORIES= devel
MASTER_SITES= http://jflex.de/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://jflex.de/
COMMENT= Fast lexical analyzer generator for Java
USE_LANGUAGES= # none
USE_JAVA= run
USE_TOOLS+= pax
INSTALLATION_DIRS= bin lib/java share/doc/jflex share/examples/jflex
do-build:
printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/lib/java/${DISTNAME}.jar \"\$$@\"\\n" > ${WRKSRC}/jflex.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/jflex.sh ${DESTDIR}${PREFIX}/bin/jflex
${INSTALL_DATA} ${WRKSRC}/lib/${DISTNAME}.jar \
${DESTDIR}${PREFIX}/lib/java/
cd ${WRKSRC}/doc && pax -wr -pm * ${DESTDIR}${PREFIX}/share/doc/jflex
cd ${WRKSRC}/examples && pax -wr -pm * \
${DESTDIR}${PREFIX}/share/examples/jflex
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"