-
Notifications
You must be signed in to change notification settings - Fork 0
/
libbitcoin-node.rb
36 lines (31 loc) · 1.01 KB
/
libbitcoin-node.rb
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
require 'formula'
class LibbitcoinNode < Formula
homepage 'https://libbitcoin.org/'
url 'https://github.com/libbitcoin/libbitcoin-node.git'
version "20160526"
depends_on 'automake' => :build
depends_on 'secp256k1'
depends_on 'libbitcoin'
depends_on 'libbitcoin-database'
depends_on 'libbitcoin-consensus'
depends_on 'libbitcoin-blockchain'
depends_on 'libbitcoin-network'
depends_on 'libbitcoin-protocol'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
def install
ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test libbitcoin`.
system "false"
end
end