# -*- 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 90793 2012-03-14 19:01:44Z snc@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                timedrive
version             0.4.0
categories          sysutils net
maintainers         snc
license             GPL-2
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/time-drive

platforms           darwin
depends_build-append \
                    port:py27-pyqt4 \
                    port:py27-sip \
                    port:py27-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}

checksums           rmd160  da3391168be43c47160c792b811f46aa3439461b \
                    sha256  089f688898c0445335a5f5ad9cf3d39bc4843d6d8a178d566ac80b98d2889ff0

worksrcdir          [string tolower ${worksrcdir}]

#patch {
#    reinplace s|pyrcc4|pyrcc4-2.7|g ${worksrcpath}/BuildUi.sh
#    reinplace s|pyuic4|pyuic4-2.7|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 -W ${worksrcpath} "./BuildUi.sh"
#}

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