source: trunk/dports/finance/bitcoin/Portfile @ 136014

Last change on this file since 136014 was 136014, checked in by ryandesign@…, 4 years ago

bitcoin: fix build failure when "configureccache yes" is set in macports.conf by telling bitcoin's configure script not to try to be in charge of when to use ccache

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
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: Portfile 136014 2015-05-09 17:30:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                bitcoin
7categories          finance crypto
8version             0.10.1
9platforms           darwin
10license             MIT
11maintainers         easieste yopmail.com:sami.laine openmaintainer
12description         client user interface for a peer-to-peer digital currency
13long_description    Bitcoin is a peer-to-peer digital currency. By peer-to-peer,  \
14                    we mean that there is no central authority to issue \
15                    new Bitcoins or keep track of transactions. Instead, these \
16                    tasks are managed collectively by the Bitcoin protocol \
17                    operating through the nodes of the network.
18homepage            http://www.bitcoin.org/
19
20master_sites        https://bitcoin.org/bin/bitcoin-core-0.10.1/
21
22worksrcdir          ${name}-${version}
23checksums           rmd160  5aeaaeeff59d77b9f8e1a5a3bba04379d7190c73 \
24                    sha256  287873f9ba4fd49cd4e4be7eba070d2606878f1690c5be0273164d37cbf3c138
25
26depends_build       port:pkgconfig \
27                    port:autoconf \
28                    port:automake \
29                    port:libtool
30
31depends_lib         port:boost \
32                    port:openssl \
33                    port:db48 \
34                    port:miniupnpc \
35                    port:protobuf-cpp
36
37use_parallel_build  no
38
39patchfiles      \
40    src-rpcrawtransaction.cpp.diff
41
42configure.args      --disable-ccache
43
44# TODO: Restore GUI: needs to move to qt5, as it doesn't look like qt4 is going to get fixed.
45default_variants     +daemon
46
47variant gui description {NOT WORKING Build with qt4 (Broken in qt4 moc inclusion of boost headers) } {
48    configure.cmd-append    --with-gui=qt4
49    depends_lib-append      port:qt4-mac
50    build.args-add          appbundle
51}
52
53variant daemon description {Build and install only the bitcoind daemon} {
54    configure.cmd-append    --with-gui=no
55    build.args-delete       appbundle
56}
57
58destroot {
59    xinstall -d ${destroot}${prefix}/bin
60#    if {![variant_isset daemon]} {
61#        set bundle_name Bitcoin-Qt.app
62#        xinstall -m 755 -d ${destroot}${applications_dir}
63#        copy ${worksrcpath}/${bundle_name} ${destroot}${applications_dir}/${bundle_name}
64#    }
65    xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/bin
66    xinstall -m 755 -W ${worksrcpath} src/bitcoin-cli ${destroot}${prefix}/bin
67
68    set docdir ${destroot}${prefix}/share/doc/${name}
69    xinstall -d ${docdir}
70    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*.md] ${docdir}
71}
72
73# TODO
74#
75## Automate creation of nonce RPC credentials
76## Add launchctl hooks for daemon
77
78notes "
79
801.  Sanity in scripting:
81
82    cmd$ ln -s \"~/Library/Application Support/Bitcoin\" ~/.bitcoin
83
842.  View progress with:
85
86    cmd$ tail -F ~/.bitcoin/debug.log
87
883.  Edit ~/.bitcoin/bitcoin.conf with RPC credentials
89
904.  Start in background via:
91   
92    cmd$ ${prefix}/sbin/bitcoind -daemon
93
94"
Note: See TracBrowser for help on using the repository browser.