76 lines
2.9 KiB
Ruby
76 lines
2.9 KiB
Ruby
class Wownero < Formula
|
|
desc "Official wallet and node software for the Wownero cryptocurrency"
|
|
homepage "https://wownero.org"
|
|
url "https://git.wownero.com/wownero/wownero.git",
|
|
tag: "v0.10.1.0",
|
|
revision: "8ab87421d9321d0b61992c924cfa6e3918118ad0"
|
|
license "BSD-3-Clause"
|
|
revision 2
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "d25b719116fec944ea8974444252576cd9312b095d1cbf88b82498ff63b75843"
|
|
sha256 cellar: :any, arm64_big_sur: "bb97e22c03ad3eb74ecb8222032eb02263a902e4a5fdf51c4f8520e1686a114d"
|
|
sha256 cellar: :any, monterey: "b547ff9d95c1286b7e52c965a049ac42adef512032913bf33c454ee63832b676"
|
|
sha256 cellar: :any, big_sur: "16391bfe4b2f5eb2971e9d4210b1351902df6e3528e1502fc41334cd48f9e217"
|
|
sha256 cellar: :any, catalina: "9c4b7a3b5169141e5361ab509dd734b13d0ca90c536ce3688555b934afa61c79"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "338e07a45ea2bc49a91633cb8277e172eba7f015f6fef2f83d2b60aad8750246"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "boost"
|
|
depends_on "hidapi"
|
|
depends_on "libsodium"
|
|
depends_on "openssl@1.1"
|
|
depends_on "protobuf"
|
|
depends_on "readline"
|
|
depends_on "unbound"
|
|
depends_on "zeromq"
|
|
|
|
conflicts_with "monero", because: "both install a wallet2_api.h header"
|
|
|
|
# Boost 1.76 compatibility
|
|
# https://github.com/loqs/monero/commit/5e902e5e32c672661dfe5677c4a950c4dd409198
|
|
patch :DATA
|
|
|
|
def install
|
|
# Need to help CMake find `readline` when not using /usr/local prefix
|
|
system "cmake", ".", *std_cmake_args, "-DReadline_ROOT_DIR=#{Formula["readline"].opt_prefix}"
|
|
system "make", "install"
|
|
|
|
# Fix conflict with miniupnpc.
|
|
# This has been reported at https://github.com/monero-project/monero/issues/3862
|
|
rm lib/"libminiupnpc.a"
|
|
end
|
|
|
|
service do
|
|
run [opt_bin/"wownerod", "--non-interactive"]
|
|
end
|
|
|
|
test do
|
|
cmd = "yes '' | #{bin}/wownero-wallet-cli --restore-deterministic-wallet " \
|
|
"--password brew-test --restore-height 238084 --generate-new-wallet wallet " \
|
|
"--electrum-seed 'maze vixen spiders luggage vibrate western nugget older " \
|
|
"emails oozed frown isolated ledge business vaults budget " \
|
|
"saucepan faxed aloof down emulate younger jump legion saucepan'" \
|
|
"--command address"
|
|
address = "Wo3YLuTzJLTQjSkyNKPQxQYz5JzR6xi2CTS1PPDJD6nQAZ1ZCk1TDEHHx8CRjHNQ9JDmwCDGhvGF3CZXmmX1sM9a1YhmcQPJM"
|
|
assert_equal address, shell_output(cmd).lines.last.split[1]
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/contrib/epee/include/storages/portable_storage.h b/contrib/epee/include/storages/portable_storage.h
|
|
index f77e89cb6..066e12878 100644
|
|
--- a/contrib/epee/include/storages/portable_storage.h
|
|
+++ b/contrib/epee/include/storages/portable_storage.h
|
|
@@ -39,6 +39,8 @@
|
|
#include "span.h"
|
|
#include "int-util.h"
|
|
|
|
+#include <boost/mpl/contains.hpp>
|
|
+
|
|
namespace epee
|
|
{
|
|
class byte_slice;
|