commit:     1496d74ccef1141bbefd78ff70a7c92c1c3ffedc
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sat Dec 10 02:46:20 2022 +0000
Commit:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
CommitDate: Sat Dec 10 02:46:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1496d74c

net-p2p/feather: ditto for live ebuild

Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>

 net-p2p/feather/feather-9999.ebuild | 45 +++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 14 deletions(-)

diff --git a/net-p2p/feather/feather-9999.ebuild 
b/net-p2p/feather/feather-9999.ebuild
index c8d4d36b4..af882e78f 100644
--- a/net-p2p/feather/feather-9999.ebuild
+++ b/net-p2p/feather/feather-9999.ebuild
@@ -45,20 +45,37 @@ RDEPEND="
 BDEPEND="virtual/pkgconfig"
 
 src_configure() {
-       local mycmakeargs=(
-               -DARCH=x86-64
-               -DBUILD_64=ON
-               -DBUILD_TAG="linux-x64"
-               -DDONATE_BEG=OFF
-               -DMANUAL_SUBMODULES=1
-               -DSTATIC=OFF
-               -DSELF_CONTAINED=OFF
-               -DUSE_DEVICE_TREZOR=OFF
-               -DXMRIG=$(usex xmrig)
-               -DWITH_SCANNER=$(usex qrcode)
-               -DVERSION_IS_RELEASE=true
-       )
-
+       if has nostrip $FEATURES ; then
+               local mycmakeargs=(
+                       -DCMAKE_BUILD_TYPE=Debug
+                       -DARCH=x86-64
+                       -DBUILD_64=ON
+                       -DBUILD_TAG="linux-x64"
+                       -DDONATE_BEG=OFF
+                       -DMANUAL_SUBMODULES=1
+                       -DSTATIC=OFF
+                       -DSELF_CONTAINED=OFF
+                       -DUSE_DEVICE_TREZOR=OFF
+                       -DXMRIG=$(usex xmrig)
+                       -DWITH_SCANNER=$(usex qrcode)
+                       -DVERSION_IS_RELEASE=true
+               )
+       else
+               local mycmakeargs=(
+                       -DCMAKE_BUILD_TYPE=Release
+                       -DARCH=x86-64
+                       -DBUILD_64=ON
+                       -DBUILD_TAG="linux-x64"
+                       -DDONATE_BEG=OFF
+                       -DMANUAL_SUBMODULES=1
+                       -DSTATIC=OFF
+                       -DSELF_CONTAINED=OFF
+                       -DUSE_DEVICE_TREZOR=OFF
+                       -DXMRIG=$(usex xmrig)
+                       -DWITH_SCANNER=$(usex qrcode)
+                       -DVERSION_IS_RELEASE=true
+               )
+       fi
        cmake_src_configure
 }
 

Reply via email to