media-libs/raptor: export PKG_CONFIG for xml2-config, use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44615
Closes: https://github.com/gentoo/gentoo/pull/44615
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2025-11-13 10:20:47 +01:00 committed by Sam James
parent 5421e614e8
commit a29fba475b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -3,7 +3,7 @@
EAPI=8
inherit autotools multilib-minimal
inherit autotools dot-a multilib-minimal toolchain-funcs
MY_PN=${PN}2
MY_P=${MY_PN}-${PV}
@ -55,6 +55,9 @@ src_prepare() {
multilib_src_configure() {
# FIXME: It should be possible to use net-nntp/inn for libinn.h and -linn!
# export PKG_CONFIG for xml2-config
tc-export PKG_CONFIG
lto-guarantee-fat
local myeconfargs=(
--with-html-dir="${EPREFIX}"/usr/share/gtk-doc/html
--with-www=curl
@ -76,4 +79,5 @@ multilib_src_install() {
default
find "${ED}" -name '*.la' -delete || die
strip-lto-bytecode
}