dev-util/sysprof-capture: use dot-a.eclass for LTO

This means that USE=static-libs doesn't produce a "broken" library
when built w/ LTO.

Bug: https://bugs.gentoo.org/818097
Bug: https://bugs.gentoo.org/889004
Bug: https://bugs.gentoo.org/927994
Bug: https://bugs.gentoo.org/939515
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-02 01:18:12 +01:00
parent 7abf9be713
commit 20777571e3
3 changed files with 34 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
GNOME_ORG_MODULE="sysprof"
inherit gnome.org meson-multilib systemd
inherit dot-a gnome.org meson-multilib systemd
DESCRIPTION="Static library for sysprof capture data generation"
HOMEPAGE="http://sysprof.com/"
@@ -21,6 +21,11 @@ BDEPEND="
virtual/pkgconfig
"
src_configure() {
lto-guarantee-fat
meson-multilib_src_configure
}
multilib_src_configure() {
local emesonargs=(
-Dgtk=false
@@ -38,3 +43,8 @@ multilib_src_configure() {
)
meson_src_configure
}
multilib_src_install_all() {
einstalldocs
strip-lto-bytecode
}

View File

@@ -4,7 +4,7 @@
EAPI=8
GNOME_ORG_MODULE="sysprof"
inherit gnome.org meson-multilib systemd
inherit dot-a gnome.org meson-multilib systemd
DESCRIPTION="Static library for sysprof capture data generation"
HOMEPAGE="http://sysprof.com/"
@@ -21,6 +21,11 @@ BDEPEND="
virtual/pkgconfig
"
src_configure() {
lto-guarantee-fat
meson-multilib_src_configure
}
multilib_src_configure() {
local emesonargs=(
-Dgtk=false
@@ -36,3 +41,8 @@ multilib_src_configure() {
)
meson_src_configure
}
multilib_src_install_all() {
einstalldocs
strip-lto-bytecode
}

View File

@@ -4,7 +4,7 @@
EAPI=8
GNOME_ORG_MODULE="sysprof"
inherit gnome.org meson-multilib systemd
inherit dot-a gnome.org meson-multilib systemd
DESCRIPTION="Static library for sysprof capture data generation"
HOMEPAGE="http://sysprof.com/"
@@ -21,6 +21,11 @@ BDEPEND="
virtual/pkgconfig
"
src_configure() {
lto-guarantee-fat
meson-multilib_src_configure
}
multilib_src_configure() {
local emesonargs=(
-Dgtk=false
@@ -36,3 +41,8 @@ multilib_src_configure() {
)
meson_src_configure
}
multilib_src_install_all() {
einstalldocs
strip-lto-bytecode
}