Ticket #31158: Portfile

File Portfile, 1.4 KB (added by 0xced (Cédric Luthi), 13 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           xcode 1.0
5
6name                class-dump
7version             3.3.4
8license             GPL-2
9categories          devel
10maintainers         gmail:cedric.luthi
11description         Utility for examining the Objective-C segment of Mach-O files.
12long_description    It generates declarations for the classes, categories and   \
13                    protocols. This is the same information provided by using   \
14                    'otool -ov', but presented as normal Objective-C declarations.
15
16homepage            http://www.codethecode.com/projects/class-dump/
17master_sites        http://www.codethecode.com/download/
18use_bzip2           yes
19
20checksums           sha1    1e43a3cab522565b0773aab18c40b232f231c46c \
21                    rmd160  7ed74aaadafb59215ac0cb92064073f871d3d919
22
23patchfiles          patch-dyld-info-compat.h.diff
24worksrcdir          ${distname}/src
25
26xcode.target        ${name}
27xcode.configuration Release
28xcode.destroot.path ${prefix}/bin
29
30if {${os.major} < 10} {
31    pre-fetch {
32        return -code error "$name requires Mac OS X 10.6 or later."
33    }
34}
35
36post-destroot {
37    set docdir ${prefix}/share/doc/${name}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 644 ${worksrcpath}/../README.md ${destroot}${docdir}
40    delete ${destroot}${prefix}/bin/libMachObjC.a
41}
42
43livecheck.type      regex
44livecheck.url       ${homepage}changes/
45livecheck.regex     {Version (\d+(?:\.\d+)*) -}