# $Id: Portfile,v 1.5 2006/06/06 20:25:20 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name             hellanzb
version          0.9
revision         1
categories       news python
maintainers      pjenvey@groovie.org
description      Nzb downloader and post processor
long_description \
                 hellanzb is an easy to use app designed to retrieve nzb files and fully process them. \
                 The goal being to make getting files from Usenet as hands-free as possible. Once fully \
                 installed, all that's required is moving an nzb file to the queue directory. The rest: \
                 downloading, par-checking, un-raring, etc. is done automatically by hellanzb.
homepage         http://www.hellanzb.com/
platforms        darwin

master_sites     ${homepage}/distfiles/
checksums        md5 2564b78b0639c4f4e7b128d00a51dcf4

depends_run  bin:par2:par2 \
             bin:unrar:unrar \
             bin:flac:flac \
             bin:shorten:shorten \
             port:py-twisted

post-activate {
        # copy over the sample conf file if necessary
        if { ![file exists ${prefix}/etc/${name}.conf] } {
             file copy ${prefix}/etc/${name}.conf.sample \
             ${prefix}/etc/${name}.conf
        }
}
