# $Id: Portfile,v 1.3 2005/07/04 04:37:50 pguyot Exp $

PortSystem 1.0

name		CocoaDialog
version		1.2.0
categories	aqua sysutils
platforms	darwin
maintainers	mww@opendarwin.org
description	common GUI controls for command-line application
long_description	CocoaDialog is an OS X application that allows the use \
			of common GUI controls such as file selectors, text \
			input, progress bars, yes/no confirmations and more \
			with a command-line application. It requires no \
			knowledge of Cocoa, and is ideal for use in shell and \
			Perl scripts (or Ruby, or Python, or... etc).

homepage	http://cocoadialog.sourceforge.net/
master_sites	sourceforge:cocoadialog
distfiles	${name}-src-${version}.tgz
checksums	md5 433c407768fe05bb88bcaf3a408a919b

worksrcdir	cocoadialog

use_configure	no

build.type	pbx
build.target	-buildstyle Deployment

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

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