freebsd-ports/devel/jline/Makefile
Rodrigo Osorio 06df180a9e */*: Update WWW to use HTTPS for sourceforge.net projects
Homepage link is permanent redirected to its HTTPS counterpart
Issue reported by repology : https://repology.org/repository/freebsd/problems

Approved by:	portmgr (blanket)
PR:		274888
2023-11-06 11:03:47 +01:00

42 lines
1.1 KiB
Makefile

PORTNAME= jline
PORTVERSION= 0.9.94
CATEGORIES= devel java
MASTER_SITES= SF
MAINTAINER= mkamm@gmx.net
COMMENT= Java library for handling console input
WWW= https://jline.sourceforge.net/
LICENSE= BSD4CLAUSE
USES= zip
USE_JAVA= yes
OPTIONS_DEFINE= JLINEPATCH DOCS
JLINEPATCH_DESC= Allow ConsoleRunner customized completion
JLINEJAR= ${WRKSRC}/jline-${PORTVERSION}.jar
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
# Update jar archive with patched jline.ConsoleRunner class.
do-build:
.if ${PORT_OPTIONS:MJLINEPATCH}
${JAVAC} -classpath ${JLINEJAR} \
${WRKSRC}/src/src/main/java/jline/ConsoleRunner.java
${JAR} uvf ${JLINEJAR} -C ${WRKSRC}/src/src/main/java \
jline/ConsoleRunner.class
.endif
do-install:
${INSTALL_DATA} ${JLINEJAR} ${STAGEDIR}${JAVAJARDIR}
${LN} -nfs jline-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/jline.jar
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/apidocs ${WRKSRC}/examples ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/JLineCompleter.py ${STAGEDIR}${DOCSDIR}/examples
${INSTALL_DATA} ${FILESDIR}/jython.sh ${STAGEDIR}${DOCSDIR}/examples
.endif
.include <bsd.port.mk>