commit:     2b670ebb73327bcec92b0106d86abf76e7fab4d9
Author:     Tomas Fabrizio Orsi <torsi <AT> fi <DOT> uba <DOT> ar>
AuthorDate: Wed Oct  9 00:03:26 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Oct  9 17:26:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b670ebb

net-libs/libpsl: Added static-libs flag

[Eli: This flag is useful to add because curl supports static-libs and
depends on libpsl.]

Signed-off-by: Tomas Fabrizio Orsi <torsi <AT> fi.uba.ar>
Closes: https://github.com/gentoo/gentoo/pull/38910
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 net-libs/libpsl/libpsl-0.21.5.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net-libs/libpsl/libpsl-0.21.5.ebuild 
b/net-libs/libpsl/libpsl-0.21.5.ebuild
index 797883568aa8..9ca8c1d70d9c 100644
--- a/net-libs/libpsl/libpsl-0.21.5.ebuild
+++ b/net-libs/libpsl/libpsl-0.21.5.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/rockdaboot/${PN}/releases/download/${PV}/${P}.tar.gz
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="icu +idn test"
+IUSE="icu +idn test static-libs"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -58,5 +58,11 @@ multilib_src_configure() {
                )
        fi
 
+       if use static-libs ; then
+               emesonargs+=(
+                       -Ddefault_library=both
+               )
+       fi
+
        meson_src_configure
 }

Reply via email to