# $Id: Portfile 66027 2010-04-05 04:48:43Z ryandesign@macports.org $

PortSystem 1.0

name              rtorrent-devel
set real_name     rtorrent
version           0.8.6
categories        net
platforms         darwin
maintainers       gmail.com:gardnermj
description       console-based BitTorrent client (unstable release)
long_description  rTorrent is a console-based BitTorrent client. It aims to \
                  be a fully-featured and efficient client with the ability to \
                  run in the background using screen. It supports fast-resume \
                  and session management. \
                  This is the "unstable" release of rTorrent.

homepage      http://libtorrent.rakshasa.no/
master_sites  ${homepage}downloads/
distname      ${real_name}-${version}
checksums     md5 b804c45c01c40312926bcea6b55bb084 \
              sha1 ffce3959ba91738bb444d689db3db1e2375b14ce \
              rmd160 3d5109d4ee26c663b376e0b9f610ab6055c57ba9

depends_lib  port:curl \
             port:libsigcxx2 \
             port:libtorrent-devel \
             port:ncurses \
             port:openssl \
             port:zlib

configure.args  --mandir=${prefix}/share/man \
                --disable-debug \
                --enable-ipv6

livecheck.name  ${real_name}

variant xmlrpc description {Enable XMLRPC interface} {
    configure.args-append  --with-xmlrpc-c
    depends_lib-append     port:xmlrpc-c
}
livecheck.type	regex
livecheck.url	${master_sites}
livecheck.regex "${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
