mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
cf118ccf87
Reported by: lwhsu
35 lines
781 B
Makefile
35 lines
781 B
Makefile
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 <bsd.port.mk>
|