# $Id: Portfile 75257 2011-01-19 06:23:12Z ryandesign@macports.org $

PortSystem  1.0
PortGroup   xcode 1.0

name		class-dump
version		3.3.3
license		GPL-2
categories	devel
maintainers	waqar openmaintainer
description	Utility for examining the Objective-C segment of Mach-O files.
long_description	\
	It generates declarations for the classes, categories and 	\
	protocols. This is the same information provided by using 	\
	'otool -ov', but presented as normal Objective-C declarations.

homepage	http://www.codethecode.com/projects/class-dump/
master_sites	http://www.codethecode.com/download/
use_bzip2		yes

checksums           sha1    a28e06db52966b2c6d1f16e1e1fbdbae83ca8b08 \
                    rmd160  e5adc156ca75688adf8049e37fdb9d7a932ea087 

worksrcdir	${distname}/src

xcode.target    all

xcode.configuration Release
xcode.destroot.path ${prefix}/bin

if {${os.major} < 9} {
    pre-fetch {
        return -code error "$name requires Mac OS X 10.5 or later."
    }
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 ${worksrcpath}/../README ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}changes/
livecheck.regex {Version (\d+(?:\.\d+)*) -}
