Ticket #37353: bitcoin.Portfile.diff

File bitcoin.Portfile.diff, 4.6 KB (added by sami.laine@…, 11 years ago)

Portfile with both client (bitcoin-qt) and daemon (bitcoind) in the same package.

  • finance/bitcoin/Portfile

    old new  
    1 # $Id: Portfile 99643 2012-11-13 04:26:02Z singingwolfboy@macports.org $
     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
     2# $Id$
    23
    34PortSystem          1.0
    45name                bitcoin
    56categories          finance crypto
    6 version             0.3.22
     7version             0.7.2
     8revision            1
    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         Sami Laine yopmail.com:sami.laine
     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     a9596526a3c9d62cbcab5dd45957c717 \
     24                    sha1    f09891283a322e095c67bedd3d5e37f4dd72c67f \
     25                    rmd160  4946c02fbd72eb7c24b7ccc095ddc1c8595de9e8
    2426
    2527depends_lib         port:boost \
    2628                    port:openssl \
    2729                    port:db48 \
    28                     port:wxWidgets-devel \
    29                     port:miniupnpc
     30                    port:qt4-mac
     31
     32worksrcdir          ${name}-${version}-linux/src
     33
     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
    3043
    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}
    42 
    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}
    47 
    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 {
     45    xinstall -d ${destroot}${prefix}/bin
     46    xinstall -d ${destroot}${prefix}/sbin
    5547    xinstall -m 755 -W ${worksrcpath} \
    56         bitcoin bitcoind ${destroot}${prefix}/bin
     48          Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \
     49          ${destroot}${prefix}/bin/bitcoin-qt
     50    xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin
    5751
    5852    set docdir ${destroot}${prefix}/share/doc/${name}
    5953    xinstall -d ${docdir}
    60     xinstall -m 444 -W ${worksrcpath}/.. readme.txt license.txt ${docdir}
    61  
    62     file copy ${worksrcpath}/../Bitcoin.app ${destroot}${applications_dir}/
     54    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir}
    6355}
    6456
    65 # Tweak the Sourceforge livechecking
    66 livecheck.regex     {/bitcoin-(\d+(?:\.\w+)+)/README}
     57# end of file.