# $Id: Portfile,v 1.3 2005/08/11 21:33:16 rshaw Exp $
PortSystem		1.0

name			xrg
version			1.1.0
categories		aqua sysutils
maintainers		darwinports@opendarwin.org
description		XRG is an open source system monitor for Mac OS X.
long_description	XRG allows you to monitor CPU activity, memory \
					usage, battery status, machine temperature, network \
					activity, disk I/O, current weather, and stock \
					market data. The goal of XRG is to be a functional \
					system monitor that has a clean and flexible \
					interface, so it doesn't intrude on the rest of your \
					Mac experience. XRG is designed to take as little \
					CPU time as possible while still showing detailed \
					graphs on system usage.
homepage		http://www.gauchosoft.com/
master_sites	http://download.gauchosoft.com/${name}/
distname		[string toupper ${name}]-src-${version}
checksums		md5 0768b6a956dcc7f4d62bdba1fa0a6d88
platforms		darwin

depends_lib		lib:/Library/Frameworks/AGProcess.framework:agprocess \
				lib:/Library/Frameworks/CURLHandle.framework:curlhandle

set appName		"X Resource Graph"

post-extract {
	file rename "${workpath}/XResourceGraph 1.1" "${workpath}/${distname}"
}

use_configure	no

build.type		pbx
build.target
build.args       -buildstyle Deployment -target XResourceGraph

destroot {
	set appPath ${destroot}/Applications/DarwinPorts
	cd ${worksrcpath}/build
	xinstall -d -m 0755 ${appPath}
	system "cp -R '${appName}.app' '${appPath}/${appName}.app'"
}

