Ticket #33011: transmission.patch

File transmission.patch, 1.0 KB (added by jon.olsson@…, 13 years ago)
  • (a) Portfile vs. (b) /Users/jon/transmission-Portfile

    a b  
    3838
    3939xcode.target            Transmission
    4040xcode.configuration     Release
     41 
     42variant daemon description {Builds headless daemon} {
     43    xcode.target-append transmission-daemon
     44    xcode.target-append transmission-remote
     45}
    4146
    4247pre-patch {
    4348    reinplace -E "s%third-party/(curl|libevent|openssl)/(include|lib)%@@PREFIX@@/\\2%g" \
     
    5257destroot {
    5358    file copy ${worksrcpath}/build/${xcode.configuration}/Transmission.app \
    5459        ${destroot}${applications_dir}/Transmission.app
     60
     61    if {[variant_isset daemon]} {
     62        xinstall -m 755 -W ${worksrcpath}/build/${xcode.configuration} \
     63            transmission-daemon transmission-remote \
     64            ${destroot}${prefix}/bin
     65
     66        xinstall -m 644 -W ${worksrcpath}/daemon \
     67            transmission-daemon.1 transmission-remote.1 \
     68            ${destroot}${prefix}/share/man/man1
     69    }
    5570}
    5671
    5772if {${os.major} < 11} {