Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2019 10:47:14 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r499169 - in head/devel: . cfr
Message-ID:  <201904171047.x3HAlEP5086855@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Wed Apr 17 10:47:14 2019
New Revision: 499169
URL: https://svnweb.freebsd.org/changeset/ports/499169

Log:
  New port: devel/cfr: Class File Reader (CFR) Java decompiler
  
  CFR will decompile modern Java features - up to and including much of Java
  9, 10, 12 and beyond, but is written entirely in Java 6, so will work
  anywhere!
  
  It'll even make a decent go of turning class files from other JVM langauges
  (like Kotlin) back into Java!
  
  To use, simply run the specific version jar, with the class name(s) you
  want to decompile (either as a path to a class file, or as a fully
  qualified classname on your classpath).
  
  Alternately, to decompile an entire jar, simply provide the jar path,
  and if you want to emit files (which you probably do!)
  add --outputdir /tmp/putithere.
  
  WWW: https://www.benf.org/other/cfr/

Added:
  head/devel/cfr/
  head/devel/cfr/Makefile   (contents, props changed)
  head/devel/cfr/distinfo   (contents, props changed)
  head/devel/cfr/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Apr 17 10:36:47 2019	(r499168)
+++ head/devel/Makefile	Wed Apr 17 10:47:14 2019	(r499169)
@@ -286,6 +286,7 @@
     SUBDIR += cervisia
     SUBDIR += cflow
     SUBDIR += cflow2vcg
+    SUBDIR += cfr
     SUBDIR += cgdb
     SUBDIR += cgilib
     SUBDIR += cgit

Added: head/devel/cfr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cfr/Makefile	Wed Apr 17 10:47:14 2019	(r499169)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	cfr
+DISTVERSION=	0.143
+CATEGORIES=	devel java
+MASTER_SITES=	https://www.benf.org/other/cfr/ \
+		http://www.benf.org/other/cfr/
+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>

Added: head/devel/cfr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cfr/distinfo	Wed Apr 17 10:47:14 2019	(r499169)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1555418922
+SHA256 (cfr-0.143.jar) = df4b0ae1be0bc9b89841ffade7e00dd443729c2974df3af902336fd5d3592a89
+SIZE (cfr-0.143.jar) = 1709025

Added: head/devel/cfr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cfr/pkg-descr	Wed Apr 17 10:47:14 2019	(r499169)
@@ -0,0 +1,14 @@
+CFR will decompile modern Java features - up to and including much of Java 9,
+10, 12 and beyond, but is written entirely in Java 6, so will work anywhere!
+
+It'll even make a decent go of turning class files from other JVM
+langauges (like Kotlin) back into Java!
+
+To use, simply run the specific version jar, with the class name(s) you want to
+decompile (either as a path to a class file, or as a fully qualified classname
+on your classpath). (Use --help to list arguments).
+
+Alternately, to decompile an entire jar, simply provide the jar path, and if
+you want to emit files (which you probably do!) add --outputdir /tmp/putithere.
+
+WWW: https://www.benf.org/other/cfr/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904171047.x3HAlEP5086855>