2017-12-22 20:04:32 +00:00
|
|
|
class Monero < Formula
|
|
|
|
desc "Official monero wallet and cpu miner"
|
|
|
|
homepage "https://getmonero.org/"
|
2018-04-17 11:37:04 +00:00
|
|
|
url "https://github.com/monero-project/monero/archive/v0.12.0.0.tar.gz"
|
|
|
|
sha256 "5e8303900a39e296c4ebaa41d957ab9ee04e915704e1049f82a9cbd4eedc8ffb"
|
2017-12-22 20:04:32 +00:00
|
|
|
|
2018-01-04 12:20:46 +00:00
|
|
|
bottle do
|
2018-04-17 11:51:02 +00:00
|
|
|
sha256 "a28ab1830cc831c4e09dd9a1cffb48cdeb5bdd61a6ffa2ed83983750d14a03ae" => :high_sierra
|
|
|
|
sha256 "f0e8cf1ea701cc0e5e471850339e472452828cb6982ec2f2aabb839fbdace89b" => :sierra
|
|
|
|
sha256 "7ad3c57da18566a0cb72fa786a54401865217d0487c77323806af8c70db4bc19" => :el_capitan
|
2018-01-04 12:20:46 +00:00
|
|
|
end
|
|
|
|
|
2017-12-22 20:04:32 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
2018-04-16 14:05:42 +00:00
|
|
|
depends_on "boost@1.60"
|
2018-04-15 06:52:14 +00:00
|
|
|
depends_on "miniupnpc"
|
2017-12-22 20:04:32 +00:00
|
|
|
depends_on "openssl"
|
2018-04-17 11:37:04 +00:00
|
|
|
depends_on "unbound"
|
|
|
|
depends_on "zeromq"
|
|
|
|
|
|
|
|
resource "cppzmq" do
|
|
|
|
url "https://github.com/zeromq/cppzmq/archive/v4.2.3.tar.gz"
|
|
|
|
sha256 "3e6b57bf49115f4ae893b1ff7848ead7267013087dc7be1ab27636a97144d373"
|
|
|
|
end
|
2017-12-22 20:04:32 +00:00
|
|
|
|
|
|
|
def install
|
2018-04-17 11:37:04 +00:00
|
|
|
(buildpath/"cppzmq").install resource("cppzmq")
|
|
|
|
system "cmake", ".", "-DZMQ_INCLUDE_PATH=#{buildpath}/cppzmq", *std_cmake_args
|
2017-12-22 20:04:32 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2018-04-17 11:37:04 +00:00
|
|
|
cmd = "yes '' | #{bin}/monero-wallet-cli --restore-deterministic-wallet " \
|
2017-12-22 20:04:32 +00:00
|
|
|
"--password brew-test --restore-height 1 --generate-new-wallet wallet " \
|
|
|
|
"--electrum-seed 'baptism cousin whole exquisite bobsled fuselage left " \
|
|
|
|
"scoop emerge puzzled diet reinvest basin feast nautical upon mullet " \
|
|
|
|
"ponies sixteen refer enhanced maul aztec bemused basin'" \
|
|
|
|
"--command address"
|
|
|
|
address = "4BDtRc8Ym9wGzx8vpkQQvpejxBNVpjEmVBebBPCT4XqvMxW3YaCALFraiQibejyMAxUXB5zqn4pVgHVm3JzhP2WzVAJDpHf"
|
2018-04-17 11:37:04 +00:00
|
|
|
assert_equal address, shell_output(cmd).lines.last.split[1]
|
2017-12-22 20:04:32 +00:00
|
|
|
end
|
|
|
|
end
|