# $Id: Portfile 56266 2009-08-25 21:51:56Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               xcode 1.0

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

fetch.type              svn
svn.url                 http://cronnix.googlecode.com/svn/trunk
svn.tag                 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.check         regex
livecheck.url           http://cronnix.googlecode.com/svn/tags
livecheck.regex         release-(\[0-9.\]+)
