mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
net-p2p/monero: make supercop optional, add ~ppc64 flag
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
11
net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch
Normal file
11
net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/device/CMakeLists.txt
|
||||
+++ b/src/device/CMakeLists.txt
|
||||
@@ -73,7 +73,7 @@
|
||||
cncrypto
|
||||
cryptonote_format_utils_basic
|
||||
ringct_basic
|
||||
wallet-crypto
|
||||
+ monero-crypto
|
||||
${OPENSSL_CRYPTO_LIBRARIES}
|
||||
${Boost_SERIALIZATION_LIBRARY}
|
||||
PRIVATE
|
||||
@@ -77,12 +77,11 @@
|
||||
namespace wallet {
|
||||
--- a/src/device/CMakeLists.txt
|
||||
+++ b/src/device/CMakeLists.txt
|
||||
@@ -73,7 +73,7 @@
|
||||
@@ -73,7 +73,6 @@
|
||||
cncrypto
|
||||
cryptonote_format_utils_basic
|
||||
ringct_basic
|
||||
- wallet-crypto
|
||||
+ monero-crypto
|
||||
${OPENSSL_CRYPTO_LIBRARIES}
|
||||
${Boost_SERIALIZATION_LIBRARY}
|
||||
PRIVATE
|
||||
|
||||
@@ -16,12 +16,12 @@ if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_SUBMODULES=()
|
||||
else
|
||||
SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~ppc64"
|
||||
fi
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc cpu_flags_x86_aes"
|
||||
IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc cpu_flags_x86_aes monero-supercop"
|
||||
REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
|
||||
RESTRICT="test"
|
||||
# Test requires python's requests, psutil, deepdiff which are packaged
|
||||
@@ -35,7 +35,7 @@ DEPEND="
|
||||
dev-libs/openssl:=
|
||||
dev-libs/randomx
|
||||
dev-libs/rapidjson
|
||||
dev-libs/supercop
|
||||
monero-supercop? ( dev-libs/supercop )
|
||||
net-dns/unbound:=[threads]
|
||||
net-libs/miniupnpc:=
|
||||
net-libs/zeromq:=
|
||||
@@ -58,6 +58,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.18.4.0-unbundle-dependencies.patch
|
||||
)
|
||||
|
||||
|
||||
src_prepare() {
|
||||
# The build system does not recognize the release tarball (bug?)
|
||||
# so we patch the GitVersion file.
|
||||
@@ -67,6 +68,9 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use monero-supercop; then
|
||||
PATCHES+=("${FILESDIR}"/${PN}-0.18.4.0-external-supercop.patch)
|
||||
fi
|
||||
local mycmakeargs=(
|
||||
# TODO: Update CMake to install built libraries (help wanted)
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
|
||||
Reference in New Issue
Block a user