source: trunk/dports/news/hellanzb/Portfile

Last change on this file was 150295, checked in by ryandesign@…, 12 months ago

hellanzb: increase revision to actually rebuild with python27 after r150146

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 150295 2016-07-15 08:29:09Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup           python 1.0
6
7name                hellanzb
8version             0.13
9revision            3
10categories          news python
11platforms           darwin
12maintainers         nomaintainer
13
14description         Nzb downloader and post processor
15long_description    hellanzb is an easy to use app designed to retrieve nzb \
16                    files and fully process them. The goal being to make \
17                    getting files from Usenet as hands-free as possible. Once \
18                    fully installed, all that's required is moving an nzb file \
19                    to the queue directory. The rest: downloading, \
20                    par-checking, un-raring, etc. is done automatically by \
21                    hellanzb.
22
23homepage            http://www.hellanzb.com
24
25master_sites        ${homepage}/distfiles/ http://distfiles.macports.org/python/
26checksums           md5 d3510c6b1b2c7b935332a469fdc8e7e2
27
28python.default_version  27
29
30depends_run         bin:par2:par2 \
31                    bin:unrar:unrar \
32                    bin:flac:flac \
33                    bin:shorten:shorten \
34                    port:py${python.version}-twisted \
35                    port:py${python.version}-openssl
36
37patchfiles          patch-hellanzb.py.diff \
38                    patch-hellanzb_for_twisted-10.0.0.diff
39
40variant no_ssl description {Disable ssl support} {
41    depends_run-delete  port:py${python.version}-openssl
42}
43
44post-destroot {
45   move ${destroot}${python.prefix}/etc/${name}.conf.sample ${destroot}${prefix}/share/doc/hellanzb/
46   
47   eval xinstall [glob ${destroot}${python.prefix}/share/doc/hellanzb/*] ${destroot}${prefix}/share/doc/hellanzb/
48   
49   system "rm -rf ${destroot}${python.prefix}/share"
50}
51
52post-activate {
53    if { ![file exists ${prefix}/etc/${name}.conf] } {
54        copy ${prefix}/share/doc/hellanzb/${name}.conf.sample ${prefix}/etc/${name}.conf
55    }
56}
Note: See TracBrowser for help on using the repository browser.