# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 57631 2009-09-14 12:47:26Z mnick@macports.org $

PortSystem      1.0
PortGroup       xcode 1.0

name            transmission
version         1.75
categories      net aqua
maintainers     mnick openmaintainer
description     Lightweight BitTorrent client
long_description \
    Transmission is a free, lightweight BitTorrent client. \
    It features a simple, intuitive interface on top of an \
    efficient, cross-platform back-end. Transmission is open \
    source (MIT license) and runs on Mac OS X (Cocoa interface), \
    Linux/NetBSD/FreeBSD/OpenBSD (GTK+ interface) and BeOS \
    (native interface). \
    This is the Cocoa version.
homepage        http://www.transmissionbt.com/

master_sites    http://download.m0k.org/transmission/files/
checksums       md5     bb1888dd0c0c6a9944a80d0a270d9375 \
                sha1    e8dc6cb7b4b3211a27f227026ed609c663772a9a \
                rmd160  783694c0076c48b173bc305af4172be1ab4e673b
use_lzma        yes

patchfiles      patch-project.pbxproj.diff
platforms       macosx

depends_lib     port:gettext

xcode.target            Transmission
xcode.configuration     Release

destroot {
    file copy ${worksrcpath}/build/${xcode.configuration}/Transmission.app \
        ${destroot}${applications_dir}/Transmission.app
}

livecheck.url       ${homepage}/download.php
livecheck.regex     The current release version is <b>(.*)</b>
