# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name				py-svnreporter
version				0.4
categories-append		devel
license				GPL-2
platforms			darwin
supported_archs		noarch
maintainers			nomaintainer
description			Svn commit hook to generate reports
long_description	SvnReporter generates various reports in response to \
					commits happening in a Subversion repository. It is \
					intended to be called from the post-commit hook.

homepage			http://www.calins.ch/software/SvnReporter.html
master_sites		http://www.calins.ch/download/SvnReporter/
distname			SvnReporter-${version}
checksums			md5 92ce58d3d3c76752f56462df911d0b49 \
					sha1 d024cd910b9ba7f937c4b212460261ff803465d5 \
					rmd160 ba0610347c93ab61f161a0088559ec32cc6affbd

python.versions		24

if {${name} ne ${subport}} {
    depends_lib-append	port:subversion-python${python.version}bindings
    livecheck.type	none
} else {
    livecheck.type	regex
    livecheck.regex {<tr><th>Download:</th><td><a href="http://www.calins.ch/download/SvnReporter/SvnReporter-(.*).tar.gz">http://www.calins.ch/download/SvnReporter/SvnReporter-\1.tar.gz</a></td></tr>}
}
