libbitcoin-explorer: use secp256k1 from libbitcoin's libexec

Instead of having libbitcoin-explorer download and build secp256k1, use
the one that's already in libbitcoin's libexec.

Closes #18247.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Sam Jones 2017-09-18 22:02:16 -04:00 committed by ilovezfs
parent b47b9efbac
commit c2ce4ff2b2

View file

@ -3,6 +3,7 @@ class LibbitcoinExplorer < Formula
homepage "https://github.com/libbitcoin/libbitcoin-explorer"
url "https://github.com/libbitcoin/libbitcoin-explorer/archive/v3.3.0.tar.gz"
sha256 "029dc350497bdaad4d8559f7954405011b9e1b996aa4d4cc124f650e2eca00a6"
revision 1
bottle do
sha256 "155216851b832da347cbae3f8b90849830f236cf357504e5063fb2a925b284b2" => :high_sierra
@ -18,11 +19,6 @@ class LibbitcoinExplorer < Formula
depends_on "libbitcoin"
depends_on "zeromq"
resource "secp256k1" do
url "https://github.com/libbitcoin/secp256k1/archive/v0.1.0.13.tar.gz"
sha256 "9e48dbc88d0fb5646d40ea12df9375c577f0e77525e49833fb744d3c2a69e727"
end
resource "libbitcoin-network" do
url "https://github.com/libbitcoin/libbitcoin-network/archive/v3.3.0.tar.gz"
sha256 "cab9142d2b94019c824365c0b39d7e31dbc9aaeb98c6b4bf22ce32b829395c19"
@ -39,18 +35,9 @@ class LibbitcoinExplorer < Formula
end
def install
ENV.prepend_path "PKG_CONFIG_PATH", Formula["libbitcoin"].opt_libexec/"lib/pkgconfig"
ENV.prepend_create_path "PKG_CONFIG_PATH", libexec/"lib/pkgconfig"
resource("secp256k1").stage do
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{libexec}",
"--enable-module-recovery",
"--with-bignum=no"
system "make", "install"
end
resource("libbitcoin-network").stage do
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",