# $Id: Portfile 57758 2009-09-16 07:48:28Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               xcode 1.0

name                    CronniX
version                 3.0.2
categories              aqua
maintainers             ryandesign
license                 GPLv3
homepage                http://www.abstracture.de/cronnix
xcode.target            ${name}

fetch.type              svn
svn.url                 http://cronnix.googlecode.com/svn/trunk
svn.revision            83
worksrcdir              trunk

description \
    graphical frontend for scheduling cronjobs

long_description \
    ${name} is a Mac OS X frontend to the Unix scheduler cron. Cron is a \
    system service that allows scheduled execution of scripts and programs.

variant universal {
    eval build.args-append      "ARCHS='${configure.universal_archs}'"
    eval destroot.args-append   "ARCHS='${configure.universal_archs}'"
}
if {![variant_isset universal]} {
    set arch ${os.arch}
    if {! [string compare ${os.arch} powerpc]} {
        set arch ppc
    }
    build.args-append           ARCHS=${arch}
    destroot.args-append        ARCHS=${arch}
}

post-destroot {
    fs-traverse dir ${destroot} {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions u+w
        }
    }
}

livecheck.type          regex
livecheck.url           http://cronnix.googlecode.com/svn/tags
livecheck.regex         release-(\[0-9.\]+)
