commit:     4899ef98267b13c91ab7329769263b0cf72c27fa
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  1 11:34:12 2021 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Wed Dec  1 11:40:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4899ef98

net-libs/ldns: fix soname

Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 net-libs/ldns/{ldns-1.8.0.ebuild => ldns-1.8.0-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-libs/ldns/ldns-1.8.0.ebuild 
b/net-libs/ldns/ldns-1.8.0-r1.ebuild
similarity index 90%
rename from net-libs/ldns/ldns-1.8.0.ebuild
rename to net-libs/ldns/ldns-1.8.0-r1.ebuild
index f530e59ed7ab..71986a0e0f92 100644
--- a/net-libs/ldns/ldns-1.8.0.ebuild
+++ b/net-libs/ldns/ldns-1.8.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 PYTHON_COMPAT=( python3_{7,8,9,10} )
-inherit python-single-r1 flag-o-matic multilib-minimal
+inherit python-single-r1 autotools multilib-minimal
 
 DESCRIPTION="a library with the aim to simplify DNS programming in C"
 HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/";
@@ -81,7 +81,10 @@ src_prepare() {
        # remove $(srcdir) from path for multilib build
        sed -i 's,$(srcdir)/packaging/libldns.pc,packaging/libldns.pc,' 
"${S}"/Makefile.in || die 'could not patch Makefile.in'
 
-       filter-ldflags *
+       # backport 
https://github.com/NLnetLabs/ldns/commit/bc9d017f6fd8b6b5d2ff6e4489a2931d0aab8184
+       sed -i 's/AC_SUBST(VERSION_INFO.*/AC_SUBST(VERSION_INFO, [5:0:2])/' 
"${S}"/configure.ac || die 'could not patch configure.ac'
+
+       eautoreconf
 }
 
 multilib_src_compile() {

Reply via email to