source: trunk/dports/news/hellanzb/Portfile @ 71288

Last change on this file since 71288 was 71288, checked in by raimue@…, 10 years ago

news/hellanzb:
Make hellanzb work with current py26-twisted, closes #25807
(overriding maintainer, port is broken)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
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 71288 2010-09-07 21:49:19Z raimue@macports.org $
3
4PortSystem 1.0
5PortGroup           python26 1.0
6
7name             hellanzb
8version          0.13
9revision         2
10categories       news python
11maintainers      groovie.org:pjenvey
12description      Nzb downloader and post processor
13long_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.
20homepage         http://www.hellanzb.com
21platforms        darwin
22
23master_sites     ${homepage}/distfiles/
24checksums        md5 d3510c6b1b2c7b935332a469fdc8e7e2
25
26depends_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
33patchfiles       patch-hellanzb.py.diff \
34                 patch-hellanzb_for_twisted-10.0.0.diff
35
36variant no_ssl description {Disable ssl support} {
37    depends_run-delete  port:py26-openssl
38}
39
40post-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
49post-activate {
50  if { ![file exists ${prefix}/etc/${name}.conf] } {
51    copy ${prefix}/share/doc/hellanzb/${name}.conf.sample ${prefix}/etc/${name}.conf
52  }
53}
Note: See TracBrowser for help on using the repository browser.