net-p2p/feather: try to build monero libs staticially

Closes: https://bugs.gentoo.org/884903

Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
Adam Pimentel
2022-12-20 02:11:56 -05:00
parent 65f4f9c0f9
commit 5cbae0ac51
4 changed files with 41 additions and 7 deletions

View File

@@ -48,8 +48,11 @@ BDEPEND="virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=OFF
-DARCH=x86-64
-DBUILD_TAG="linux-x64"
-DBUILD_64=ON
-DSELF_CONTAINED=OFF
-DLOCALMONERO=$(usex localmonero)
-DXMRIG=$(usex xmrig)
@@ -58,12 +61,28 @@ src_configure() {
-DUSE_DEVICE_TREZOR=OFF
-DDONATE_BEG=OFF
-DWITH_SCANNER=$(usex qrcode)
-DVERSION_IS_RELEASE=OFF
)
cmake_src_configure
}
src_prepare() {
default
echo "#define FEATHER_VERSION \"${PV}\"" > "${WORKDIR}"/${PF}/src/config-feather.h || die
echo "#define TOR_VERSION \"NOT_EMBEDDED\"" >> "${WORKDIR}"/${PF}/src/config-feather.h || die
sed -i 's/set(Boost_USE_STATIC_LIBS ON)/set(Boost_USE_STATIC_LIBS OFF)/g' \
"${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
sed -i 's/set(Boost_USE_STATIC_RUNTIME ON)/set(Boost_USE_STATIC_RUNTIME OFF)/g' \
"${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
echo "set(STATIC ON)" > "${WORKDIR}"/${PF}/monero/CMakeLists.txt.2 || die
cat "${WORKDIR}"/${PF}/monero/CMakeLists.txt >> "${WORKDIR}"/${PF}/monero/CMakeLists2.txt || die
mv "${WORKDIR}"/${PF}/monero/CMakeLists2.txt "${WORKDIR}"/${PF}/monero/CMakeLists.txt || die
cmake_src_prepare
}
src_compile() {
cmake_build feather
}