2017-06-14 13:31:52 +00:00
|
|
|
class Bitcoin < Formula
|
|
|
|
desc "Decentralized, peer to peer payment network"
|
|
|
|
homepage "https://bitcoin.org/"
|
2017-06-23 11:30:30 +00:00
|
|
|
url "https://github.com/bitcoin/bitcoin/archive/v0.14.2.tar.gz"
|
|
|
|
sha256 "e0ac23f01a953fcc6290c96799deeffb32aa76ca8e216c564d20c18e75a25219"
|
2017-09-08 06:51:54 +00:00
|
|
|
revision 2
|
2017-06-14 13:31:52 +00:00
|
|
|
head "https://github.com/bitcoin/bitcoin.git"
|
|
|
|
|
2017-06-18 14:03:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-09-19 07:31:25 +00:00
|
|
|
sha256 "81e50862473315fddb4f12809ebccfcfbced729fd880f670606681d3f7e9831d" => :high_sierra
|
2017-09-08 11:52:06 +00:00
|
|
|
sha256 "60b792b637213cd7887d19e5ba9d6f6919e481af870e80d39c0b0d1d13dff7f2" => :sierra
|
|
|
|
sha256 "cfe7e0f20eea9a33084ddd04f4776e0d4c4cb05e55a735bd7f6a8b1331f4c28c" => :el_capitan
|
|
|
|
sha256 "352daf29f60c46b0c31b313d6b40ad942f1d68fce681d5cc94dc26d83b8fcd03" => :yosemite
|
2017-06-18 14:03:19 +00:00
|
|
|
end
|
|
|
|
|
2017-06-14 13:31:52 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "berkeley-db@4"
|
|
|
|
depends_on "boost"
|
|
|
|
depends_on "libevent"
|
|
|
|
depends_on "miniupnpc"
|
|
|
|
depends_on "openssl"
|
|
|
|
|
2017-08-16 21:48:17 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
2017-06-14 13:31:52 +00:00
|
|
|
def install
|
|
|
|
system "./autogen.sh"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
2017-08-16 12:47:11 +00:00
|
|
|
"--with-boost-libdir=#{Formula["boost"].opt_lib}",
|
2017-06-14 13:31:52 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/test_bitcoin"
|
|
|
|
end
|
|
|
|
end
|