# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 54767 2009-08-01 23:41:14Z snc@macports.org $

PortSystem 1.0
PortGroup           python25 1.0

name             hellanzb
version          0.13
categories       news python
maintainers      groovie.org:pjenvey
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 d3510c6b1b2c7b935332a469fdc8e7e2

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

variant ssl {
    depends_run-append  port:py25-openssl
}

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
   }
}
