mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 00:46:58 +02:00
sys-apps/dtc: Sync with Gentoo
It's from Gentoo commit 300e466631a529b6a095675253a6406763b9753c.
This commit is contained in:
parent
b995eb56cd
commit
53919e11f4
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..13} )
|
PYTHON_COMPAT=( python3_{11..13} )
|
||||||
inherit meson python-single-r1
|
inherit dot-a meson python-single-r1
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]] ; then
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
|
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
|
||||||
@ -61,6 +61,7 @@ pkg_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
use static-libs && lto-guarantee-fat
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
-Dtools=true
|
-Dtools=true
|
||||||
-Dvalgrind=disabled # only used for some tests
|
-Dvalgrind=disabled # only used for some tests
|
||||||
@ -69,14 +70,16 @@ src_configure() {
|
|||||||
$(meson_feature yaml)
|
$(meson_feature yaml)
|
||||||
)
|
)
|
||||||
|
|
||||||
# bug #909366
|
|
||||||
use static-libs && emesonargs+=( -Dstatic-build=true )
|
|
||||||
|
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
meson_src_install
|
meson_src_install
|
||||||
|
if use !static-libs; then
|
||||||
|
# bug #907940
|
||||||
|
rm "${ED}/usr/$(get_libdir)"/*.a || die
|
||||||
|
fi
|
||||||
|
strip-lto-bytecode
|
||||||
|
|
||||||
use python && python_optimize "${ED}"
|
use python && python_optimize "${ED}"
|
||||||
}
|
}
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..13} )
|
PYTHON_COMPAT=( python3_{11..13} )
|
||||||
inherit meson python-single-r1
|
inherit dot-a meson python-single-r1
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]] ; then
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
|
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
|
||||||
@ -56,7 +56,9 @@ pkg_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
use static-libs && lto-guarantee-fat
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
|
-Ddefault_library=$(usex static-libs both shared)
|
||||||
-Dtools=true
|
-Dtools=true
|
||||||
-Dvalgrind=disabled # only used for some tests
|
-Dvalgrind=disabled # only used for some tests
|
||||||
$(meson_feature python)
|
$(meson_feature python)
|
||||||
@ -64,14 +66,12 @@ src_configure() {
|
|||||||
$(meson_feature yaml)
|
$(meson_feature yaml)
|
||||||
)
|
)
|
||||||
|
|
||||||
# bug #909366
|
|
||||||
use static-libs && emesonargs+=( -Dstatic-build=true )
|
|
||||||
|
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
meson_src_install
|
meson_src_install
|
||||||
|
strip-lto-bytecode
|
||||||
|
|
||||||
use python && python_optimize "${ED}"
|
use python && python_optimize "${ED}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user