Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/embree/files/, media-libs/embree/
Date: Thu, 10 Jun 2021 10:05:29
Message-Id: 1623319505.2d46169effa133a2674b4aae12fa205455c117ac.andrewammerlaan@gentoo
1 commit: 2d46169effa133a2674b4aae12fa205455c117ac
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 10:05:05 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 10:05:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2d46169e
7
8 media-libs/embree: moved to ::gentoo
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 media-libs/embree/Manifest | 1 -
13 media-libs/embree/embree-3.13.0.ebuild | 111 ---------------------------------
14 media-libs/embree/files/99embree3 | 1 -
15 media-libs/embree/metadata.xml | 26 --------
16 4 files changed, 139 deletions(-)
17
18 diff --git a/media-libs/embree/Manifest b/media-libs/embree/Manifest
19 deleted file mode 100644
20 index cc27e4a85..000000000
21 --- a/media-libs/embree/Manifest
22 +++ /dev/null
23 @@ -1 +0,0 @@
24 -DIST embree-3.13.0.tar.gz 13708421 BLAKE2B bace1866d9d6907308d38370347d23b4edb3fe287d093acf35367be1d4548d1df064ed9d46ef928f17af99e335d5fcd7b7285a2bd95707361440547544782080 SHA512 3fc4f00151cb9558810c643bf77f3135465d65c4523e08d5289a0fdcb18d4c63a8e805647e4ce208556c4679d44373d817761c1003b1e9dc65a39d5ebf17926f
25
26 diff --git a/media-libs/embree/embree-3.13.0.ebuild b/media-libs/embree/embree-3.13.0.ebuild
27 deleted file mode 100644
28 index c60d6410d..000000000
29 --- a/media-libs/embree/embree-3.13.0.ebuild
30 +++ /dev/null
31 @@ -1,111 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -inherit cmake flag-o-matic linux-info toolchain-funcs
38 -
39 -DESCRIPTION="Collection of high-performance ray tracing kernels"
40 -HOMEPAGE="https://github.com/embree/embree"
41 -LICENSE="Apache-2.0"
42 -KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
43 -SRC_URI="https://github.com/embree/embree/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 -SLOT="3"
45 -ARM_CPU_FLAGS=( neon:neon )
46 -X86_CPU_FLAGS=( sse2:sse2 sse4_2:sse4_2 avx:avx avx2:avx2 avx512dq:avx512dq )
47 -CPU_FLAGS=( ${ARM_CPU_FLAGS[@]/#/cpu_flags_arm_} ${X86_CPU_FLAGS[@]/#/cpu_flags_x86_} )
48 -IUSE="+compact-polys ispc raymask ssp static-libs +tbb tutorial ${CPU_FLAGS[@]%:*}"
49 -
50 -BDEPEND="
51 - virtual/pkgconfig
52 -"
53 -RDEPEND="
54 - amd64? ( ispc? ( dev-lang/ispc ) )
55 - x86? ( ispc? ( dev-lang/ispc ) )
56 - media-libs/glfw
57 - tbb? ( dev-cpp/tbb )
58 - tutorial? (
59 - media-libs/libpng:0=
60 - media-libs/openimageio
61 - virtual/jpeg:0
62 - )
63 - virtual/opengl
64 -"
65 -DEPEND="${RDEPEND}"
66 -REQUIRED_USE="
67 - arm? ( !ispc )
68 - arm64? ( !ispc )"
69 -
70 -DOCS=( CHANGELOG.md README.md readme.pdf )
71 -CMAKE_BUILD_TYPE=Release
72 -
73 -pkg_setup() {
74 - CONFIG_CHECK="~TRANSPARENT_HUGEPAGE"
75 - WARNING_TRANSPARENT_HUGEPAGE="Not enabling Transparent Hugepages (CONFIG_TRANSPARENT_HUGEPAGE) will impact rendering performance."
76 - linux-info_pkg_setup
77 -}
78 -
79 -src_prepare() {
80 - cmake_src_prepare
81 -
82 - # disable RPM package building
83 - sed -e 's|CPACK_RPM_PACKAGE_RELEASE 1|CPACK_RPM_PACKAGE_RELEASE 0|' \
84 - -i CMakeLists.txt || die
85 -}
86 -
87 -src_configure() {
88 - local mycmakeargs=(
89 - -DBUILD_TESTING=OFF
90 - -DCMAKE_SKIP_INSTALL_RPATH=ON
91 - -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF
92 - -DEMBREE_BACKFACE_CULLING=OFF # default
93 - -DEMBREE_FILTER_FUNCTION=ON # default
94 - -DEMBREE_GEOMETRY_CURVE=ON # default
95 - -DEMBREE_GEOMETRY_GRID=ON # default
96 - -DEMBREE_GEOMETRY_INSTANCE=ON # default
97 - -DEMBREE_GEOMETRY_POINT=ON # default
98 - -DEMBREE_GEOMETRY_QUAD=ON # default
99 - -DEMBREE_GEOMETRY_SUBDIVISION=ON # default
100 - -DEMBREE_GEOMETRY_TRIANGLE=ON # default
101 - -DEMBREE_GEOMETRY_USER=ON # default
102 - -DEMBREE_IGNORE_INVALID_RAYS=OFF # default
103 - -DEMBREE_ISPC_SUPPORT=$(usex ispc)
104 - -DEMBREE_RAY_MASK=$(usex raymask)
105 - -DEMBREE_RAY_PACKETS=ON # default
106 - -DEMBREE_STACK_PROTECTOR=$(usex ssp)
107 - -DEMBREE_STATIC_LIB=$(usex static-libs)
108 - -DEMBREE_COMPACT_POLYS=$(usex compact-polys)
109 - -DEMBREE_STAT_COUNTERS=OFF
110 - -DEMBREE_TASKING_SYSTEM=$(usex tbb "TBB" "INTERNAL")
111 - -DEMBREE_TUTORIALS=$(usex tutorial) )
112 -
113 - if use tutorial; then
114 - mycmakeargs+=(
115 - -DEMBREE_ISPC_ADDRESSING=64
116 - -DEMBREE_TUTORIALS_LIBJPEG=ON
117 - -DEMBREE_TUTORIALS_LIBPNG=ON
118 - -DEMBREE_TUTORIALS_OPENIMAGEIO=ON
119 - )
120 - fi
121 -
122 - # Set supported ISA
123 - mycmakeargs+=(
124 - -DEMBREE_MAX_ISA=NONE
125 - -DEMBREE_ISA_NEON=$(usex cpu_flags_arm_neon)
126 - -DEMBREE_ISA_AVX512=$(usex cpu_flags_x86_avx512dq)
127 - -DEMBREE_ISA_AVX2=$(usex cpu_flags_x86_avx2)
128 - -DEMBREE_ISA_AVX=$(usex cpu_flags_x86_avx)
129 - -DEMBREE_ISA_SSE42=$(usex cpu_flags_x86_sse4_2)
130 - -DEMBREE_ISA_SSE2=$(usex cpu_flags_x86_sse2)
131 - )
132 -
133 - tc-export CC CXX
134 -
135 - cmake_src_configure
136 -}
137 -
138 -src_install() {
139 - cmake_src_install
140 -
141 - doenvd "${FILESDIR}"/99${PN}${SLOT}
142 -}
143
144 diff --git a/media-libs/embree/files/99embree3 b/media-libs/embree/files/99embree3
145 deleted file mode 100644
146 index 762f8fd08..000000000
147 --- a/media-libs/embree/files/99embree3
148 +++ /dev/null
149 @@ -1 +0,0 @@
150 -CPATH="/usr/include/embree3"
151 \ No newline at end of file
152
153 diff --git a/media-libs/embree/metadata.xml b/media-libs/embree/metadata.xml
154 deleted file mode 100644
155 index 3ff2c9630..000000000
156 --- a/media-libs/embree/metadata.xml
157 +++ /dev/null
158 @@ -1,26 +0,0 @@
159 -<?xml version="1.0" encoding="UTF-8"?>
160 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
161 -<pkgmetadata>
162 - <maintainer type="person">
163 - <email>rossbridger.cc@×××××.com</email>
164 - <name>Ross Charles Campbell</name>
165 - </maintainer>
166 - <longdescription>
167 -Intel® Embree is a collection of high-performance ray tracing kernels, developed at Intel. The target users of Intel® Embree are graphics application
168 -engineers who want to improve the performance of their photo-realistic rendering application by leveraging Embree's performance-optimized ray tracing
169 -kernels. The kernels are optimized for the latest Intel® processors with support for SSE, AVX, AVX2, and AVX-512 instructions. Intel® Embree supports
170 -runtime code selection to choose the traversal and build algorithms that best matches the instruction set of your CPU. We recommend using Intel®
171 -Embree through its API to get the highest benefit from future improvements.
172 - </longdescription>
173 - <use>
174 - <flag name="compact-polys">Enables compact tris/quads, i.e. only geomIDs and primIDs are stored inside the leaf nodes</flag>
175 - <flag name="ispc">Enables ISPC support for Embree through<pkg>dev-lang/ispc</pkg></flag>
176 - <flag name="raymask"> Enable the ray masking feature </flag>
177 - <flag name="ssp">Enables protection of return address from buffer overwrites </flag>
178 - <flag name="tbb">Use Intel's threading library<pkg>dev-cpp/tbb</pkg></flag>
179 - <flag name="tutorial"> Compile and install the Embree tutorials </flag>
180 - </use>
181 - <upstream>
182 - <remote-id type="github">embree/embree</remote-id>
183 - </upstream>
184 -</pkgmetadata>