# $Id: Portfile 87180 2011-11-13 07:26:28Z ryandesign@macports.org $

PortSystem 1.0
PortGroup           xcode 1.0

name		MenuMeters
version             1.5
categories	aqua sysutils
maintainers	waqar openmaintainer
license             GPL-2

# bundled MenuCracker is only compiled for these archs
supported_archs     i386 ppc x86_64

description	Set of CPU, memory, disk, and network monitoring tools
long_description	\
	The MenuMeters monitors are true SystemUIServer plugins 	\
	(also known as Menu Extras). This means they can be reordered 	\
	using command-drag and remember their positions in the menubar 	\
	across logins and restarts.
homepage	http://www.ragingmenace.com/software/menumeters
master_sites	http://www.ragingmenace.com/software/download
distname	${name}
dist_subdir         ${name}/${version}

checksums           rmd160  460af2fb40974d429389195fe49db1c7773ab472 \
                    sha256  9e201177391fc0dcf86065c8f275829a45246f1a86322d2534c7aed63a82ecc4

post-extract	{
	file rename ${workpath}/${name}\ ${version}\ Source ${worksrcpath}
}
worksrcdir	${name}-${version}

patchfiles          patch-MenuMeters.xcodeproj-project.pbxproj.diff

xcode.configuration Release
xcode.target        PrefPane

destroot.violate_mtree  yes

destroot	{
	xinstall -m 755 -d ${destroot}/Library/PreferencePanes
	file copy ${worksrcpath}/build/Release/${name}.prefPane		\
		${destroot}/Library/PreferencePanes
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${distfiles}">MenuMeters (\[0-9.\]+) source
