dev-libs/argtable: fix c23/musl, use dot-a.eclass

update SRC_URI (redirect)

use dot-a.eclass to avoid installing broken static libraries w/ LTO
remove bundle getopt.h  (unneeded for glibc/musl) to avoid conflict with musl

Closes: https://bugs.gentoo.org/945723
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43551
Closes: https://github.com/gentoo/gentoo/pull/43551
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2025-08-24 23:20:06 +02:00 committed by Sam James
parent 5dbf00e38a
commit 7e179937d6
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -1,16 +1,16 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit libtool
inherit dot-a libtool
MY_PV="$(ver_rs 1 '-')"
MY_P=${PN}${MY_PV}
DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss"
HOMEPAGE="https://argtable.sourceforge.io"
SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}.tar.gz"
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${P}/${MY_P}.tar.gz"
S="${WORKDIR}"/${MY_P}
LICENSE="LGPL-2"
@ -25,10 +25,16 @@ PATCHES=(
src_prepare() {
default
# not needed for glibc or musl #945723
rm src/getopt.h || die
elibtoolize
}
src_configure() {
lto-guarantee-fat
econf \
$(use_enable debug) \
$(use_enable static-libs static)
@ -53,4 +59,5 @@ src_install() {
fi
find "${ED}" -name "*.la" -delete || die "failed to delete .la files"
strip-lto-bytecode
}