1 | # -*- 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 |
---|
2 | # $Id: Portfile 69520 2010-07-08 20:19:52Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name hellanzb |
---|
8 | version 0.13 |
---|
9 | revision 2 |
---|
10 | categories news python |
---|
11 | maintainers groovie.org:pjenvey |
---|
12 | description Nzb downloader and post processor |
---|
13 | long_description hellanzb is an easy to use app designed to retrieve nzb \ |
---|
14 | files and fully process them. The goal being to make \ |
---|
15 | getting files from Usenet as hands-free as possible. Once \ |
---|
16 | fully installed, all that's required is moving an nzb file \ |
---|
17 | to the queue directory. The rest: downloading, \ |
---|
18 | par-checking, un-raring, etc. is done automatically by \ |
---|
19 | hellanzb. |
---|
20 | homepage http://www.hellanzb.com |
---|
21 | platforms darwin |
---|
22 | |
---|
23 | master_sites ${homepage}/distfiles/ |
---|
24 | checksums md5 d3510c6b1b2c7b935332a469fdc8e7e2 |
---|
25 | |
---|
26 | depends_run bin:par2:par2 \ |
---|
27 | bin:unrar:unrar \ |
---|
28 | bin:flac:flac \ |
---|
29 | bin:shorten:shorten \ |
---|
30 | port:py26-twisted \ |
---|
31 | port:py26-openssl |
---|
32 | |
---|
33 | patchfiles patch-hellanzb.py.diff \ |
---|
34 | patch-hellanzb_for_twisted-10.0.0.diff |
---|
35 | |
---|
36 | variant no_ssl description {Disable ssl support} { |
---|
37 | depends_run-delete port:py26-openssl |
---|
38 | } |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | move ${destroot}${python.prefix}/bin/${name}.py ${destroot}${prefix}/bin |
---|
42 | move ${destroot}${python.prefix}/etc/${name}.conf.sample ${destroot}${prefix}/share/doc/hellanzb/ |
---|
43 | |
---|
44 | eval xinstall [glob ${destroot}${python.prefix}/share/doc/hellanzb/*] ${destroot}${prefix}/share/doc/hellanzb/ |
---|
45 | |
---|
46 | system "rm -rf ${destroot}${python.prefix}/share" |
---|
47 | } |
---|
48 | |
---|
49 | post-activate { |
---|
50 | if { ![file exists ${prefix}/etc/${name}.conf] } { |
---|
51 | copy ${prefix}/share/doc/hellanzb/${name}.conf.sample ${prefix}/etc/${name}.conf |
---|
52 | } |
---|
53 | } |
---|