media-gfx/mypaint: use tc-check-openmp

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-06-03 04:28:50 +01:00
parent e30fcf2e2f
commit a240fd5c2d

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
inherit desktop edo python-single-r1 xdg
inherit desktop edo python-single-r1 toolchain-funcs xdg
DESCRIPTION="Fast and easy graphics application for digital painters"
HOMEPAGE="http://mypaint.app/"
@@ -58,6 +58,14 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.0.1-python3.11.patch
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_compile() {
# --disable-openmp can't be passed to setup.py build,
# only setup.py build_ext.