# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0
name		AppKiDo
version		0.971
categories	aqua devel
platforms	darwin
maintainers	eridius
description	Provides a powerful interface to Apple's Cocoa documentation
long_description	\
	AppKiDo is a free reference tool for Cocoa Objective-C \
	programmers. It parses the header files and HTML \
	documentation files provided by Developer Tools and \
	presents the results in a powerful interface.
homepage	http://homepage.mac.com/aglee/downloads/
master_sites	${homepage}
distname	${name}-${version}-src
extract.suffix  .tgz
worksrcdir	${name}
checksums	md5  6c4ec2a75f8552120e5a9ff582d9a10f \
		sha1 e88e80faa6f140a2142a2f4dbe9be0de81b5472c

livecheck.check	regex
livecheck.url	http://homepage.mac.com/aglee/downloads/appkido.html
livecheck.regex	">download version (.*?)<"

use_configure	no
build.type	pbx
build.target	-target AppKiDo
build.args	-buildstyle Deployment build SYMROOT=build/ OBJROOT=build/

set xcodebuilddir		build
platform darwin 8 {
	if {$xcodeversion == "2.1"} {
		set xcodebuilddir	build/Deployment
	}
}

destroot	{
	xinstall -m 755 -d ${destroot}/Applications/MacPorts/
	file copy ${worksrcpath}/${xcodebuilddir}/AppKiDo.app \
		${destroot}/Applications/MacPorts
}
