commit:     9f49334dc89ad535327abadab880df89c9799140
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 16 10:02:28 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Aug 16 10:21:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f49334d

net-libs/wslay: use different method to disable examples

Keeping the dependency on pkg-config due to the macro usage.

Closes: https://bugs.gentoo.org/938003
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-libs/wslay/wslay-1.1.1_p20210115.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-libs/wslay/wslay-1.1.1_p20210115.ebuild 
b/net-libs/wslay/wslay-1.1.1_p20210115.ebuild
index dffeed24e492..44486fa55aa1 100644
--- a/net-libs/wslay/wslay-1.1.1_p20210115.ebuild
+++ b/net-libs/wslay/wslay-1.1.1_p20210115.ebuild
@@ -29,6 +29,9 @@ BDEPEND="
 src_prepare() {
        default
 
+       # skip unnecessary examples & automagic dependency on nettle
+       sed -i '/build_examples=/s/yes/no/' configure.ac || die
+
        eautoreconf
 }
 
@@ -37,7 +40,6 @@ src_configure() {
                # no options... and cmake build has different issues
                $(usev !doc ac_cv_path_SPHINX_BUILD=)
                $(usev !test ac_cv_lib_cunit_CU_initialize_registry=)
-               PKG_CONFIG=false # disables examples by failing to find nettle
        )
 
        econf "${econfargs[@]}"

Reply via email to