From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E417D158041 for ; Mon, 25 Mar 2024 18:57:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72905E2AA9; Mon, 25 Mar 2024 18:57:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57AC7E2AA8 for ; Mon, 25 Mar 2024 18:57:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C274342F94 for ; Mon, 25 Mar 2024 18:57:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC65515EA for ; Mon, 25 Mar 2024 18:57:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1711392892.97d8456bc004b597ad85a2e53c605792bfebfa5e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/oidn/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/oidn/Manifest media-libs/oidn/metadata.xml media-libs/oidn/oidn-2.1.0.ebuild X-VCS-Directories: media-libs/oidn/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 97d8456bc004b597ad85a2e53c605792bfebfa5e X-VCS-Branch: master Date: Mon, 25 Mar 2024 18:57:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1ccd7897-2d28-4f58-9fb4-a157dbc0e39a X-Archives-Hash: c0f3f2c3af52c962c6efaca6fdd34b40 commit: 97d8456bc004b597ad85a2e53c605792bfebfa5e Author: Sebastian Parborg gmail com> AuthorDate: Wed Jan 17 11:40:03 2024 +0000 Commit: Sam James gentoo 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 gmail.com> Signed-off-by: Sam James 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 + + + Build the standalone denoise, self test, and benchmark binaries. + + + Build OIDN with AMD HIP support. + + OpenImageDenoise/oidn 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!" +}