Ticket #25807: Portfile

File Portfile, 2.0 KB (added by jon.hermansen@…, 14 years ago)
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 69520 2010-07-08 20:19:52Z jmr@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}