# $Id: Portfile 67409 2010-05-08 06:02:04Z ryandesign@macports.org $

PortSystem          1.0

name                rvm
version             1.05
categories          sysutils net
platforms           darwin
maintainers         nomaintainer
description         archive manager to manage backups of multiple clients
long_description    The Rsync Vault Manager is an archive manager that \
                    uses rsync to manage backups of multiple clients \
                    across multiple logical partitions (vaults).

homepage            http://rvm.sourceforge.net/
master_sites        sourceforge

checksums           md5     936ab43f12b5bc54575f55e60c03034d \
                    sha1    8194aa8602ea235a37bca8728f113772c5755426 \
                    rmd160  fc73cf31b780e7d313300e7573c0f3026e7ea447

distfiles           [suffix ${name}_${version}]

depends_lib         path:bin/rsync:rsync

post-extract {
    xinstall -m 644 -W ${filespath} types.cc rmath.cc ${worksrcpath}
}

patchfiles          patch-rvm.diff

use_autoreconf      yes

configure.args      --with-rsync=${prefix}/bin/rsync \
                    --with-default-config-file=${prefix}/etc/rvm.conf \
                    --with-default-log-dir=${prefix}/var/log/rvm \
                    --mandir=${prefix}/share/man

# avoid ridiculous conftest that uses up all memory to see if it gets an error when it runs out of memory
configure.args-append ac_cv_cxx_exception_on_failed_alloc=yes

test.run            yes
test.target         check

destroot.keepdirs   ${destroot}${prefix}/var/log/rvm
