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

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

finance/bitcoin: update to 0.11.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 138844 2015-07-21 07:18:30Z easieste@macports.org $
3
4PortSystem          1.0
5
6name                bitcoin
7categories          finance crypto
8version             0.11.0
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.
18
19homepage            https://bitcoin.org/
20master_sites        ${homepage}bin/bitcoin-core-${version}/
21
22checksums           rmd160  1b657542fd7ee342d08c2880785b49f8b1541841 \
23                    sha256  51ba1756addfa71567559e3f22331c1d908a63571891287689fff7113035d09f
24
25depends_build       port:pkgconfig \
26                    port:autoconf \
27                    port:automake \
28                    port:libtool
29
30depends_lib         port:boost \
31                    port:openssl \
32                    port:db48 \
33                    port:miniupnpc \
34                    port:protobuf-cpp
35
36use_parallel_build  no
37
38#patchfiles      \
39#    src-rpcrawtransaction.cpp.diff # for 0.10.1
40
41configure.args      --disable-ccache \
42                    --disable-silent-rules
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#    if {![variant_isset daemon]} {
60#        copy ${worksrcpath}/Bitcoin-Qt.app ${destroot}${applications_dir}
61#    }
62    xinstall -W ${worksrcpath}/src bitcoin-cli bitcoind ${destroot}${prefix}/bin
63
64    set docdir ${prefix}/share/doc/${name}
65    xinstall -d ${destroot}${docdir}
66    xinstall -m 444 -W ${worksrcpath} {*}[glob ${worksrcpath}/doc/*.md] ${destroot}${docdir}
67}
68
69# TODO
70#
71## Automate creation of nonce RPC credentials
72## Add launchctl hooks for daemon
73
74notes "
75
761.  Sanity in scripting:
77
78    cmd$ ln -s \"~/Library/Application Support/Bitcoin\" ~/.bitcoin
79
802.  View progress with:
81
82    cmd$ tail -F ~/.bitcoin/debug.log
83
843.  Edit ~/.bitcoin/bitcoin.conf with RPC credentials
85
864.  Start in background via:
87   
88    cmd$ ${prefix}/sbin/bitcoind -daemon
89
90"
91
92livecheck.type      regex
93livecheck.url       ${homepage}bin/
94livecheck.regex     ${name}-core-(\[0-9.\]+)/
Note: See TracBrowser for help on using the repository browser.