From 0ba7cfeffd00d23f6dbb19913f680959809cf222 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 14 May 2022 23:51:48 +0200 Subject: [PATCH] =?UTF-8?q?x11-libs/pixman:=20[QA]=20tc-has-openmp=20?= =?UTF-8?q?=E2=86=92=20tc-check-openmp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Seifert Signed-off-by: Sam James --- x11-libs/pixman/pixman-0.40.0.ebuild | 16 +++++++++++----- x11-libs/pixman/pixman-9999.ebuild | 16 +++++++++++----- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/x11-libs/pixman/pixman-0.40.0.ebuild b/x11-libs/pixman/pixman-0.40.0.ebuild index d74622ede459a..795b17992f52a 100644 --- a/x11-libs/pixman/pixman-0.40.0.ebuild +++ b/x11-libs/pixman/pixman-0.40.0.ebuild @@ -22,12 +22,18 @@ fi LICENSE="MIT" SLOT="0" -IUSE="cpu_flags_ppc_altivec cpu_flags_arm_iwmmxt cpu_flags_arm_iwmmxt2 cpu_flags_arm_neon loongson2f cpu_flags_x86_mmxext cpu_flags_x86_sse2 cpu_flags_x86_ssse3 static-libs" +IUSE="cpu_flags_ppc_altivec cpu_flags_arm_iwmmxt cpu_flags_arm_iwmmxt2 cpu_flags_arm_neon loongson2f cpu_flags_x86_mmxext cpu_flags_x86_sse2 cpu_flags_x86_ssse3 static-libs test" +RESTRICT="!test? ( test )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp +} multilib_src_configure() { - local openmp=disabled - tc-has-openmp && openmp=enabled - if use arm && tc-is-clang ; then # See bug #768138 and https://gitlab.freedesktop.org/pixman/pixman/-/issues/46 append-cflags $(test-flags-CC -fno-integrated-as) @@ -42,10 +48,10 @@ multilib_src_configure() { $(meson_feature cpu_flags_ppc_altivec vmx) $(meson_feature cpu_flags_arm_neon neon) $(meson_feature loongson2f loongson-mmi) + $(meson_feature test openmp) # only used in unit tests -Ddefault_library=$(usex static-libs both shared) -Dgtk=disabled -Dlibpng=disabled - -Dopenmp=$openmp # only used in unit tests ) meson_src_configure } diff --git a/x11-libs/pixman/pixman-9999.ebuild b/x11-libs/pixman/pixman-9999.ebuild index b1bf1b2339dde..ee72ddca48c64 100644 --- a/x11-libs/pixman/pixman-9999.ebuild +++ b/x11-libs/pixman/pixman-9999.ebuild @@ -22,12 +22,18 @@ fi LICENSE="MIT" SLOT="0" -IUSE="cpu_flags_ppc_altivec cpu_flags_arm_iwmmxt cpu_flags_arm_iwmmxt2 cpu_flags_arm_neon loongson2f cpu_flags_x86_mmxext cpu_flags_x86_sse2 cpu_flags_x86_ssse3 static-libs" +IUSE="cpu_flags_ppc_altivec cpu_flags_arm_iwmmxt cpu_flags_arm_iwmmxt2 cpu_flags_arm_neon loongson2f cpu_flags_x86_mmxext cpu_flags_x86_sse2 cpu_flags_x86_ssse3 static-libs test" +RESTRICT="!test? ( test )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use test && tc-check-openmp +} multilib_src_configure() { - local openmp=disabled - tc-has-openmp && openmp=enabled - if use arm && tc-is-clang ; then # See bug #768138 and https://gitlab.freedesktop.org/pixman/pixman/-/issues/46 append-cflags $(test-flags-CC -fno-integrated-as) @@ -42,10 +48,10 @@ multilib_src_configure() { $(meson_feature cpu_flags_ppc_altivec vmx) $(meson_feature cpu_flags_arm_neon neon) $(meson_feature loongson2f loongson-mmi) + $(meson_feature test openmp) # only used in unit tests -Ddefault_library=$(usex static-libs both shared) -Dgtk=disabled -Dlibpng=disabled - -Dopenmp=$openmp # only used in unit tests ) meson_src_configure }