Changeset 57304 for trunk/dports/news


Ignore:
Timestamp:
Sep 9, 2009, 3:58:55 AM (10 years ago)
Author:
jameskyle@…
Message:

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

Location:
trunk/dports/news/hellanzb
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/news/hellanzb/Portfile

    r54767 r57304  
    11# -*- 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$
     2# $Id: Portfile 54767 2009-08-01 23:41:14Z snc@macports.org $
    33
    44PortSystem 1.0
    5 PortGroup           python25 1.0
     5PortGroup           python26 1.0
    66
    77name             hellanzb
     
    2727                 bin:flac:flac \
    2828                 bin:shorten:shorten \
    29                     port:py25-twisted
     29                 port:py26-twisted \
     30                 port:py26-openssl
    3031
    31 variant ssl {
    32     depends_run-append  port:py25-openssl
     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"
    3345}
    3446
    3547post-activate {
    36    # copy over the sample conf file if necessary
    37    if { ![file exists ${prefix}/etc/${name}.conf] } {
    38       file copy ${prefix}/etc/${name}.conf.sample \
    39       ${prefix}/etc/${name}.conf
    40    }
     48  if { ![file exists ${prefix}/etc/${name}.conf] } {
     49    copy ${prefix}/share/doc/hellanzb/${name}.conf.sample ${prefix}/etc/${name}.conf
     50  }
    4151}
Note: See TracChangeset for help on using the changeset viewer.