Received: by mail.netbsd.org (Postfix, from userid 605) id 9F75284D8E; Wed, 4 Apr 2018 16:07:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9D7D284D57 for ; Wed, 4 Apr 2018 16:07:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id VGsR0i1jPF2K for ; Wed, 4 Apr 2018 16:07:21 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id CD64E84CCE for ; Wed, 4 Apr 2018 16:07:21 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C5148FBEC; Wed, 4 Apr 2018 16:07:21 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1522858041247090" MIME-Version: 1.0 Date: Wed, 4 Apr 2018 16:07:21 +0000 From: "Masatake Daimon" Subject: CVS commit: pkgsrc/devel/cfr To: pkgsrc-changes@NetBSD.org Reply-To: pho@netbsd.org X-Mailer: log_accum Message-Id: <20180404160721.C5148FBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1522858041247090 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: pho Date: Wed Apr 4 16:07:21 UTC 2018 Added Files: pkgsrc/devel/cfr: DESCR Makefile PLIST distinfo Log Message: devel/cfr: Import version 0.125 CFR is a Java decompiler supporting modern language features. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/cfr/DESCR pkgsrc/devel/cfr/Makefile \ pkgsrc/devel/cfr/PLIST pkgsrc/devel/cfr/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1522858041247090 Content-Disposition: inline Content-Length: 2858 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/devel/cfr/DESCR diff -u /dev/null pkgsrc/devel/cfr/DESCR:1.1 --- /dev/null Wed Apr 4 16:07:21 2018 +++ pkgsrc/devel/cfr/DESCR Wed Apr 4 16:07:21 2018 @@ -0,0 +1,12 @@ +CFR will decompile modern Java features - Java 8 lambdas (pre and post +Java beta 103 changes), Java 7 String switches etc, but is written +entirely in Java 6. (FAQ) + +To use, simply run the cfr command, with the class name you want to +decompile (either as a path to a class file, or as a fully qualified +classname on your classpath), and optionally the method name. (--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 Index: pkgsrc/devel/cfr/Makefile diff -u /dev/null pkgsrc/devel/cfr/Makefile:1.1 --- /dev/null Wed Apr 4 16:07:21 2018 +++ pkgsrc/devel/cfr/Makefile Wed Apr 4 16:07:21 2018 @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2018/04/04 16:07:21 pho Exp $ + +DISTNAME= cfr_0_125 +PKGNAME= ${DISTNAME:S/_/-/:S/_/./g} +CATEGORIES= devel +MASTER_SITES= http://www.benf.org/other/cfr/ +EXTRACT_SUFX= .jar + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.benf.org/other/cfr/ +COMMENT= Another java decompiler +LICENSE= mit + +NO_CONFIGURE= yes +USE_JAVA= run +USE_JAVA2= 6 +WRKSRC= ${WRKDIR} +EXTRACT_CMD= ${CP} -f "$$extract_file" "${WRKSRC}" + +LIBDIR= lib/java/cfr +INSTALLATION_DIRS= bin ${LIBDIR} + +# CFR tends to consume a huge amount of memory: +# -Xmx maximum Java heap size +JVM_ARGS= -Xmx4G + +do-build: + ${PRINTF} '#!%s\nexec "%s" %s -jar "%s" "$$@"\n' \ + "${SH}" \ + "${JAVA_BINPREFIX}-java" \ + "${JVM_ARGS}" \ + "${PREFIX}/${LIBDIR}/${DISTNAME}${EXTRACT_SUFX}" \ + > "${WRKSRC}/cfr" + +do-install: + ${INSTALL_SCRIPT} "${WRKSRC}/cfr" "${DESTDIR}${PREFIX}/bin" + ${INSTALL_DATA} "${WRKSRC}/${DISTNAME}${EXTRACT_SUFX}" "${DESTDIR}${PREFIX}/${LIBDIR}" + +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/devel/cfr/PLIST diff -u /dev/null pkgsrc/devel/cfr/PLIST:1.1 --- /dev/null Wed Apr 4 16:07:21 2018 +++ pkgsrc/devel/cfr/PLIST Wed Apr 4 16:07:21 2018 @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2018/04/04 16:07:21 pho Exp $ +bin/cfr +lib/java/cfr/cfr_0_125.jar Index: pkgsrc/devel/cfr/distinfo diff -u /dev/null pkgsrc/devel/cfr/distinfo:1.1 --- /dev/null Wed Apr 4 16:07:21 2018 +++ pkgsrc/devel/cfr/distinfo Wed Apr 4 16:07:21 2018 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/04/04 16:07:21 pho Exp $ + +SHA1 (cfr_0_125.jar) = 25bef77dfac40ef69e5395ea4e721788e532d219 +RMD160 (cfr_0_125.jar) = 6658ffa2401123a6d02d1ffc3ec4c5b4c3c81ad7 +SHA512 (cfr_0_125.jar) = e00203568f3a09b69d77b559753d8d714b413291d81f2a7acfdad0dddd254da62813e4008ed81574d2a47549757228317d593529d3b785b7c6c4c1da66182be0 +Size (cfr_0_125.jar) = 1565730 bytes --_----------=_1522858041247090--