Ignore:
Timestamp:
Feb 13, 2014, 8:12:33 PM (5 years ago)
Author:
and.damore@…
Message:

port bitcoin: fix building on 10.9, upgrade version to 0.8.6, change bitcoind path to bin rather than sbin, add patch for building 0.8.6; fix #42116; openmaintainer

Location:
trunk/dports/finance/bitcoin
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/finance/bitcoin/Portfile

    r111855 r117040  
    55name                bitcoin
    66categories          finance crypto
    7 version             0.8.5
    8 revision            0
     7version             0.8.6
    98platforms           darwin
    109license             MIT
     
    1918master_sites        sourceforge
    2019distname            ${name}-${version}-linux
    21 checksums           md5     df456ff0bd037657d5de640715e740c8 \
    22                     sha1    f2cb0c55633cab822fb7024357aac17cf5de2b3a \
    23                     rmd160  82e99dc536a942102b5909580aa1b3cf2da0e3e0
     20checksums           md5     4c24497a3c88adf1ef9855efaf31cf87 \
     21                    sha1    a95b20338a14bb6aa379285828fb0a13b9f6c0e4 \
     22                    rmd160  7a1e4055a6e77cfaafab2f92ea0400238ea8a256
    2423
    2524depends_lib         port:boost \
     
    3534}
    3635
     36patchfiles          patch_src_src_serialize_h.diff
    3737build.args          ""
    3838build.pre_args      ""
     
    4040build.target        ""
    4141build.cmd           (cd src && make -f makefile.osx ) && make
     42
     43post-build {
     44    set year [clock format [clock seconds] -format %Y]
     45   
     46    reinplace -W ${worksrcpath}/Bitcoin-Qt.app/Contents "s|\$VERSION|${version}|" Info.plist
     47    reinplace -W ${worksrcpath}/Bitcoin-Qt.app/Contents "s|\$YEAR|${year}|" Info.plist
     48}
    4249
    4350destroot {
     
    4956            ${destroot}${prefix}/bin/bitcoin-qt
    5057    }
    51     xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin
     58    xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/bin
    5259
    5360    set docdir ${destroot}${prefix}/share/doc/${name}
    5461    xinstall -d ${docdir}
    5562    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir}
     63   
     64    xinstall -d ${destroot}${applications_dir}
     65    file rename ${worksrcpath}/Bitcoin-Qt.app ${destroot}${applications_dir}/Bitcoin-Qt.app
    5666}
    5767
Note: See TracChangeset for help on using the changeset viewer.