Skip to content

Commit

Permalink
wownero 0.11.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Dec 17, 2024
1 parent f5457c9 commit e6854ad
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions Formula/w/wownero.rb
Original file line number Diff line number Diff line change
@@ -2,11 +2,10 @@ class Wownero < Formula
desc "Official wallet and node software for the Wownero cryptocurrency"
homepage "https://wownero.org"
# TODO: Check if we can use unversioned `protobuf` at version bump
url "https://git.wownero.com/wownero/wownero.git",
tag: "v0.11.1.0",
revision: "1b8475003c065b0387f21323dad8a03b131ae7d1"
url "https://codeberg.org/wownero/wownero.git",
tag: "v0.11.3.0",
revision: "3e302be710f4e6b4f58642989c8e47711362fa56"
license "BSD-3-Clause"
revision 5

# The `strategy` code below can be removed if/when this software exceeds
# version 10.0.0. Until then, it's used to omit a malformed tag that would
@@ -35,7 +34,7 @@ class Wownero < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "d08b8e26383ff1a7b709f65214b0f59505ca308f3b675bff55838c91de33a375"
end

disable! date: "2025-05-11", because: "needs to use unmaintained `boost@1.85` and `protobuf@21`"
disable! date: "2025-05-11", because: "needs to use unmaintained `boost@1.85`"

depends_on "cmake" => :build
depends_on "miniupnpc" => :build
@@ -45,27 +44,14 @@ class Wownero < Formula
depends_on "libsodium"
depends_on "libusb"
depends_on "openssl@3"
depends_on "protobuf@21"
depends_on "protobuf"
depends_on "readline"
depends_on "unbound"
depends_on "zeromq"

conflicts_with "monero", because: "both install a wallet2_api.h header"

def install
# Work around build error with Boost 1.85.0.
# Reported to `monero` where issue needs to be fixed as `wownero` is a fork.
# Issue ref: https://github.com/monero-project/monero/issues/9304
ENV.append "CXXFLAGS", "-include boost/numeric/conversion/bounds.hpp"
copy_option_files = %w[
src/common/boost_serialization_helper.h
src/p2p/net_peerlist.cpp
src/wallet/wallet2.cpp
]
inreplace copy_option_files, "boost::filesystem::copy_option::overwrite_if_exists",
"boost::filesystem::copy_options::overwrite_existing"
inreplace "src/simplewallet/simplewallet.cpp", "boost::filesystem::complete(", "boost::filesystem::absolute("

# Need to help CMake find `readline` when not using /usr/local prefix
args = %W[-DReadline_ROOT_DIR=#{Formula["readline"].opt_prefix}]

0 comments on commit e6854ad

Please sign in to comment.