source: trunk/dports/java/dex2jar/Portfile

Last change on this file was 148227, checked in by cal@…, 15 months ago

dex2jar: drop mainatinership

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 148227 2016-04-30 17:12:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dex2jar
7version             0.0.9.15
8maintainers         nomaintainer
9
10categories          java devel
11description         Tools to work with android .dex and java .class files
12long_description    dex2jar contains 4 components:\n\
13    - dex-reader is designed to read the Dalvik Executable (.dex/.odex) format.\
14      It has a lightweight API similar with ASM.\n\
15    - dex-translator is designed to do the convert job. It reads the dex\
16      instruction to dex-ir format, after some optimization, and converts to ASM\
17      format.\n\
18    - dex-ir used by dex-translator, is designed to represent the dex\
19      instruction.\n\
20    - dex-tools is a set of tools to work with .class files, e.g., to modify an\
21      apk or de-obfuscate a jar.
22
23platforms           darwin
24supported_archs     noarch
25
26license             Apache-2 BSD
27
28homepage            http://code.google.com/p/dex2jar/
29master_sites        googlecode
30use_zip             yes
31
32checksums           rmd160  fccaa317fd890e78344f19da96dd02008c845bb2 \
33                    sha256  a5d1320e0f53498dd947c369f7a1bc1cbc1a94dd921c56e3075f86f5b01ae720
34
35patchfiles          patch-adjust-classpath.diff
36post-patch {
37    eval reinplace -W ${worksrcpath} "s#@@PREFIX@@#${prefix}#g" [glob -directory ${worksrcpath} *.sh]
38}
39
40use_configure       no
41build               {}
42destroot {
43    xinstall -m 0755 -W ${worksrcpath} \
44        d2j-apk-sign.sh d2j-asm-verify.sh d2j-decrpyt-string.sh d2j-dex-asmifier.sh \
45        d2j-dex-dump.sh d2j-dex2jar.sh d2j-init-deobf.sh d2j-jar-access.sh d2j-jar-remap.sh \
46        d2j-jar2dex.sh d2j-jar2jasmin.sh d2j-jasmin2jar.sh dex-dump.sh dex2jar.sh \
47        ${destroot}${prefix}/bin
48    xinstall -m 0755 -d ${destroot}${prefix}/lib/dex2jar
49    eval xinstall -m 0644 -W ${worksrcpath}/lib \
50        [glob -directory ${worksrcpath}/lib *] \
51        ${destroot}${prefix}/lib/dex2jar
52}
Note: See TracBrowser for help on using the repository browser.