# $Id: Portfile 130794 2015-01-02 20:54:59Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-sisyphus
version			0.9.1
categories-append	devel
license			MIT
maintainers		nomaintainer
platforms		darwin freebsd
supported_archs	noarch
description		python module for running python stuff as cron jobs
long_description	This module simplifies running Python stuff as cron \
				jobs. There will be no more than one sisyphus job of a certain \
				name running at every given time. When the job is already \
				running and a second is started, the second one will quit \
				immediately if the first one hasn't exceeded its maximum \
				allowed lifetime yet. If it has exceeded the allowed lifetime \
				the first job will be killed and the second will start \
				running. In addition to that, logging features are provided.

homepage		http://www.livinglogic.de/Python/sisyphus/
master_sites	http://ftp.livinglogic.de/sisyphus
distname		ll-sisyphus-${version}
checksums		md5 9d03cdd036dd1ab65da167c53d97ba4a

python.versions	27

if {${name} ne ${subport}} {
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} INSTALL NEWS README NEWS.xml \
            INSTALL.xml ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/examples/Fetch.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
