commit:     cfb95c8a5baee15642cbe26a4eca3bdc28e7ac0d
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 06:38:03 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 06:41:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfb95c8a

sys-apps/pandora_box: Enable optional static linking

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 .../{pandora_box-0.12.0.ebuild => pandora_box-0.12.0-r1.ebuild}  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys-apps/pandora_box/pandora_box-0.12.0.ebuild 
b/sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild
similarity index 94%
rename from sys-apps/pandora_box/pandora_box-0.12.0.ebuild
rename to sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild
index ad0137ee8c7a..75c2362b73f3 100644
--- a/sys-apps/pandora_box/pandora_box-0.12.0.ebuild
+++ b/sys-apps/pandora_box/pandora_box-0.12.0-r1.ebuild
@@ -7,6 +7,8 @@ EAPI=8
 
 SYDVER=3.30.0
 
+IUSE="static"
+
 CRATES="
        [email protected]
        [email protected]
@@ -123,3 +125,10 @@ SLOT="0"
 KEYWORDS="~amd64"
 
 S=${WORKDIR}/syd-v${SYDVER}/pandora
+
+src_configure() {
+       if use static; then
+               export RUSTFLAGS+="-Ctarget-feature=+crt-static"
+       fi
+       cargo_src_configure
+}

Reply via email to