Ticket #23598: duplicity.diff

File duplicity.diff, 3.3 KB (added by nerdling (Jeremy Lavergne), 14 years ago)

working copy having axed py25 portions

  • Portfile

     
    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
    22# $Id$
    33
    4 PortSystem    1.0
     4PortSystem          1.0
     5PortGroup           python26 1.0
    56
    6 name          duplicity
    7 version       0.6.06
    8 categories    sysutils
    9 platforms     darwin
    10 maintainers   singingwolfboy openmaintainer
     7name                py26-duplicity
     8categories          sysutils
     9version             0.6.06
     10set stable_series   [join [lrange [split ${version} .] 0 1] .]-series
     11platforms           darwin
     12maintainers         singingwolfboy openmaintainer
    1113
    1214description   Encrypted bandwidth-efficient backup.
    1315long_description  Duplicity backs directories by producing encrypted \
     
    1820      encrypt and/or sign these archives, they will be safe from spying \
    1921      and/or modification by the server.
    2022
    21 set stable_series 0.6-series
    22 homepage      http://duplicity.nongnu.org/
    23 master_sites  https://launchpad.net/duplicity/${stable_series}/${version}/+download
     23distname            duplicity-${version}
     24homepage            http://duplicity.nongnu.org/
     25master_sites        https://launchpad.net/duplicity/${stable_series}/${version}/+download
    2426
    2527checksums           md5     abbbbcde4af24efffbc218583d581453 \
    2628                    sha1    45bc382f5d1b05960d3b45492b3e2c44a0ea7688 \
    2729                    rmd160  7867fba4fc5a250a0030034dd89fef74df3dfbbd
    2830
     31build.args          --librsync-dir=${prefix}
     32universal_variant   no
     33python.link_binaries yes
     34
     35depends_run-append  port:py26-gnupg \
     36                    port:py26-boto \
     37                    port:ncftp
     38
    2939depends_lib-append  port:librsync \
    3040                    port:gnupg
    3141
    32 depends_run-append  port:ncftp
    33 
    34 build.args     --librsync-dir=${prefix}
    35 
    36 universal_variant no
    37 
    38 if {![variant_isset python25] && ![variant_isset python26]} {
    39     default_variants    +python26
    40 }                   
    41                    
    42 variant python25 description {Uses Python 2.5} conflicts python26 {
    43     PortGroup           python25 1.0
    44     depends_run-append  port:py25-gnupg \
    45                         port:py25-boto
    46     # setting the PortGroup clears a lot of other settings, which means
    47     # we need to remind MacPorts about them.
    48     categories          sysutils
    49     depends_lib-append  port:librsync \
    50                         port:gnupg
    51 }
    52 
    53 variant python26 description {Uses Python 2.6} conflicts python25 {
    54     PortGroup           python26 1.0
    55     depends_run-append  port:py26-gnupg \
    56                         port:py26-boto
    57     # setting the PortGroup clears a lot of other settings, which means
    58     # we need to remind MacPorts about them.
    59     categories          sysutils
    60     depends_lib-append  port:librsync \
    61                         port:gnupg
    62     # this is apparently required due to the way Python 2.6 installs as
    63     # a framework
    64     post-destroot {
    65         PortGroup       python26 1.0
    66         ln -s ${python.prefix}/bin/duplicity ${destroot}${prefix}/bin/
    67     }
    68 }
    69 
    7042livecheck.type    regex
    7143livecheck.url     https://launchpad.net/duplicity/+download
    7244livecheck.regex   {duplicity-(\d+(?:\.\d+)*).tar.gz}