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

Last change on this file since 57304 was 57304, checked in by jameskyle@…, 11 years ago

Patched the hellanzb source to suppress deprecation warnings. Kind of annoying.

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