[102355] trunk/dports/java
cal at macports.org
cal at macports.org
Thu Jan 31 15:12:56 PST 2013
Revision: 102355
https://trac.macports.org/changeset/102355
Author: cal at macports.org
Date: 2013-01-31 15:12:56 -0800 (Thu, 31 Jan 2013)
Log Message:
-----------
new port: dex2jar
Added Paths:
-----------
trunk/dports/java/dex2jar/
trunk/dports/java/dex2jar/Portfile
trunk/dports/java/dex2jar/files/
trunk/dports/java/dex2jar/files/patch-adjust-classpath.diff
Added: trunk/dports/java/dex2jar/Portfile
===================================================================
--- trunk/dports/java/dex2jar/Portfile (rev 0)
+++ trunk/dports/java/dex2jar/Portfile 2013-01-31 23:12:56 UTC (rev 102355)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name dex2jar
+version 0.0.9.12-a
+maintainers cal openmaintainer
+
+categories java android devel
+description Tools to work with android .dex and java .class files
+long_description dex2jar contains 4 components:\n\
+ - dex-reader is designed to read the Dalvik Executable (.dex/.odex) format.\
+ It has a lightweight API similar with ASM.\n\
+ - dex-translator is designed to do the convert job. It reads the dex\
+ instruction to dex-ir format, after some optimization, and converts to ASM\
+ format.\
+ - dex-ir used by dex-translator, is designed to represent the dex\
+ instruction.\
+ - dex-tools is a set of tools to work with .class files, e.g., to modify an\
+ apk or de-obfuscate a jar.
+
+platforms darwin
+supported_archs noarch
+
+license Apache-2 BSD
+
+homepage http://code.google.com/p/dex2jar/
+master_sites googlecode
+use_zip yes
+
+checksums rmd160 46ea110f93a2728dc10396ec2fc715ad72dd2f97 \
+ sha256 8a5f0f2b877805aafd6fd8bc9cfdbdbb34f7597eb3b869878d97035b81ff04c9
+
+worksrcdir dex2jar-0.0.9.12
+patchfiles patch-adjust-classpath.diff
+use_configure no
+build {}
+destroot {
+ xinstall -m 0755 -W ${worksrcpath} \
+ d2j-apk-sign.sh d2j-asm-verify.sh d2j-decrpyt-string.sh d2j-dex-asmifier.sh \
+ d2j-dex-dump.sh d2j-dex2jar.sh d2j-init-deobf.sh d2j-jar-access.sh d2j-jar-remap.sh \
+ d2j-jar2dex.sh d2j-jar2jasmin.sh d2j-jasmin2jar.sh dex-dump.sh dex2jar.sh \
+ ${destroot}${prefix}/bin
+ xinstall -m 0755 -d ${destroot}${prefix}/lib/dex2jar
+ eval xinstall -m 0644 -W ${worksrcpath}/lib \
+ [glob -directory ${worksrcpath}/lib *] \
+ ${destroot}${prefix}/lib/dex2jar
+}
Property changes on: trunk/dports/java/dex2jar/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/java/dex2jar/files/patch-adjust-classpath.diff
===================================================================
--- trunk/dports/java/dex2jar/files/patch-adjust-classpath.diff (rev 0)
+++ trunk/dports/java/dex2jar/files/patch-adjust-classpath.diff 2013-01-31 23:12:56 UTC (rev 102355)
@@ -0,0 +1,391 @@
+--- d2j-apk-sign.sh.orig 2013-01-31 23:50:23.000000000 +0100
++++ d2j-apk-sign.sh 2013-01-31 23:51:32.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.ApkSign" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.ApkSign" $@
+--- d2j-asm-verify.sh.orig 2013-01-31 23:50:23.000000000 +0100
++++ d2j-asm-verify.sh 2013-01-31 23:53:14.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.AsmVerify" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.AsmVerify" $@
+--- d2j-decrpyt-string.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-decrpyt-string.sh 2013-01-31 23:53:56.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.DecryptStringCmd" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.DecryptStringCmd" $@
+--- d2j-dex-asmifier.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-dex-asmifier.sh 2013-01-31 23:54:14.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.util.ASMifierFileV" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.util.ASMifierFileV" $@
+--- d2j-dex-dump.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-dex-dump.sh 2013-01-31 23:54:37.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.util.Dump" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.util.Dump" $@
+--- d2j-dex2jar.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-dex2jar.sh 2013-01-31 23:55:00.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.Dex2jarCmd" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.Dex2jarCmd" $@
+--- d2j-init-deobf.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-init-deobf.sh 2013-01-31 23:55:07.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.DeObfInitCmd" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.DeObfInitCmd" $@
+--- d2j-jar-access.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-jar-access.sh 2013-01-31 23:55:11.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.JarAccessCmd" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.JarAccessCmd" $@
+--- d2j-jar-remap.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-jar-remap.sh 2013-01-31 23:55:15.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.JarRemap" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.JarRemap" $@
+--- d2j-jar2dex.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-jar2dex.sh 2013-01-31 23:55:19.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.Jar2Dex" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.Jar2Dex" $@
+--- d2j-jar2jasmin.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-jar2jasmin.sh 2013-01-31 23:55:23.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.Jar2Jasmin" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.Jar2Jasmin" $@
+--- d2j-jasmin2jar.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ d2j-jasmin2jar.sh 2013-01-31 23:55:27.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.tools.Jasmin2Jar" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.tools.Jasmin2Jar" $@
+--- dex-dump.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ dex-dump.sh 2013-01-31 23:55:36.000000000 +0100
+@@ -1,23 +1,3 @@
+ #!/bin/sh
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.util.Dump" $1 $2 $3 $4 $5 $6
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.util.Dump" $1 $2 $3 $4 $5 $6
+--- dex2jar.sh.orig 2013-01-31 23:50:24.000000000 +0100
++++ dex2jar.sh 2013-01-31 23:55:41.000000000 +0100
+@@ -17,24 +17,4 @@
+ # limitations under the License.
+ #
+
+-# copy from $Tomcat/bin/startup.sh
+-# resolve links - $0 may be a softlink
+-PRG="$0"
+-while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`/"$link"
+- fi
+-done
+-PRGDIR=`dirname "$PRG"`
+-#
+-
+-_classpath="."
+-for k in "$PRGDIR"/lib/*.jar
+-do
+- _classpath="${_classpath}:${k}"
+-done
+-java -Xms512m -Xmx1024m -classpath "${_classpath}" "com.googlecode.dex2jar.v3.Main" $@
++java -Xms512m -Xmx1024m -classpath "@@PREFIX@@/lib/dex2jar" "com.googlecode.dex2jar.v3.Main" $@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130131/0fa6aa95/attachment-0001.html>
More information about the macports-changes
mailing list