Ignore:
Timestamp:
Feb 27, 2013, 12:21:12 PM (6 years ago)
Author:
easieste@…
Message:

finance/bitcoin: now builds bitcoin-0.8.0 with Qt interface by default.

Use the +daemon variant to only build the bitcoind daemon.

Credits to Sami Laine who did most of the heavy lifting to get the
portfile to this state.

Mark as openmaintainer. Add easieste and Sami as co-maintainers.

Fixes #37353.

File:
1 edited

Legend:

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

    r99643 r103500  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
     
    45name                bitcoin
    56categories          finance crypto
    6 version             0.3.22
     7version             0.8.0
     8revision            0
    79platforms           darwin
    810license             MIT
    9 maintainers         nomaintainer
    10 description         a peer-to-peer digital currency
    11 long_description    \
    12     Bitcoin is a peer-to-peer digital currency. Peer-to-peer (P2P) means that \
    13     there is no central authority to issue new money or keep track of \
    14     transactions. Instead, these tasks are managed collectively by the nodes \
    15     of the network.
    16 
     11maintainers         yopmail.com:sami.laine easieste openmaintainer
     12description         client user interface for a peer-to-peer digital currency
     13long_description    Bitcoin is a peer-to-peer digital currency. Peer-to-peer \
     14                    (P2P) means that there is no central authority to issue \
     15                    new money or keep track of transactions. Instead, these \
     16                    tasks are managed collectively by the nodes of then \
     17                    network. \
     18                    This port is for client user interface, if you're looking \
     19                    for daemon, use port `bitcoind´ instead.
    1720homepage            http://www.bitcoin.org/
    1821master_sites        sourceforge
    19 distname            ${name}-${version}-macosx
    20 use_zip             yes
    21 checksums           md5     5daa8d577e5ee081a4eae7cf4845f76c \
    22                     sha1    5798efd33d38d530428d22aa4edf37e99731072e \
    23                     rmd160  094c90358ed24be23feb66db6c68c6525e6234fc
     22distname            ${name}-${version}-linux
     23checksums           md5     112ba1251136b72ab341250fe9a513a9 \
     24                    sha1    a7096a816eed8e77a3a1fc20da850da489c9b4fb \
     25                    rmd160  3bbfa95d28c4ce76a607c1dbd887cbbdd6c3721e
    2426
    2527depends_lib         port:boost \
    2628                    port:openssl \
    2729                    port:db48 \
    28                     port:wxWidgets-devel \
    29                     port:miniupnpc
     30                    port:qt4-mac
    3031
    31 supported_archs     x86_64
    32 universal_variant   no
    33 worksrcdir          ${name}-${version}/src
    34 set makefile ${worksrcpath}/makefile.osx
    35 configure {
    36     reinplace "s|^DEPSDIR=.*$|DEPSDIR=${prefix}|" ${makefile}
    37     reinplace "s|-I\"\$\(DEPSDIR\)\/include\"|-I${prefix}/include -I${prefix}/include/db48|" ${makefile}
    38     reinplace "s|lib/libdb_cxx-4.8.a|lib/db48/libdb_cxx-4.8.dylib|" ${makefile}
    39     reinplace "s|lib/libboost_thread.a|lib/libboost_thread-mt.dylib|" ${makefile}
    40     reinplace "s|\\\.a|.dylib|" ${makefile}
    41     reinplace "s|/miniupnpc/|/lib/|" ${makefile}
     32worksrcdir          ${name}-${version}-linux/src
    4233
    43     # The QuickTime framework isn't actually needed, and it doesn't exist for
    44     # x86_64, but wx-config --libs spits it out anyway, so we'll filter it out
    45     # with sed.
    46     reinplace "s|wx-config --libs --static|wx-config --libs \\\| sed -e \"s/-framework QuickTime//\"|g" ${makefile}
     34configure.args      ""
     35configure.pre_args  ""
     36configure.post_args ""
     37configure.cmd       qmake
     38build.args          ""
     39build.pre_args      ""
     40build.post_args     ""
     41build.target        ""
     42build.cmd           (cd src && make -f makefile.osx ) && make
    4743
    48     # Building with i386 support seems to make everything explode, so we'll
    49     # remove it.
    50     reinplace "s|-arch i386||" ${makefile}
    51 }
    52 build.args          -f ${makefile}
    53 build.target-append bitcoind
    5444destroot {
    55     xinstall -m 755 -W ${worksrcpath} \
    56         bitcoin bitcoind ${destroot}${prefix}/bin
     45    xinstall -d ${destroot}${prefix}/bin
     46    xinstall -d ${destroot}${prefix}/sbin
     47    if {![variant_isset daemon]} {
     48        xinstall -m 755 -W ${worksrcpath} \
     49            Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \
     50            ${destroot}${prefix}/bin/bitcoin-qt
     51    }
     52    xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin
    5753
    5854    set docdir ${destroot}${prefix}/share/doc/${name}
    5955    xinstall -d ${docdir}
    60     xinstall -m 444 -W ${worksrcpath}/.. readme.txt license.txt ${docdir}
    61  
    62     file copy ${worksrcpath}/../Bitcoin.app ${destroot}${applications_dir}/
     56    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir}
    6357}
    6458
    65 # Tweak the Sourceforge livechecking
    66 livecheck.regex     {/bitcoin-(\d+(?:\.\w+)+)/README}
     59variant daemon description {Build and install only the bitcoind deamon} {
     60    set build.cmd "cd src && make -f makefile.osx"
     61    depends_lib-delete port:qt4-mac
     62}
     63
Note: See TracChangeset for help on using the changeset viewer.