summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2003-06-24 20:34:03 +0000
committerMikhail Teterin <mi@FreeBSD.org>2003-06-24 20:34:03 +0000
commit61c93d2ba20ece493bc383df526c212ed4b622d7 (patch)
tree190f3e82f5e710d7c9cb84f205d9ae0e3c5e082f
parentUpdate FreeBSD Update to version 1.3 (diff)
DE is a java package containing a decompiler and an optimizer for
java. Can be used from command line or through the Swing-based GUI.
Notes
Notes: svn path=/head/; revision=83547
Diffstat (limited to '')
-rw-r--r--java/Makefile1
-rw-r--r--java/jode/Makefile48
-rw-r--r--java/jode/distinfo1
-rw-r--r--java/jode/files/patch-bin-jode18
-rw-r--r--java/jode/files/patch-configure16
-rw-r--r--java/jode/pkg-descr24
-rw-r--r--java/jode/pkg-plist2
7 files changed, 110 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index 5ead5ea2a987..06a087b4e5b6 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -53,6 +53,7 @@
SUBDIR += jlex
SUBDIR += jlint
SUBDIR += jmp
+ SUBDIR += jode
SUBDIR += jre
SUBDIR += jsdk
SUBDIR += jump
diff --git a/java/jode/Makefile b/java/jode/Makefile
new file mode 100644
index 000000000000..b148d101d9c6
--- /dev/null
+++ b/java/jode/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: jode-regexp
+# Date created: June 24th 2003
+# Whom: mi
+#
+# $FreeBSD$
+
+PORTNAME= jode
+PORTVERSION= 1.1.1
+CATEGORIES= java devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=${PORTNAME}
+
+MAINTAINER= mi@aldan.algebra.com
+COMMENT= A java package containing a decompiler and an optimizer for java
+
+BUILD_DEPENDS= ${GETOPT_JAR}:${PORTSDIR}/java/java-getopt
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_JAVA= 1.2+
+NEED_JAVAC= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+GETOPT_JAR= ${JAVAJARDIR}/getopt.jar
+CLASSLIB= ${JAVA_CLASSES}:${GETOPT_JAR}
+CONFIGURE_ENV+= CLASSLIB=${CLASSLIB} JAR="${JAR}" \
+ JAVA="${JAVA}" JAVAC="${JAVAC}"
+CONFIGURE_ARGS+=--datadir="${JAVAJARDIR}"
+# Don't create the dependencies:
+MAKE_ARGS+= JAVADEP=:
+# Run two compilers in parallel -- faster even on a single CPU machine:
+MAKE_ARGS+= -j2
+PLIST_SUB+= VERSION=${PORTVERSION}
+
+post-build:
+ cd ${WRKSRC} && ${JAR} cvf ${PORTNAME}-${PORTVERSION}.jar \
+ `${FIND} jode -name \*.class`
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
+ ${JAVAJARDIR}/
+# Documentation HTML seems broken and out of date. Don't bother
+#.ifndef (NOPORTDOCS)
+# ${MKDIR} ${DOCSDIR}
+# ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif ${DOCSDIR}/
+#.endif
+
+.include <bsd.port.mk>
diff --git a/java/jode/distinfo b/java/jode/distinfo
new file mode 100644
index 000000000000..c3f9b57e4626
--- /dev/null
+++ b/java/jode/distinfo
@@ -0,0 +1 @@
+MD5 (jode-1.1.1.tar.gz) = 66e76ed2dd68d6b4a2c05f9af265f749
diff --git a/java/jode/files/patch-bin-jode b/java/jode/files/patch-bin-jode
new file mode 100644
index 000000000000..c77c812475d4
--- /dev/null
+++ b/java/jode/files/patch-bin-jode
@@ -0,0 +1,18 @@
+--- bin/jode.in Mon Oct 2 09:08:36 2000
++++ bin/jode.in Tue Jun 24 16:13:17 2003
+@@ -1,4 +1,3 @@
+ #!@SHELL@
+-prefix=@prefix@
+
+ case $1 in
+@@ -9,6 +8,7 @@
+ esac
+
++# This will only set CP if CLASSPATH is non-empty:
++CP=`echo $CLASSPATH | sed -e 's/:/,/g' -e 's/..*/--classpath &/'`
+
+-CP=`echo $CLASSPATH | sed s/:/,/`
+-CLASSPATH=@datadir@/jode-@VERSION@.jar:@CLASSPATH@ \
+-@JAVA@ $CLAZZ --classpath $CP $*
++exec javavm -cp @datadir@/jode-@VERSION@.jar:@datadir@/getopt.jar \
++ $CLAZZ $CP "$@"
diff --git a/java/jode/files/patch-configure b/java/jode/files/patch-configure
new file mode 100644
index 000000000000..eb4283bddc17
--- /dev/null
+++ b/java/jode/files/patch-configure
@@ -0,0 +1,16 @@
+--- configure Sun Aug 12 16:34:31 2001
++++ configure Tue Jun 24 13:33:58 2003
+@@ -1125,5 +1125,5 @@
+ withval="$with_java"
+
+- if test ${withval} != "" || test ${withval} != "yes" || test ${withval} != "no"; then
++ if test -n "${withval}" -a "${withval}" != "yes" -a "${withval}" != "no"; then
+ # set javac to user input value
+
+@@ -1730,5 +1730,5 @@
+ { echo "configure: error: You must only give one option --with-javac or --with-jikes" 1>&2; exit 1; }
+ fi
+- if test ${withval} != "" || test ${withval} != "yes" || test ${withval} != "no"; then
++ if test -n "${withval}" -a "${withval}" != "yes" -a "${withval}" != "no"; then
+ for ac_file in ${withval}
+ do
diff --git a/java/jode/pkg-descr b/java/jode/pkg-descr
new file mode 100644
index 000000000000..d6b3fdf6fedd
--- /dev/null
+++ b/java/jode/pkg-descr
@@ -0,0 +1,24 @@
+JODE is a java package containing a decompiler and an optimizer for
+java. This package is freely available under the GNU GPL. The bytecode
+package and the core decompiler is now under GNU Lesser General Public
+License, so you can integrate it in your project.
+
+Can be used from command line or through the Swing-based GUI.
+
+The decompiler reads in class files and produces something similar to
+the original java file. Jode has support for all constructs of JDK-1.3
+including inner and anonymous classes.
+
+The optimizer transforms class files in various ways with can be
+controlled by a script file. It supports the following operations:
+
+
+ . Renaming class, method, field and local names to shorter,
+ obfuscated, or unique names or according to a given
+ translation table
+ . Removing debugging information
+ . Removing dead code (classes, fields, methods) and constant
+ fields
+ . Optimizing local variable allocation
+
+WWW: http://jode.sourceforge.net/
diff --git a/java/jode/pkg-plist b/java/jode/pkg-plist
new file mode 100644
index 000000000000..ff7bc760775d
--- /dev/null
+++ b/java/jode/pkg-plist
@@ -0,0 +1,2 @@
+bin/jode
+share/java/classes/jode-%%VERSION%%.jar