# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 121619 2014-07-02 14:30:03Z khindenburg@macports.org $ PortSystem 1.0 PortGroup xcode 1.0 name transmission version 2.84 categories net aqua maintainers khindenburg openmaintainer license MIT GPL-2 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/ \ http://download.transmissionbt.com/files/ checksums rmd160 9d209bdf0ebeb6f4d6d9dc726cf8bf9e9c8ccb40 \ sha256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb use_xz yes patchfiles patch-xcodebuild.diff patch-sparkle.diff \ patch-disable-sparkle-menu.diff platforms macosx depends_lib-append port:gettext \ port:libevent \ port:curl xcode.target Transmission xcode.configuration Release variant daemon description {Builds headless daemon} { xcode.target-append transmission-daemon xcode.target-append transmission-remote } pre-patch { reinplace -E "s%third-party/(curl|libevent|openssl)/(include|lib)%@@PREFIX@@/\\2%g" \ ${worksrcpath}/Transmission.xcodeproj/project.pbxproj } post-patch { reinplace -E "s|@@PREFIX@@|${prefix}|g" \ ${worksrcpath}/Transmission.xcodeproj/project.pbxproj } destroot { file copy ${worksrcpath}/build/${xcode.configuration}/Transmission.app \ ${destroot}${applications_dir}/Transmission.app if {[variant_isset daemon]} { xinstall -m 755 -W ${worksrcpath}/build/${xcode.configuration} \ transmission-daemon transmission-remote \ ${destroot}${prefix}/bin xinstall -m 644 -W ${worksrcpath}/daemon \ transmission-daemon.1 transmission-remote.1 \ ${destroot}${prefix}/share/man/man1 } } if {${os.major} < 12} { pre-fetch { ui_error "${name} ${version} requires OS X 10.8 or greater." return -code error "incompatible OS X version" } } livecheck.url ${homepage}/download.php livecheck.regex The current release version is (.*)