Changeset 118125 for trunk/dports


Ignore:
Timestamp:
Mar 23, 2014, 9:59:56 AM (10 years ago)
Author:
easieste@…
Message:

Update to bitcoin-0.9.0.

Port now builds from git source avoiding large Linux binary
distribution download.

The qt client is now installed as `bitcoin-qt' as the packaging for
the OS X app seems to be buried in the release process. As such, the
dependency on the qmake PortGroup has also been removed.

File:
1 edited

Legend:

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

    r117040 r118125  
    55name                bitcoin
    66categories          finance crypto
    7 version             0.8.6
     7version             0.9.0
    88platforms           darwin
    99license             MIT
    10 maintainers         yopmail.com:sami.laine easieste openmaintainer
     10maintainers         easieste openmaintainer yopmail.com:sami.laine
    1111description         client user interface for a peer-to-peer digital currency
    1212long_description    Bitcoin is a peer-to-peer digital currency. By peer-to-peer,  \
     
    1616                    operating through the nodes of the network.
    1717homepage            http://www.bitcoin.org/
    18 master_sites        sourceforge
    19 distname            ${name}-${version}-linux
    20 checksums           md5     4c24497a3c88adf1ef9855efaf31cf87 \
    21                     sha1    a95b20338a14bb6aa379285828fb0a13b9f6c0e4 \
    22                     rmd160  7a1e4055a6e77cfaafab2f92ea0400238ea8a256
     18
     19fetch.type          git
     20git.url             https://github.com/bitcoin/bitcoin.git
     21git.branch          v${version}
    2322
    2423depends_lib         port:boost \
     
    2827                    port:qt4-mac
    2928
    30 worksrcdir          ${name}-${version}-linux/src
     29configure.cmd       ./autogen.sh && ./configure
    3130
    32 if {![variant_isset daemon]} {
    33     PortGroup            qmake 1.0
    34 }
    35 
    36 patchfiles          patch_src_src_serialize_h.diff
    37 build.args          ""
    38 build.pre_args      ""
    39 build.post_args     ""
    40 build.target        ""
    41 build.cmd           (cd src && make -f makefile.osx ) && make
    42 
    43 post-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
     31variant daemon description {Build and install only the bitcoind daemon} {
     32    configure.cmd-append    --with-gui=no
     33    depends_lib-delete      port:qt4-mac
    4834}
    4935
    5036destroot {
    5137    xinstall -d ${destroot}${prefix}/bin
    52     xinstall -d ${destroot}${prefix}/sbin
    5338    if {![variant_isset daemon]} {
    5439        xinstall -m 755 -W ${worksrcpath} \
    55             Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \
    56             ${destroot}${prefix}/bin/bitcoin-qt
     40            src/qt/bitcoin-qt ${destroot}${prefix}/bin
    5741    }
    5842    xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/bin
     43    xinstall -m 755 -W ${worksrcpath} src/bitcoin-cli ${destroot}${prefix}/bin
    5944
    6045    set docdir ${destroot}${prefix}/share/doc/${name}
    6146    xinstall -d ${docdir}
    62     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
     47    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*.md] ${docdir}
    6648}
    6749
    68 variant daemon description {Build and install only the bitcoind daemon} {
    69     use_configure no
    70     build.cmd "cd src && make -f makefile.osx"
    71     depends_lib-delete port:qt4-mac
    72 }
    7350
Note: See TracChangeset for help on using the changeset viewer.