# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 90253 2012-02-27 18:26:21Z snc@macports.org $

PortSystem 1.0
PortGroup       xcode 1.0

name            xrg
version         1.6.0
categories-append   sysutils
maintainers     snc openmaintainer
license             Permissive
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/Products/XRG/
master_sites    http://download.gauchosoft.com/${name}/
distname        [string toupper ${name}]-src-${version}
checksums           rmd160  095c2bef9948e8d5bfac37b55d6ddc4456dfacf4 \
                    sha256  6d0a6b801b55837046b5ba912e90247a114073bd09a93420b98e8dd01ef95324

worksrcdir          [string toupper ${name}]

pre-fetch {
    platform darwin {
        if {${os.major} < 8} {
            ui_error "${name} requires OS X 10.4 or newer."
            return -code error "incompatible OS X version"
        }

        if {${build_arch} == "x86_64"} {
            if {${os.major} < 10} {
                ui_error "${name} requires OS X 10.6 or newer."
                return -code error "incompatible OS X version"
            }
        }
    }
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     [string toupper ${name}]-src-(\\d+(\\.\\d+)+)${extract.suffix}
