# $FreeBSD: head/devel/cfr/Makefile 564615 2021-02-07 11:59:53Z 0mp $ PORTNAME= cfr DISTVERSION= 0.151 CATEGORIES= devel java MASTER_SITES= http://www.benf.org/other/cfr/ \ https://www.benf.org/other/cfr/ \ https://github.com/leibnitz27/cfr/releases/download/${DISTVERSION}/ EXTRACT_SUFX= .jar EXTRACT_ONLY= MAINTAINER= 0mp@FreeBSD.org COMMENT= Class File Reader (CFR) Java decompiler # http://www.benf.org/other/cfr/license.html LICENSE= MIT USE_JAVA= yes JAVA_RUN= jre NO_ARCH= yes NO_BUILD= yes PLIST_FILES= ${JAVAJARDIR}/cfr.jar _JARFILE= ${PORTNAME}.jar do-install: ${INSTALL_DATA} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \ ${STAGEDIR}${JAVAJARDIR}/${_JARFILE} do-test: # Find out if the decompiler works. ${JAVA} -jar ${STAGEDIR}${JAVAJARDIR}/${_JARFILE} \ ${STAGEDIR}${JAVAJARDIR}/${_JARFILE} >/dev/null .include