From 1ed6d665b034118ca8d9a273197daebd8d130fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Thu, 2 Oct 2025 20:07:45 +0200 Subject: [PATCH] media-gfx/hugin: require openmp support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream says building without makes no sense. Closes: https://bugs.gentoo.org/926788 Signed-off-by: Andreas K. Hüttel --- .../{hugin-2024.0.1-r1.ebuild => hugin-2024.0.1-r2.ebuild} | 7 ++++++- media-gfx/hugin/hugin-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) rename media-gfx/hugin/{hugin-2024.0.1-r1.ebuild => hugin-2024.0.1-r2.ebuild} (92%) diff --git a/media-gfx/hugin/hugin-2024.0.1-r1.ebuild b/media-gfx/hugin/hugin-2024.0.1-r2.ebuild similarity index 92% rename from media-gfx/hugin/hugin-2024.0.1-r1.ebuild rename to media-gfx/hugin/hugin-2024.0.1-r2.ebuild index 0859df8e1e385..35745482a692b 100644 --- a/media-gfx/hugin/hugin-2024.0.1-r1.ebuild +++ b/media-gfx/hugin/hugin-2024.0.1-r2.ebuild @@ -6,7 +6,7 @@ EAPI=8 WX_GTK_VER="3.2-gtk3" PYTHON_COMPAT=( python3_{10..13} python3_13t ) -inherit python-single-r1 wxwidgets cmake xdg +inherit python-single-r1 wxwidgets cmake xdg toolchain-funcs DESCRIPTION="GUI for the creation & processing of panoramic images" HOMEPAGE="http://hugin.sf.net" @@ -54,8 +54,13 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" DOCS=( authors.txt README TODO ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp +} + pkg_setup() { use python && python-single-r1_pkg_setup + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp } src_prepare() { diff --git a/media-gfx/hugin/hugin-9999.ebuild b/media-gfx/hugin/hugin-9999.ebuild index a4a3306f0be76..1311370996b40 100644 --- a/media-gfx/hugin/hugin-9999.ebuild +++ b/media-gfx/hugin/hugin-9999.ebuild @@ -6,7 +6,7 @@ EAPI=8 WX_GTK_VER="3.2-gtk3" PYTHON_COMPAT=( python3_{10..13} ) -inherit mercurial python-single-r1 wxwidgets cmake xdg +inherit mercurial python-single-r1 wxwidgets cmake xdg toolchain-funcs DESCRIPTION="GUI for the creation & processing of panoramic images" HOMEPAGE="http://hugin.sf.net" @@ -58,8 +58,13 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" DOCS=( authors.txt README TODO ) +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp +} + pkg_setup() { use python && python-single-r1_pkg_setup + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp } src_prepare() {