summaryrefslogtreecommitdiff
path: root/devel/cfr/Makefile
blob: 55560ad351c4fb92f797b5031379b6c4999ad845 (plain)
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

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>