summaryrefslogtreecommitdiff
path: root/dev-libs/simde
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-03 00:00:22 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-03 00:00:22 +0100
commita98588cfddf3d6e88a5f17d7f399b695163c7a85 (patch)
tree9f786257ac4bfd6be23a0d585c4b6c17361d37d2 /dev-libs/simde
parentf5ef7f2371babf22c2c3fad17108692b09e4c98e (diff)
gentoo auto-resync : 03:05:2024 - 00:00:22
Diffstat (limited to 'dev-libs/simde')
-rw-r--r--dev-libs/simde/Manifest5
-rw-r--r--dev-libs/simde/files/simde-0.8.2-musl.patch19
-rw-r--r--dev-libs/simde/simde-0.8.0-r1.ebuild2
-rw-r--r--dev-libs/simde/simde-0.8.2.ebuild45
4 files changed, 69 insertions, 2 deletions
diff --git a/dev-libs/simde/Manifest b/dev-libs/simde/Manifest
index f6291b4e5ab6..7ddb58ded8db 100644
--- a/dev-libs/simde/Manifest
+++ b/dev-libs/simde/Manifest
@@ -1,5 +1,8 @@
AUX simde-0.7.6-musl.patch 894 BLAKE2B 5f3c06f7981a329ae7fb677d2b2c20d64d429c8dd5ac8312e3e3ffed08268ed5d8e47c6517c6a0a0132709dd7a180f4fa63b8545c05da0b947755df0303be3fc SHA512 d5da14f5918a52f0ca485ac5023c420628e8b2246b3a71f1539e4751edab74d99335d558defe7cb8348a0c784cb00e54cd3f70b7bf48546794f22734dd970c9d
AUX simde-0.8.0-xop.patch 1135 BLAKE2B d774c85d3415c16e72a8bdbc7618af7f215f9e937b24db6ba89d6a3f73c5852436f90a494a1695783bc367083c572c62edc38ac4bec8b74ce47b1746f3b62258 SHA512 36f3e9dc00d64bad60d7e943d6abda69a636fa4f101fb5387c407fd32758262d9d08d8c943ea4ed63ce57d7963eb42f46638d24eb329a817f6079b6b540c1fe6
+AUX simde-0.8.2-musl.patch 1094 BLAKE2B 51df8965a83fe297c13fa845891653feeef995759c34278177ea5af071d41031ef4bca4a4e0f5ab7cc7662b406f9231a0e6a5054601f346462a2dc2ec7427be1 SHA512 509baa58ba57e63edef47a72c17f0f9029c3ec3a5026df946033c1f8711b166c4b86f7a6a49af1c17e863dfca31e1f4f2840e9437402befaf7a2713766c3bc59
DIST simde-0.8.0.tar.gz 7455442 BLAKE2B 511f609e2588cc39b45a5a3e7f93648d9651e9e3f90220947b7f559ca6281a0db9f876d0692abf24d63528bb84e0ee49da1a165a16eeb91de84639a100a6527b SHA512 b0667583565ea9e59d18a07c7a3cb46710868c9572663e314278ca2004747e337e34f6b927c9c5d29e161caba8ec0428e5299b6e878e226b9f33597a1584b91d
-EBUILD simde-0.8.0-r1.ebuild 1062 BLAKE2B 198a644055e068c440cd707559e046172699b4c21ab1eaf0e990fa6cdfda47dd48039f5a5c6d2880261b3f9be38f50d625bc0401753125a3ddc08d378b00f169 SHA512 c1b0e0a8bb1cbf02f1fe589748db22cf8c14837b44202055554911760aca22bf95ce595f3cdb7bee0aa6e35a2f9cc937f59d2b23e78751661ac258f1091e6af2
+DIST simde-0.8.2.tar.gz 7468969 BLAKE2B 55824ac6d525de475285b430e96c91d7e7cdf363cb42742e55cc8b6e44e5d59d2e07d59fe37897d4bc2023fca35bd908772e01ba95681a00c8f9464dccb0f742 SHA512 4e42d7140c0afae507773527c6c0c07e6f0cdad59a1d42ebcf4bd223fc9f71e91a2e3db7746aca3c0c5ad2a13333c2322ce1e384c7d699ddfe33bed6f107aec5
+EBUILD simde-0.8.0-r1.ebuild 1061 BLAKE2B 16fa1d40cf916d0586d0f29b8498ae9968b634a234cc5249176babdd8f700ba953c5048d0229cb0da023531dea8ae55827a507acbc5da27e1cab628344a97cb7 SHA512 d0e68f5ec2b9c0aabcf1ac56db90b8d5ecf3f314ec126691d07dbbbc20df578f3a8f19f2aa06b5e546fe3115f6f457e4967e69149c8633e7904b4b0888be1f06
+EBUILD simde-0.8.2.ebuild 1034 BLAKE2B deaa2a66fb09fdfa3c3edaedec46dd5f4ace09fbcbc72930aa2d908448237655d2d46fc6c91e5ea47798be60d9930d4b572600941f531f55a728e360707c81ca SHA512 d835dbf944c626ea25f86cb5bb859e33e87bb172515e7a99512aed44068cf67f26f78685771578705eedd492bf2cba017c6ec69bcb44731c464044b10197a935
MISC metadata.xml 332 BLAKE2B d617fc3761fcdd13bfb89430ff299ebfff73c7ddf292c6695256e2a9b20b20e91830ce968e10df506cafd6ec61d863ecaa9bb0aad54b48025ba5e0bcfb07b1f5 SHA512 47c6c2b56e6299057413cb698bf78cd566843507df12215d1b359fff33ee004efad2b9194f830c3ede2f88dcc1dbf8206fc833172cfc5e1db71560c709b2d5bb
diff --git a/dev-libs/simde/files/simde-0.8.2-musl.patch b/dev-libs/simde/files/simde-0.8.2-musl.patch
new file mode 100644
index 000000000000..fa1c796aec00
--- /dev/null
+++ b/dev-libs/simde/files/simde-0.8.2-musl.patch
@@ -0,0 +1,19 @@
+This workaround patch should be removable when musl implements C23
+functions (technically this isn't a __GLIBC__-only quirk, but used
+due to lack of anything known that's better beside running a build
+test for it).
+
+https://bugs.gentoo.org/926488
+https://github.com/simd-everywhere/simde/issues/1001
+--- a/simde/simde-math.h
++++ b/simde/simde-math.h
+@@ -1268,3 +1268,3 @@
+ #if \
+- ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
++ (defined(__GLIBC__) && (!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \
+ HEDLEY_GCC_VERSION_CHECK(10,0,0)
+@@ -1288,3 +1288,3 @@
+ #if \
+- ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
++ (defined(__GLIBC__) && (!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \
+ HEDLEY_GCC_VERSION_CHECK(10,0,0)
diff --git a/dev-libs/simde/simde-0.8.0-r1.ebuild b/dev-libs/simde/simde-0.8.0-r1.ebuild
index 155e4c169087..9591e89b2fec 100644
--- a/dev-libs/simde/simde-0.8.0-r1.ebuild
+++ b/dev-libs/simde/simde-0.8.0-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
+KEYWORDS="amd64 arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
diff --git a/dev-libs/simde/simde-0.8.2.ebuild b/dev-libs/simde/simde-0.8.2.ebuild
new file mode 100644
index 000000000000..b78b059c453a
--- /dev/null
+++ b/dev-libs/simde/simde-0.8.2.ebuild
@@ -0,0 +1,45 @@
+# 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.8.2-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
+ # https://github.com/simd-everywhere/simde/issues/867 (bug #926706)
+ meson_src_test $(meson_src_test --list | grep -Ev '(dbsad|fpclass)')
+ else
+ meson_src_test
+ fi
+}