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

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

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 103500 2013-02-27 12:21:12Z easieste@macports.org $
3
4PortSystem          1.0
5name                bitcoin
6categories          finance crypto
7version             0.8.0
8revision            0
9platforms           darwin
10license             MIT
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.
20homepage            http://www.bitcoin.org/
21master_sites        sourceforge
22distname            ${name}-${version}-linux
23checksums           md5     112ba1251136b72ab341250fe9a513a9 \
24                    sha1    a7096a816eed8e77a3a1fc20da850da489c9b4fb \
25                    rmd160  3bbfa95d28c4ce76a607c1dbd887cbbdd6c3721e
26
27depends_lib         port:boost \
28                    port:openssl \
29                    port:db48 \
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
43
44destroot {
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
53
54    set docdir ${destroot}${prefix}/share/doc/${name}
55    xinstall -d ${docdir}
56    eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir}
57}
58
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 TracBrowser for help on using the repository browser.