source: trunk/dports/net/transmission/Portfile

Last change on this file was 146739, checked in by easieste@…, 16 months ago

net/transmission: update to transmission-2.92

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 146739 2016-03-16 15:53:35Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       xcode 1.0
6
7name            transmission
8version         2.92
9categories      net aqua
10maintainers     khindenburg openmaintainer
11license         MIT GPL-2
12
13description     Lightweight BitTorrent client
14long_description \
15    Transmission is a free, lightweight BitTorrent client. \
16    It features a simple, intuitive interface on top of an \
17    efficient, cross-platform back-end. Transmission is open \
18    source (MIT license) and runs on Mac OS X (Cocoa interface), \
19    Linux/NetBSD/FreeBSD/OpenBSD (GTK+ interface) and BeOS \
20    (native interface). \
21    This is the Cocoa version.
22homepage        http://www.transmissionbt.com/
23
24master_sites    http://download.m0k.org/transmission/files/ \
25                http://download.transmissionbt.com/files/
26
27checksums       \
28    rmd160  6da78ce333fa2ea69aa4954c3b052a818ce7c93e \
29    sha256  3a8d045c306ad9acb7bf81126939b9594553a388482efa0ec1bfb67b22acd35f
30
31use_xz          yes
32
33patchfiles      patch-xcodebuild.diff patch-sparkle.diff \
34                patch-disable-sparkle-menu.diff
35platforms       macosx
36
37depends_lib-append      port:gettext \
38                        port:libevent \
39                        port:curl
40
41xcode.target            Transmission
42xcode.configuration     Release
43
44variant daemon description {Builds headless daemon} {
45    xcode.target-append transmission-daemon
46    xcode.target-append transmission-remote
47}
48
49pre-patch {
50    reinplace -E "s%third-party/(curl|libevent|openssl)/(include|lib)%@@PREFIX@@/\\2%g" \
51        ${worksrcpath}/Transmission.xcodeproj/project.pbxproj
52}
53
54post-patch {
55    reinplace -E "s|@@PREFIX@@|${prefix}|g" \
56        ${worksrcpath}/Transmission.xcodeproj/project.pbxproj
57}
58
59destroot {
60    file copy ${worksrcpath}/build/${xcode.configuration}/Transmission.app \
61        ${destroot}${applications_dir}/Transmission.app
62
63    if {[variant_isset daemon]} {
64        xinstall -m 755 -W ${worksrcpath}/build/${xcode.configuration} \
65        transmission-daemon transmission-remote \
66        ${destroot}${prefix}/bin
67
68        xinstall -m 644 -W ${worksrcpath}/daemon \
69        transmission-daemon.1 transmission-remote.1 \
70        ${destroot}${prefix}/share/man/man1
71   }
72}
73
74if {${os.major} < 12} {
75    pre-fetch {
76        ui_error "${name} ${version} requires OS X 10.8 or greater."
77        return -code error "incompatible OS X version"
78    }
79}
80
81livecheck.url       ${homepage}/download.php
82livecheck.regex     The current release version is <b>(.*)</b>
Note: See TracBrowser for help on using the repository browser.