public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/oidn/
Date: Mon, 25 Mar 2024 18:57:08 +0000 (UTC)	[thread overview]
Message-ID: <1711392892.97d8456bc004b597ad85a2e53c605792bfebfa5e.sam@gentoo> (raw)

commit:     97d8456bc004b597ad85a2e53c605792bfebfa5e
Author:     Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Wed Jan 17 11:40:03 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 18:54:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97d8456b

media-libs/oidn: Bump to 2.1.0

Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/oidn/Manifest          |  1 +
 media-libs/oidn/metadata.xml      |  8 ++++++
 media-libs/oidn/oidn-2.1.0.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/media-libs/oidn/Manifest b/media-libs/oidn/Manifest
index 3de806ec15a7..489f13abaf7b 100644
--- a/media-libs/oidn/Manifest
+++ b/media-libs/oidn/Manifest
@@ -1,2 +1,3 @@
 DIST oidn-1.4.2.tar.gz 54221996 BLAKE2B bb6593e2e15877f65d9224fc93dac72aff6d567a00d727b050a88a1add4dc1441e695dc38056dd796e004e20916054b43ed7d0e90f22a16597f6617cf6a119e7 SHA512 8b464cedc91ef7a88cfc97c3fde80275b12058cdd26b352718d90f8f20b3462c4ac65b2b1ad5548a520590fbd015fcc8ab9f964633bc8b89d72901fe8a13e352
 DIST oidn-1.4.3.tar.gz 54222682 BLAKE2B f9b585c318258fd78e221a453b64e83965a3e5035a912baa49e4d5b48466441bf1d3c15291de2cd4d36e9da187ff7a643bb9d4af5282cdbb8b6bc99fb3cda0d0 SHA512 6fbdf347763c0734140195a523cf0878b1dbd91d4943c9ce4928f6991549f8b3d5ab4d57b90e20a8d04a87d00e3a1554ce73a3a3c1e64fcb016a3c1f8aa07982
+DIST oidn-2.1.0.tar.gz 48977314 BLAKE2B 0fc32697df7fc6b8b367a78312a5b16ab68a5c88a2d19a8780e9de87c7e7096d7fe43dbd07928f2eba44c62fb4545338fc92f918dd4c33623259d0088a06a854 SHA512 508cb100f1a0a825774c2c01e0fc983e697341745fa0bfa48a99bfa70fc431f66fcdf17c3f170e40baefd7c3796a25d147f49cb17efbf1a1886556367c5c4566

diff --git a/media-libs/oidn/metadata.xml b/media-libs/oidn/metadata.xml
index 2222e0663448..448ccc40008f 100644
--- a/media-libs/oidn/metadata.xml
+++ b/media-libs/oidn/metadata.xml
@@ -14,6 +14,14 @@
 		high-quality denoising filters for images rendered with ray tracing. Intel
 		Open Image Denoise is part of the Intel® oneAPI Rendering Toolkit and is
 	</longdescription>
+	<use>
+		<flag name="apps">
+			Build the standalone denoise, self test, and benchmark binaries.
+		</flag>
+		<flag name="hip">
+			Build OIDN with AMD HIP support.
+		</flag>
+	</use>
 	<upstream>
 		<remote-id type="github">OpenImageDenoise/oidn</remote-id>
 	</upstream>

diff --git a/media-libs/oidn/oidn-2.1.0.ebuild b/media-libs/oidn/oidn-2.1.0.ebuild
new file mode 100644
index 000000000000..2eab9e4151b6
--- /dev/null
+++ b/media-libs/oidn/oidn-2.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit cmake python-single-r1
+
+DESCRIPTION="Intel(R) Open Image Denoise library"
+HOMEPAGE="https://www.openimagedenoise.org/"
+
+if [[ ${PV} = *9999 ]]; then
+	EGIT_REPO_URI="https://github.com/OpenImageDenoise/oidn.git"
+	EGIT_BRANCH="master"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/OpenImageDenoise/${PN}/releases/download/v${PV}/${P}.src.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+REQUIRED_USE="
+	${PYTHON_REQUIRED_USE}
+	test? ( apps )
+"
+IUSE="apps cuda hip test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	${PYTHON_DEPS}
+	dev-cpp/tbb:=
+	dev-lang/ispc
+	cuda? ( dev-util/nvidia-cuda-toolkit )
+	hip? ( dev-util/hip )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+	local mycmakeargs=(
+		-DOIDN_DEVICE_CUDA=$(usex cuda)
+		-DOIDN_DEVICE_HIP=$(usex hip)
+		-DOIDN_APPS=$(usex apps)
+	)
+	cmake_src_configure
+}
+
+src_test() {
+	"${BUILD_DIR}"/oidnTest || die "There were test faliures!"
+}


             reply	other threads:[~2024-03-25 18:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25 18:57 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-22 16:08 [gentoo-commits] repo/gentoo:master commit in: media-libs/oidn/ Sam James
2025-04-28 14:01 Sam James
2025-03-07 13:22 Sam James
2025-03-07 13:22 Sam James
2025-01-05 17:49 Arthur Zamarin
2024-09-05  2:12 Sam James
2024-06-28 17:00 Sam James
2024-06-28 17:00 Sam James
2024-06-28 17:00 Sam James
2024-03-25 18:57 Sam James
2023-05-01  0:47 Sam James
2023-04-09 12:35 Arthur Zamarin
2022-12-24 14:06 Andreas Sturmlechner
2022-07-09  5:57 Sam James
2022-06-07  8:26 Jakov Smolić
2022-01-02  3:29 Sam James
2021-10-31  5:53 Sam James
2021-10-29 22:23 Sam James
2021-09-19  3:30 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-08-18 23:34 Sam James
2021-08-18 23:34 Sam James
2021-06-10  0:51 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1711392892.97d8456bc004b597ad85a2e53c605792bfebfa5e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox