# $Id: Portfile 55828 2009-08-20 02:07:25Z singingwolfboy@macports.org $

PortSystem    1.0

name          duplicity
version       0.5.18
categories    sysutils
platforms     darwin
maintainers   singingwolfboy openmaintainer

description   Encrypted bandwidth-efficient backup.
long_description  Duplicity backs directories by producing encrypted \
      tar-format volumes and uploading them to a remote or local file \
      server. Because duplicity uses librsync, the incremental archives \
      are space efficient and only record the parts of files that have \
      changed since the last backup. Because duplicity uses GnuPG to \
      encrypt and/or sign these archives, they will be safe from spying \
      and/or modification by the server.

homepage      http://duplicity.nongnu.org/
master_sites  https://launchpad.net/duplicity/stable/${version}/+download \
              https://launchpad.net/duplicity/trunk/${version}/+download

checksums     md5     77fcbe30b300450af17d811eec339765 \
              sha1    3999a59236900b4e8fba134dfa4b49155869694e \
              rmd160  fb2b89ac40e4122503196c16b574ef338bf71182

depends_lib-append  port:librsync \
                    port:gnupg

depends_run-append  port:ncftp

build.args     --librsync-dir=${prefix}

universal_variant no

if {![variant_isset python25] && ![variant_isset python26]} {
    default_variants    +python26
}                   
                    
variant python25 description {Uses Python 2.5} conflicts python26 {
    PortGroup           python25 1.0
    depends_run-append  port:py25-gnupg \
                        port:py25-boto
    # setting the PortGroup clears a lot of other settings, which means
    # we need to remind MacPorts about them.
    categories          sysutils
    depends_lib-append  port:librsync \
                        port:gnupg
}

variant python26 description {Uses Python 2.6} conflicts python25 {
    PortGroup           python26 1.0
    depends_run-append  port:py26-gnupg \
                        port:py26-boto
    # setting the PortGroup clears a lot of other settings, which means
    # we need to remind MacPorts about them.
    categories          sysutils
    depends_lib-append  port:librsync \
                        port:gnupg
}

livecheck.check   regex
livecheck.url     ${homepage}
livecheck.regex   {The current (?:stable )?release is (\d+(?:\.\d+)*)}
