commit:     a8f956e915b79218d56b4af2cb3015b0869c3aaa
Author:     Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Tue Apr 27 23:55:19 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 00:19:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8f956e9

media-libs/oidn: New package

Intel Open Image Denoise is an open source library of high-performance,
high-quality denoising filters for images rendered with ray tracing.

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      | 20 ++++++++++++++++++++
 media-libs/oidn/oidn-1.3.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/media-libs/oidn/Manifest b/media-libs/oidn/Manifest
new file mode 100644
index 00000000000..d2d55abdbfb
--- /dev/null
+++ b/media-libs/oidn/Manifest
@@ -0,0 +1 @@
+DIST oidn-1.3.0.tar.gz 36763571 BLAKE2B 
395d7aafd87babf7d2414ed940dd85adf4a488df2138e0e63cc82ac06088dd969879de73d79bead4b35bba0045081ee637b72f2a98770dbfc928ffe7c25da78a
 SHA512 
19de3cf11b9d436ee6f33ff020187a4cdc05da5f43c47509f715ca99e4276bfb64425d0a48f3a6f0569c8c6701b46a7e35378f371fdbacc0b6d488e113ffe17c

diff --git a/media-libs/oidn/metadata.xml b/media-libs/oidn/metadata.xml
new file mode 100644
index 00000000000..1787e6d6af0
--- /dev/null
+++ b/media-libs/oidn/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Sebastian Parborg</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               Intel Open Image Denoise is an open source library of 
high-performance,
+               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>
+       <upstream>
+               <remote-id type="github">OpenImageDenoise/oidn</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/media-libs/oidn/oidn-1.3.0.ebuild 
b/media-libs/oidn/oidn-1.3.0.ebuild
new file mode 100644
index 00000000000..7e79c737d50
--- /dev/null
+++ b/media-libs/oidn/oidn-1.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} )
+
+inherit cmake python-single-r1 eutils
+
+DESCRIPTION="Intel(R) Open Image Denoise library"
+HOMEPAGE="http://www.openimagedenoise.org/";
+
+if [[ ${PV} = *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/OpenImageDenoise/oidn.git";
+       EGIT_BRANCH="master"
+else
+       
SRC_URI="https://github.com/OpenImageDenoise/${PN}/releases/download/v${PV}/${P}.src.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       dev-cpp/tbb
+       dev-lang/ispc"
+DEPEND="
+       ${RDEPEND}
+       dev-util/cmake"
+
+CMAKE_BUILD_TYPE=Release
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+}

Reply via email to