From owner-svn-ports-head@freebsd.org Wed Apr 17 10:47:16 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF928158D6BB; Wed, 17 Apr 2019 10:47:15 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9010D72C5D; Wed, 17 Apr 2019 10:47:15 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6967660C7; Wed, 17 Apr 2019 10:47:15 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3HAlFZ2086859; Wed, 17 Apr 2019 10:47:15 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3HAlEP5086855; Wed, 17 Apr 2019 10:47:14 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201904171047.x3HAlEP5086855@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Wed, 17 Apr 2019 10:47:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499169 - in head/devel: . cfr X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/devel: . cfr X-SVN-Commit-Revision: 499169 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 9010D72C5D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.965,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Apr 2019 10:47:16 -0000 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 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/