-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
53 lines (44 loc) · 2.07 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- 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
# $Id$
PortSystem 1.0
name bitcoin
categories finance crypto
version 0.9.0
platforms darwin
license MIT
maintainers easieste openmaintainer yopmail.com:sami.laine
description client user interface for a peer-to-peer digital currency
long_description Bitcoin is a peer-to-peer digital currency. By peer-to-peer, \
we mean that there is no central authority to issue \
new Bitcoins or keep track of transactions. Instead, these \
tasks are managed collectively by the Bitcoin protocol \
operating through the nodes of the network.
homepage http://www.bitcoin.org/
master_sites https://github.com/[string repeat "$name/" 2]archive/
distname v${version}
worksrcdir ${name}-${version}
checksums rmd160 aec2cc5f5d035728864577d5575d460e52c0fbf6 \
sha256 229e5e13ff45f6d4302d618859aee9d36791f93bc7357d02bf2fabc683fdf2f4
depends_lib port:boost \
port:openssl \
port:db48 \
port:miniupnpc \
port:qt4-mac \
port:protobuf-cpp
configure.cmd ./autogen.sh && ./configure
variant daemon description {Build and install only the bitcoind daemon} {
configure.cmd-append --with-gui=no
depends_lib-delete port:qt4-mac
}
destroot {
xinstall -d ${destroot}${prefix}/bin
if {![variant_isset daemon]} {
xinstall -m 755 -W ${worksrcpath} \
src/qt/bitcoin-qt ${destroot}${prefix}/bin
}
xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/bin
xinstall -m 755 -W ${worksrcpath} src/bitcoin-cli ${destroot}${prefix}/bin
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*.md] ${docdir}
}