Files
gentoo/dev-libs/simde/simde-0.7.6-r1.ebuild
T
Matoro Mahri fee7f99947 dev-libs/simde: Keyword 0.7.6-r1 x86, #925487
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2024-03-11 18:11:49 +02:00

46 lines
997 B
Bash

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Header-only library providing implementations of SIMD instruction sets"
HOMEPAGE="https://simd-everywhere.github.io/blog/"
SRC_URI="
https://github.com/simd-everywhere/simde/archive/refs/tags/v${PV/_/-}.tar.gz
-> ${P}.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-0.7.6-musl.patch
)
src_configure() {
# *FLAGS are only used for tests (nothing that is installed), and
# upstream tests with specific *FLAGS and is otherwise flaky with
# -march=native, -mno-*, and such -- unset to be spared headaches.
unset {C,CPP,CXX,LD}FLAGS
local emesonargs=(
$(meson_use test tests)
)
meson_src_configure
}
src_test() {
if use x86; then
# some --skip option for meson when
meson_src_test $(meson_src_test --list | grep -v dbsad) #926706
else
meson_src_test
fi
}