commit:     e51dc9ea8ab9ada0c226fec4bb2dac373b6112f5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 14 01:38:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 02:09:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e51dc9ea

dev-libs/libstrophe: avoid maintainer mode (again)

Just like in 191fbdaf985652a3873a545226a53cc2ad37de41, we need to use
autoreconf because our patch touches Makefile.am.

Also, drop shellcheck annotation. They have very little value at the moment
and we really don't want the tree littered with these. There's some draft
shellcheck support to teach it ebuilds and we can maybe revisit if/once
that lands.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libstrophe/libstrophe-0.12.3.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libstrophe/libstrophe-0.12.3.ebuild 
b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild
index bfa7f2b9db7f..b469005aab46 100644
--- a/dev-libs/libstrophe/libstrophe-0.12.3.ebuild
+++ b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit autotools
+
 DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
 HOMEPAGE="https://strophe.im/libstrophe/";
 SRC_URI="
@@ -32,8 +34,14 @@ PATCHES=(
        "${FILESDIR}/${PN}-0.12.3-allow-tests-when-static.patch"
 )
 
+src_prepare() {
+       default
+
+       # tests patch touches Makefile.am, need to regenerate to avoid 
maintainer mode
+       eautoreconf
+}
+
 src_configure() {
-       # shellcheck disable=SC2207
        local myeconf=(
                --enable-tls
                $(use_with !expat libxml2)

Reply via email to