# $Id: Portfile 78733 2011-05-20 10:05:11Z ryandesign@macports.org $

PortSystem 1.0

name              rtorrent-devel
set real_name     rtorrent
version           0.8.8
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     sha1    7c139800eb95725741fdfe146b32015ffd32e10e \
              rmd160  f1bb6c3d06988afa4de4649a545ff21bab4a7cfa

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

variant xmlrpc description {Enable XMLRPC interface} {
    configure.args-append  --with-xmlrpc-c
    depends_lib-append     port:xmlrpc-c
}

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  ${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
