# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                timedrive
version             0.3.1
categories          sysutils net
maintainers         snc
description         incremental backup across networks
long_description    Time Drive is a front-end utility for duplicity. It makes \
                    backup to an external file server easy and efficient. Time \
                    Drive supports WebDAV, secure WebDAV, FTP, SSH, and SCP. \
                    It can also be configured to work with Samba.

homepage            http://www.oak-tree.us/blog/index.php/science-and-technology/time-drive

platforms           darwin
depends_build-append \
                    port:py26-pyqt4 \
                    port:py26-sip \
                    port:py26-distribute
depends_lib-append  port:duplicity
depends_run-append  port:ncftp

master_sites        http://www.oak-tree.us/stuff/Time-Drive
distname            Time-Drive-${version}
use_zip             yes

checksums           md5     96dfbd0b32bc1e5e3388dd38fad1e04c \
                    sha1    6257a39e5e220a55f5d803da53321b3697416d1e \
                    rmd160  3ac4d1a59976c6ee2e89e31a4377a77688514f5a

worksrcdir          [string tolower ${worksrcdir}]

#patch {
#    reinplace s|pyrcc4|pyrcc4-2.6|g ${worksrcpath}/BuildUi.sh
#    reinplace s|pyuic4|pyuic4-2.6|g ${worksrcpath}/BuildUi.sh
#    file attributes ${worksrcpath}/BuildUi.sh -permissions +x
#    file copy ${filespath}/setup.py ${worksrcpath}/
#    reinplace s|backends|backend|g ${worksrcpath}/duplicity_interface.py
#}

#pre-build {
#    system "cd ${worksrcpath} && ./BuildUi.sh"
#}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     Time Drive \\((\\d+\\.\\d+\\.\\d+)\\)
