# $Id: Portfile 54501 2009-07-28 20:14:16Z toby@macports.org $

PortSystem 1.0

name            xrg
version         1.1.0
categories      aqua sysutils
maintainers     nomaintainer
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_dir}
    xinstall -d -m 0755 ${appPath}
    copy ${worksrcpath}/build/${appName}.app ${appPath}/${appName}.app
}
