pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/cfr devel/cfr: Import version 0.125
details: https://anonhg.NetBSD.org/pkgsrc/rev/ec4be02b55dd
branches: trunk
changeset: 378268:ec4be02b55dd
user: pho <pho%pkgsrc.org@localhost>
date: Wed Apr 04 16:07:21 2018 +0000
description:
devel/cfr: Import version 0.125
CFR is a Java decompiler supporting modern language features.
diffstat:
devel/cfr/DESCR | 12 ++++++++++++
devel/cfr/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
devel/cfr/PLIST | 3 +++
devel/cfr/distinfo | 6 ++++++
4 files changed, 61 insertions(+), 0 deletions(-)
diffs (77 lines):
diff -r bf118ba128d3 -r ec4be02b55dd devel/cfr/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cfr/DESCR Wed Apr 04 16:07:21 2018 +0000
@@ -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
diff -r bf118ba128d3 -r ec4be02b55dd devel/cfr/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cfr/Makefile Wed Apr 04 16:07:21 2018 +0000
@@ -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@localhost
+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<size> 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"
diff -r bf118ba128d3 -r ec4be02b55dd devel/cfr/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cfr/PLIST Wed Apr 04 16:07:21 2018 +0000
@@ -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
diff -r bf118ba128d3 -r ec4be02b55dd devel/cfr/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cfr/distinfo Wed Apr 04 16:07:21 2018 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index