commit:     83c21c4aa868798e09be47c810f0478329c6dd1b
Author:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Thu Aug  3 00:00:31 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug  9 20:43:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c21c4a

sci-libs/openlibm: add USE=static-libs

USE=static-libs is currently required for llvm-libc.

Signed-off-by: Alfred Persson Forsberg <cat <AT> catcream.org>
Closes: https://github.com/gentoo/gentoo/pull/32151
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/openlibm/openlibm-0.8.0.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sci-libs/openlibm/openlibm-0.8.0.ebuild 
b/sci-libs/openlibm/openlibm-0.8.0.ebuild
index ba45cbd625fb..3d2362897851 100644
--- a/sci-libs/openlibm/openlibm-0.8.0.ebuild
+++ b/sci-libs/openlibm/openlibm-0.8.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,6 +9,7 @@ DESCRIPTION="High quality system independent, open source libm"
 HOMEPAGE="https://github.com/JuliaLang/openlibm";
 SRC_URI="https://github.com/JuliaMath/openlibm/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
+IUSE="static-libs"
 LICENSE="public-domain MIT ISC BSD-2 LGPL-2.1+"
 # See https://abi-laboratory.pro/index.php?view=timeline&l=openlibm
 SLOT="0/4"
@@ -16,9 +17,10 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 
 src_prepare() {
        default
-       sed -e "/^OLM_LIBS :=/s/^/#/" \
-               -e "/install: /s/install-static//" \
-       -i Makefile || die
+       sed -e "/^OLM_LIBS :=/s/^/#/" -i Makefile || die
+       if ! use static-libs ; then
+               sed -e "/install: /s/install-static//" -i Makefile || die
+       fi
 }
 
 src_configure() {

Reply via email to