# $Id: Portfile 62514 2010-01-09 19:33:54Z nox@macports.org $

PortSystem  1.0
PortGroup   xcode 1.0

name		class-dump
version		3.3.1
license		GPL-2
categories	devel
maintainers	waqar
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           md5     52e8d718d5087e9873f2c8880dcbd6f6 \
                    sha1    dd807078c81bec6279c7c40c820d23edbb379ea6 \
                    rmd160  83f407a72bdd645dfbddb61b674953687da3f321

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+)*) -}
