commit:     611ed99278cdfcdc7978af1c651ff4f72947cc5d
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Wed Oct 12 15:44:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 19:40:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=611ed992

media-libs/librtprocess: add dependency to openmp

Closes: https://bugs.gentoo.org/876352
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/27752
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../librtprocess/librtprocess-0.12.0-r1.ebuild     | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/media-libs/librtprocess/librtprocess-0.12.0-r1.ebuild 
b/media-libs/librtprocess/librtprocess-0.12.0-r1.ebuild
new file mode 100644
index 000000000000..aec961e0c1e1
--- /dev/null
+++ b/media-libs/librtprocess/librtprocess-0.12.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Algorithms for RAW processing from RawTherapee"
+HOMEPAGE="https://github.com/CarVac/librtprocess/";
+SRC_URI="https://github.com/CarVac/librtprocess/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="openmp"
+
+BDEPEND="
+       openmp? (
+               || (
+                       sys-devel/gcc[openmp]
+                       sys-devel/clang-runtime[openmp]
+               )
+       )
+"
+
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DOPTION_OMP=$(usex openmp)
+       )
+       cmake_src_configure
+}

Reply via email to