source: trunk/dports/devel/class-dump/Portfile

Last change on this file was 140942, checked in by ryandesign@…, 2 years ago

class-dump: refine unsupported OS X version error message

  • 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 140942 2015-10-06 09:13:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           xcode 1.0
6
7name                class-dump
8version             3.5
9categories          devel
10license             GPL-2
11maintainers         gmail.com:cedric.luthi openmaintainer
12
13description         Utility for examining the Objective-C segment of \
14                    Mach-O files.
15long_description    It generates declarations for the classes, \
16                    categories and protocols. This is the same \
17                    information provided by using 'otool -ov', \
18                    but presented as normal Objective-C declarations.
19homepage            http://stevenygard.com/projects/class-dump/
20
21master_sites        http://stevenygard.com/download/
22use_bzip2           yes
23checksums           rmd160  408c0baf4d384007310761585caff5e9c31a331f \
24                    sha256  eb9df1b697c02f66f84f93510772cdf434b63c6d79ee23528d24ac208c1a52f2
25
26# error: -fobjc-arc is not supported on platforms using the legacy runtime
27supported_archs     x86_64
28
29worksrcdir          ${distname}/src
30
31# 3.5+ must be built against the 10.9 SDK, as it requires LC_* constants
32# and other definitions unavailable in earlier SDKs. It will, however,
33# run against 10.8+.
34configure.sdkroot   "$developer_dir/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"
35xcode.target        class-dump deprotect
36
37xcode.configuration Release
38xcode.destroot.path ${prefix}/bin
39
40if {${os.major} < 12} {
41    pre-fetch {
42        ui_error "${name} @${version} requires OS X 10.8 or later."
43        return -code error "incompatible OS X version"
44    }
45}
46
47post-destroot {
48    set docdir ${prefix}/share/doc/${name}
49    xinstall -d ${destroot}${docdir}
50    xinstall -m 644 ${worksrcpath}/../README.md ${destroot}${docdir}
51
52    delete ${destroot}${prefix}/bin/libMachObjC.a
53}
54
55livecheck.type  regex
56livecheck.url   ${homepage}changes/
57livecheck.regex {Version (\d+(?:\.\d+)*) -}
Note: See TracBrowser for help on using the repository browser.