# $Id: Portfile 62016 2009-12-27 23:11:33Z ryandesign@macports.org $

PortSystem		1.0
PortGroup		xcode 1.0

name			Platypus
version			3.4
categories		aqua devel
maintainers		me.com:tsupplis
description		Program for creating application wrappers around scripts.

long_description	Platypus is a program for creating application \
			wrappers around scripts, i.e. creating Mac OS X \
			applications that execute a script they are bundled \
			with. Scripts can thus be run transparently from the \
			graphical window environment without having to \
			resort to using the command line interface. It \
			supports drag and drop on created apps, running as \
			root using Authentication Manager and more.

homepage		http://www.sveinbjorn.org/platypus/
master_sites	http://www.sveinbjorn.org/files/software/platypus/
distname		platypus${version}.src
use_zip			yes

checksums		md5 775d39e01562a97739043644865c7062 \
				sha1 fdb9967f5f3edbb9f82e206455db21aa1e420496 \
				rmd160 2a1dc4cf5247c688706f7724ddfc0945d2805146
				
worksrcdir		${name}

# Dummy configure to enable universal variant.
use_configure	yes
configure		{}

if {! [variant_isset universal]} {
	set arch ${os.arch}
	if {! [string compare ${os.arch} powerpc]} {
		set arch ppc
	}

	xcode.build.settings-append		ARCHS=${arch}
	xcode.destroot.settings-append	ARCHS=${arch}
}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	"${name} (\\d+(?:\\.\\d+)*)"

