1 |
commit: 7b38fb024f29a1929471eb59b4924dbc2f987529 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 20:45:21 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 20:53:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b38fb02 |
7 |
|
8 |
media-gfx/blender: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
media-gfx/blender/Manifest | 4 - |
13 |
media-gfx/blender/blender-2.83.10.ebuild | 320 --------------------------- |
14 |
media-gfx/blender/blender-2.83.4-r1.ebuild | 320 --------------------------- |
15 |
media-gfx/blender/blender-2.90.1-r1.ebuild | 321 --------------------------- |
16 |
media-gfx/blender/blender-2.91.0.ebuild | 335 ----------------------------- |
17 |
5 files changed, 1300 deletions(-) |
18 |
|
19 |
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest |
20 |
index 3456c59fc5d..46f37a28858 100644 |
21 |
--- a/media-gfx/blender/Manifest |
22 |
+++ b/media-gfx/blender/Manifest |
23 |
@@ -1,6 +1,2 @@ |
24 |
-DIST blender-2.83.10.tar.xz 38624904 BLAKE2B e52597b3acce875943dff75575c42c8c1fdeb19cb74b4f3609e56730e8fb6d5bbc94a6215a1e9da52b46e45c48c9a46dc4f3ed0d22e16186d9e7434b27eef70f SHA512 96b252176d867b3cac76a99cbee95313b60935a34edc44f27c67a1f75f20b353f0894288df2696718e95a03a07a1630797a431b752ffb4dd14692739d714a589 |
25 |
DIST blender-2.83.12.tar.xz 39132904 BLAKE2B 175e8c5ab9324421f23357bc367b2e70ee8c391130d376d6d53eefbf90529d09921395cd11e7b1709aaa4d24ec6f8df64050869e41bbe211229126db08f22089 SHA512 f313c92e311e852742e74934504fcd3ccd296bcea2499f605cef568e3c615ececd9d70dec5025e4d4ff19f03803c148a8b03a4b68b7ca978554f5b1122c9890b |
26 |
-DIST blender-2.83.4.tar.xz 38528352 BLAKE2B 54596207cbee34fcaa6b81a0d829976b42c28c793b88de81d78c1c3fdfe9dd2a0189a314be281b2a0f1829a0b7fd30d37bceaa28d35c9794dcb0f009fa71e83d SHA512 061735273159742784ed210d13fb39ad076efbbfd5f0291bab1b983699d43b20462dc7e4795e28dab0cd191c9879b43d9ad0f0545c24ef5da23c74679e5ccab5 |
27 |
-DIST blender-2.90.1.tar.xz 38836408 BLAKE2B 42622e742ebd397dc035c85cf26ab72ffee64f2cd46f1523de78dc8861bc19286a7d87b9e31a0d6afdf9a931da7018ccbdb9b4185b8535b4529656c6d85efc34 SHA512 e7d6f8df598f2a2a99f64716331ec4e981a5a49c76b307caf7856480c778455cfc4bbb56fbedc8b22d1e10951ebaeb6844d1ead9476847bf2824dddf5b135992 |
28 |
-DIST blender-2.91.0.tar.xz 41528920 BLAKE2B f28bce92b0b63e380c7ce2c9dae0ae4235792ae7c7dff52c2c9c0c5baa81b4d540f853f49d7622f6feca8c7f403b254b55f200758a64e4d95bd43709e5509c1d SHA512 a4b6cb09765d735274fb4a61ac301cbd6ee16f09ab77b19a6e283454b9b8a8c76f1b181501dc285b288130da9e283d3343b948b2855eea00bcb9e114636d55aa |
29 |
DIST blender-2.91.2.tar.xz 42057100 BLAKE2B f10f838ad6d56135fddf9e9171473e1e589f511a38112845d650436a1eb4da94ea0777571dffc6446f4217dce647b087cf5a18841d7dde2086d187bb8f7d3654 SHA512 9a3bae01bd09b1d665af4882f53e8a88d85ff44678233c90788a7801ce0d551a3cc1f71026b71ea1c77d7eaedf7ab6fc8709104c22b564f4fc6cc0d5b3b76f5e |
30 |
|
31 |
diff --git a/media-gfx/blender/blender-2.83.10.ebuild b/media-gfx/blender/blender-2.83.10.ebuild |
32 |
deleted file mode 100644 |
33 |
index abed89a6644..00000000000 |
34 |
--- a/media-gfx/blender/blender-2.83.10.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,320 +0,0 @@ |
37 |
-# Copyright 1999-2020 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
- |
42 |
-PYTHON_COMPAT=( python3_7 ) |
43 |
- |
44 |
-inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 \ |
45 |
- toolchain-funcs xdg-utils |
46 |
- |
47 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
48 |
-HOMEPAGE="https://www.blender.org" |
49 |
- |
50 |
-SRC_URI="https://download.blender.org/source/${P}.tar.xz" |
51 |
- |
52 |
-# Blender can have letters in the version string, |
53 |
-# so strip off the letter if it exists. |
54 |
-MY_PV="$(ver_cut 1-2)" |
55 |
- |
56 |
-SLOT="0" |
57 |
-LICENSE="|| ( GPL-2 BL )" |
58 |
-KEYWORDS="~amd64 ~x86" |
59 |
-IUSE="+bullet +dds +elbeem +openexr +system-python +system-numpy +tbb \ |
60 |
- abi6-compat abi7-compat alembic collada color-management cuda cycles \ |
61 |
- debug doc ffmpeg fftw headless jack jemalloc jpeg2k llvm \ |
62 |
- man ndof nls openal opencl openimageio openmp opensubdiv \ |
63 |
- openvdb osl sdl sndfile standalone test tiff valgrind" |
64 |
-RESTRICT="!test? ( test )" |
65 |
- |
66 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
67 |
- alembic? ( openexr ) |
68 |
- cuda? ( cycles ) |
69 |
- cycles? ( openexr tiff openimageio ) |
70 |
- elbeem? ( tbb ) |
71 |
- opencl? ( cycles ) |
72 |
- openvdb? ( |
73 |
- ^^ ( abi6-compat abi7-compat ) |
74 |
- tbb |
75 |
- ) |
76 |
- osl? ( cycles llvm ) |
77 |
- standalone? ( cycles )" |
78 |
- |
79 |
-RDEPEND="${PYTHON_DEPS} |
80 |
- dev-libs/boost:=[nls?,threads(+)] |
81 |
- dev-libs/lzo:2= |
82 |
- $(python_gen_cond_dep ' |
83 |
- dev-python/numpy[${PYTHON_USEDEP}] |
84 |
- dev-python/requests[${PYTHON_USEDEP}] |
85 |
- ') |
86 |
- media-libs/freetype:= |
87 |
- media-libs/glew:* |
88 |
- media-libs/libpng:= |
89 |
- media-libs/libsamplerate |
90 |
- sys-libs/zlib:= |
91 |
- virtual/glu |
92 |
- virtual/jpeg |
93 |
- virtual/libintl |
94 |
- virtual/opengl |
95 |
- alembic? ( >=media-gfx/alembic-1.7.12[boost(+),hdf(+)] ) |
96 |
- collada? ( >=media-libs/opencollada-1.6.68 ) |
97 |
- color-management? ( media-libs/opencolorio ) |
98 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
99 |
- ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] ) |
100 |
- fftw? ( sci-libs/fftw:3.0= ) |
101 |
- !headless? ( |
102 |
- x11-libs/libX11 |
103 |
- x11-libs/libXi |
104 |
- x11-libs/libXxf86vm |
105 |
- ) |
106 |
- jack? ( virtual/jack ) |
107 |
- jemalloc? ( dev-libs/jemalloc:= ) |
108 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
109 |
- llvm? ( sys-devel/llvm:= ) |
110 |
- ndof? ( |
111 |
- app-misc/spacenavd |
112 |
- dev-libs/libspnav |
113 |
- ) |
114 |
- nls? ( virtual/libiconv ) |
115 |
- openal? ( media-libs/openal ) |
116 |
- opencl? ( virtual/opencl ) |
117 |
- openimageio? ( media-libs/openimageio:= ) |
118 |
- openexr? ( |
119 |
- media-libs/ilmbase:= |
120 |
- media-libs/openexr:= |
121 |
- ) |
122 |
- opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=,opencl=] ) |
123 |
- openvdb? ( |
124 |
- ~media-gfx/openvdb-7.0.0[abi6-compat(-)?,abi7-compat(-)?] |
125 |
- dev-libs/c-blosc:= |
126 |
- ) |
127 |
- osl? ( media-libs/osl:= ) |
128 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
129 |
- sndfile? ( media-libs/libsndfile ) |
130 |
- tbb? ( dev-cpp/tbb ) |
131 |
- tiff? ( media-libs/tiff ) |
132 |
- valgrind? ( dev-util/valgrind ) |
133 |
-" |
134 |
- |
135 |
-DEPEND="${RDEPEND} |
136 |
- dev-cpp/eigen:= |
137 |
-" |
138 |
- |
139 |
-BDEPEND=" |
140 |
- virtual/pkgconfig |
141 |
- doc? ( |
142 |
- app-doc/doxygen[dot] |
143 |
- dev-python/sphinx[latex] |
144 |
- dev-texlive/texlive-bibtexextra |
145 |
- dev-texlive/texlive-fontsextra |
146 |
- dev-texlive/texlive-fontutils |
147 |
- dev-texlive/texlive-latex |
148 |
- dev-texlive/texlive-latexextra |
149 |
- ) |
150 |
- nls? ( sys-devel/gettext ) |
151 |
-" |
152 |
- |
153 |
-CMAKE_BUILD_TYPE="Release" |
154 |
- |
155 |
-blender_check_requirements() { |
156 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
157 |
- |
158 |
- if use doc; then |
159 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
160 |
- fi |
161 |
-} |
162 |
- |
163 |
-pkg_pretend() { |
164 |
- blender_check_requirements |
165 |
-} |
166 |
- |
167 |
-pkg_setup() { |
168 |
- blender_check_requirements |
169 |
- python-single-r1_pkg_setup |
170 |
-} |
171 |
- |
172 |
-src_prepare() { |
173 |
- cmake_src_prepare |
174 |
- |
175 |
- # we don't want static glew, but it's scattered across |
176 |
- # multiple files that differ from version to version |
177 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
178 |
- local file |
179 |
- while IFS="" read -d $'\0' -r file ; do |
180 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
181 |
- done < <(find . -type f -name "CMakeLists.txt") |
182 |
- |
183 |
- # Disable MS Windows help generation. The variable doesn't do what it |
184 |
- # it sounds like. |
185 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
186 |
- -i doc/doxygen/Doxyfile || die |
187 |
-} |
188 |
- |
189 |
-src_configure() { |
190 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
191 |
- # shadows, see bug #276338 for reference |
192 |
- append-flags -funsigned-char |
193 |
- append-lfs-flags |
194 |
- |
195 |
- if use openvdb; then |
196 |
- local version |
197 |
- if use abi6-compat; then |
198 |
- version=6; |
199 |
- elif use abi7-compat; then |
200 |
- version=7; |
201 |
- else |
202 |
- die "Openvdb abi version not compatible" |
203 |
- fi |
204 |
- append-cppflags -DOPENVDB_ABI_VERSION_NUMBER=${version} |
205 |
- fi |
206 |
- |
207 |
- local mycmakeargs=( |
208 |
- -DBUILD_SHARED_LIBS=OFF |
209 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
210 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
211 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
212 |
- -DWITH_ALEMBIC=$(usex alembic) |
213 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
214 |
- -DWITH_BOOST=ON |
215 |
- -DWITH_BULLET=$(usex bullet) |
216 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
217 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
218 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
219 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
220 |
- -DWITH_CYCLES=$(usex cycles) |
221 |
- -DWITH_CYCLES_DEVICE_OPENCL=$(usex opencl) |
222 |
- -DWITH_CYCLES_STANDALONE=$(usex standalone) |
223 |
- -DWITH_CYCLES_STANDALONE_GUI=$(usex standalone) |
224 |
- -DWITH_CYCLES_OSL=$(usex osl) |
225 |
- -DWITH_DOC_MANPAGE=$(usex man) |
226 |
- -DWITH_FFTW3=$(usex fftw) |
227 |
- -DWITH_GTESTS=$(usex test) |
228 |
- -DWITH_HEADLESS=$(usex headless) |
229 |
- -DWITH_INSTALL_PORTABLE=OFF |
230 |
- -DWITH_IMAGE_DDS=$(usex dds) |
231 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
232 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
233 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
234 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
235 |
- -DWITH_INTERNATIONAL=$(usex nls) |
236 |
- -DWITH_JACK=$(usex jack) |
237 |
- -DWITH_LLVM=$(usex llvm) |
238 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
239 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
240 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
241 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
242 |
- -DWITH_OPENAL=$(usex openal) |
243 |
- -DWITH_OPENCOLLADA=$(usex collada) |
244 |
- -DWITH_OPENCOLORIO=$(usex color-management) |
245 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
246 |
- -DWITH_OPENMP=$(usex openmp) |
247 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
248 |
- -DWITH_OPENVDB=$(usex openvdb) |
249 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
250 |
- -DWITH_PYTHON_INSTALL=$(usex system-python OFF ON) |
251 |
- -DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON) |
252 |
- -DWITH_SDL=$(usex sdl) |
253 |
- -DWITH_STATIC_LIBS=OFF |
254 |
- -DWITH_SYSTEM_EIGEN3=ON |
255 |
- -DWITH_SYSTEM_GLEW=ON |
256 |
- -DWITH_SYSTEM_LZO=ON |
257 |
- -DWITH_TBB=$(usex tbb) |
258 |
- -DWITH_X11=$(usex !headless) |
259 |
- ) |
260 |
- cmake_src_configure |
261 |
-} |
262 |
- |
263 |
-src_compile() { |
264 |
- cmake_src_compile |
265 |
- |
266 |
- if use doc; then |
267 |
- # Workaround for binary drivers. |
268 |
- addpredict /dev/ati |
269 |
- addpredict /dev/dri |
270 |
- addpredict /dev/nvidiactl |
271 |
- |
272 |
- einfo "Generating Blender C/C++ API docs ..." |
273 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
274 |
- doxygen -u Doxyfile || die |
275 |
- doxygen || die "doxygen failed to build API docs." |
276 |
- |
277 |
- cd "${CMAKE_USE_DIR}" || die |
278 |
- einfo "Generating (BPY) Blender Python API docs ..." |
279 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
280 |
- |
281 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
282 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
283 |
- fi |
284 |
-} |
285 |
- |
286 |
-src_test() { |
287 |
- if use test; then |
288 |
- einfo "Running Blender Unit Tests ..." |
289 |
- cd "${BUILD_DIR}"/bin/tests || die |
290 |
- local f |
291 |
- for f in *_test; do |
292 |
- ./"${f}" || die |
293 |
- done |
294 |
- fi |
295 |
-} |
296 |
- |
297 |
-src_install() { |
298 |
- # Pax mark blender for hardened support. |
299 |
- pax-mark m "${BUILD_DIR}"/bin/blender |
300 |
- |
301 |
- if use standalone; then |
302 |
- dobin "${BUILD_DIR}"/bin/cycles |
303 |
- fi |
304 |
- |
305 |
- if use doc; then |
306 |
- docinto "html/API/python" |
307 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
308 |
- |
309 |
- docinto "html/API/blender" |
310 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
311 |
- fi |
312 |
- |
313 |
- cmake_src_install |
314 |
- |
315 |
- # fix doc installdir |
316 |
- docinto "html" |
317 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
318 |
- rm -r "${ED}"/usr/share/doc/blender || die |
319 |
- |
320 |
- python_fix_shebang "${ED}/usr/bin/blender-thumbnailer.py" |
321 |
- python_optimize "${ED}/usr/share/blender/${MY_PV}/scripts" |
322 |
-} |
323 |
- |
324 |
-pkg_postinst() { |
325 |
- elog |
326 |
- elog "Blender uses python integration. As such, may have some" |
327 |
- elog "inherent risks with running unknown python scripts." |
328 |
- elog |
329 |
- elog "It is recommended to change your blender temp directory" |
330 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
331 |
- elog "home directory. This can be done by starting blender, then" |
332 |
- elog "dragging the main menu down do display all paths." |
333 |
- elog |
334 |
- ewarn |
335 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
336 |
- ewarn "libraries which are shipped with blender. Note that" |
337 |
- ewarn "these have caused security issues in the past." |
338 |
- ewarn "If you are concerned about security, file a bug upstream:" |
339 |
- ewarn " https://developer.blender.org/" |
340 |
- ewarn |
341 |
- xdg_icon_cache_update |
342 |
- xdg_mimeinfo_database_update |
343 |
- xdg_desktop_database_update |
344 |
-} |
345 |
- |
346 |
-pkg_postrm() { |
347 |
- xdg_icon_cache_update |
348 |
- xdg_mimeinfo_database_update |
349 |
- xdg_desktop_database_update |
350 |
- |
351 |
- ewarn "" |
352 |
- ewarn "You may want to remove the following directory." |
353 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
354 |
- ewarn "It may contain extra render kernels not tracked by portage" |
355 |
- ewarn "" |
356 |
-} |
357 |
|
358 |
diff --git a/media-gfx/blender/blender-2.83.4-r1.ebuild b/media-gfx/blender/blender-2.83.4-r1.ebuild |
359 |
deleted file mode 100644 |
360 |
index f28ba088062..00000000000 |
361 |
--- a/media-gfx/blender/blender-2.83.4-r1.ebuild |
362 |
+++ /dev/null |
363 |
@@ -1,320 +0,0 @@ |
364 |
-# Copyright 1999-2020 Gentoo Authors |
365 |
-# Distributed under the terms of the GNU General Public License v2 |
366 |
- |
367 |
-EAPI=7 |
368 |
- |
369 |
-PYTHON_COMPAT=( python3_7 ) |
370 |
- |
371 |
-inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 \ |
372 |
- toolchain-funcs xdg-utils |
373 |
- |
374 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
375 |
-HOMEPAGE="https://www.blender.org" |
376 |
- |
377 |
-SRC_URI="https://download.blender.org/source/${P}.tar.xz" |
378 |
- |
379 |
-# Blender can have letters in the version string, |
380 |
-# so strip off the letter if it exists. |
381 |
-MY_PV="$(ver_cut 1-2)" |
382 |
- |
383 |
-SLOT="0" |
384 |
-LICENSE="|| ( GPL-2 BL )" |
385 |
-KEYWORDS="amd64 ~x86" |
386 |
-IUSE="+bullet +dds +elbeem +openexr +system-python +system-numpy +tbb \ |
387 |
- abi6-compat abi7-compat alembic collada color-management cuda cycles \ |
388 |
- debug doc ffmpeg fftw headless jack jemalloc jpeg2k llvm \ |
389 |
- man ndof nls openal opencl openimageio openmp opensubdiv \ |
390 |
- openvdb osl sdl sndfile standalone test tiff valgrind" |
391 |
-RESTRICT="!test? ( test )" |
392 |
- |
393 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
394 |
- alembic? ( openexr ) |
395 |
- cuda? ( cycles ) |
396 |
- cycles? ( openexr tiff openimageio ) |
397 |
- elbeem? ( tbb ) |
398 |
- opencl? ( cycles ) |
399 |
- openvdb? ( |
400 |
- ^^ ( abi6-compat abi7-compat ) |
401 |
- tbb |
402 |
- ) |
403 |
- osl? ( cycles llvm ) |
404 |
- standalone? ( cycles )" |
405 |
- |
406 |
-RDEPEND="${PYTHON_DEPS} |
407 |
- dev-libs/boost:=[nls?,threads(+)] |
408 |
- dev-libs/lzo:2= |
409 |
- $(python_gen_cond_dep ' |
410 |
- dev-python/numpy[${PYTHON_USEDEP}] |
411 |
- dev-python/requests[${PYTHON_USEDEP}] |
412 |
- ') |
413 |
- media-libs/freetype:= |
414 |
- media-libs/glew:* |
415 |
- media-libs/libpng:= |
416 |
- media-libs/libsamplerate |
417 |
- sys-libs/zlib:= |
418 |
- virtual/glu |
419 |
- virtual/jpeg |
420 |
- virtual/libintl |
421 |
- virtual/opengl |
422 |
- alembic? ( >=media-gfx/alembic-1.7.12[boost(+),hdf(+)] ) |
423 |
- collada? ( >=media-libs/opencollada-1.6.68 ) |
424 |
- color-management? ( media-libs/opencolorio ) |
425 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
426 |
- ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] ) |
427 |
- fftw? ( sci-libs/fftw:3.0= ) |
428 |
- !headless? ( |
429 |
- x11-libs/libX11 |
430 |
- x11-libs/libXi |
431 |
- x11-libs/libXxf86vm |
432 |
- ) |
433 |
- jack? ( virtual/jack ) |
434 |
- jemalloc? ( dev-libs/jemalloc:= ) |
435 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
436 |
- llvm? ( sys-devel/llvm:= ) |
437 |
- ndof? ( |
438 |
- app-misc/spacenavd |
439 |
- dev-libs/libspnav |
440 |
- ) |
441 |
- nls? ( virtual/libiconv ) |
442 |
- openal? ( media-libs/openal ) |
443 |
- opencl? ( virtual/opencl ) |
444 |
- openimageio? ( media-libs/openimageio:= ) |
445 |
- openexr? ( |
446 |
- media-libs/ilmbase:= |
447 |
- media-libs/openexr:= |
448 |
- ) |
449 |
- opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=,opencl=] ) |
450 |
- openvdb? ( |
451 |
- ~media-gfx/openvdb-7.0.0[abi6-compat(-)?,abi7-compat(-)?] |
452 |
- dev-libs/c-blosc:= |
453 |
- ) |
454 |
- osl? ( media-libs/osl:= ) |
455 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
456 |
- sndfile? ( media-libs/libsndfile ) |
457 |
- tbb? ( dev-cpp/tbb ) |
458 |
- tiff? ( media-libs/tiff ) |
459 |
- valgrind? ( dev-util/valgrind ) |
460 |
-" |
461 |
- |
462 |
-DEPEND="${RDEPEND} |
463 |
- dev-cpp/eigen:= |
464 |
-" |
465 |
- |
466 |
-BDEPEND=" |
467 |
- virtual/pkgconfig |
468 |
- doc? ( |
469 |
- app-doc/doxygen[dot] |
470 |
- dev-python/sphinx[latex] |
471 |
- dev-texlive/texlive-bibtexextra |
472 |
- dev-texlive/texlive-fontsextra |
473 |
- dev-texlive/texlive-fontutils |
474 |
- dev-texlive/texlive-latex |
475 |
- dev-texlive/texlive-latexextra |
476 |
- ) |
477 |
- nls? ( sys-devel/gettext ) |
478 |
-" |
479 |
- |
480 |
-CMAKE_BUILD_TYPE="Release" |
481 |
- |
482 |
-blender_check_requirements() { |
483 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
484 |
- |
485 |
- if use doc; then |
486 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
487 |
- fi |
488 |
-} |
489 |
- |
490 |
-pkg_pretend() { |
491 |
- blender_check_requirements |
492 |
-} |
493 |
- |
494 |
-pkg_setup() { |
495 |
- blender_check_requirements |
496 |
- python-single-r1_pkg_setup |
497 |
-} |
498 |
- |
499 |
-src_prepare() { |
500 |
- cmake_src_prepare |
501 |
- |
502 |
- # we don't want static glew, but it's scattered across |
503 |
- # multiple files that differ from version to version |
504 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
505 |
- local file |
506 |
- while IFS="" read -d $'\0' -r file ; do |
507 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
508 |
- done < <(find . -type f -name "CMakeLists.txt") |
509 |
- |
510 |
- # Disable MS Windows help generation. The variable doesn't do what it |
511 |
- # it sounds like. |
512 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
513 |
- -i doc/doxygen/Doxyfile || die |
514 |
-} |
515 |
- |
516 |
-src_configure() { |
517 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
518 |
- # shadows, see bug #276338 for reference |
519 |
- append-flags -funsigned-char |
520 |
- append-lfs-flags |
521 |
- |
522 |
- if use openvdb; then |
523 |
- local version |
524 |
- if use abi6-compat; then |
525 |
- version=6; |
526 |
- elif use abi7-compat; then |
527 |
- version=7; |
528 |
- else |
529 |
- die "Openvdb abi version not compatible" |
530 |
- fi |
531 |
- append-cppflags -DOPENVDB_ABI_VERSION_NUMBER=${version} |
532 |
- fi |
533 |
- |
534 |
- local mycmakeargs=( |
535 |
- -DBUILD_SHARED_LIBS=OFF |
536 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
537 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
538 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
539 |
- -DWITH_ALEMBIC=$(usex alembic) |
540 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
541 |
- -DWITH_BOOST=ON |
542 |
- -DWITH_BULLET=$(usex bullet) |
543 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
544 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
545 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
546 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
547 |
- -DWITH_CYCLES=$(usex cycles) |
548 |
- -DWITH_CYCLES_DEVICE_OPENCL=$(usex opencl) |
549 |
- -DWITH_CYCLES_STANDALONE=$(usex standalone) |
550 |
- -DWITH_CYCLES_STANDALONE_GUI=$(usex standalone) |
551 |
- -DWITH_CYCLES_OSL=$(usex osl) |
552 |
- -DWITH_DOC_MANPAGE=$(usex man) |
553 |
- -DWITH_FFTW3=$(usex fftw) |
554 |
- -DWITH_GTESTS=$(usex test) |
555 |
- -DWITH_HEADLESS=$(usex headless) |
556 |
- -DWITH_INSTALL_PORTABLE=OFF |
557 |
- -DWITH_IMAGE_DDS=$(usex dds) |
558 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
559 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
560 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
561 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
562 |
- -DWITH_INTERNATIONAL=$(usex nls) |
563 |
- -DWITH_JACK=$(usex jack) |
564 |
- -DWITH_LLVM=$(usex llvm) |
565 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
566 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
567 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
568 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
569 |
- -DWITH_OPENAL=$(usex openal) |
570 |
- -DWITH_OPENCOLLADA=$(usex collada) |
571 |
- -DWITH_OPENCOLORIO=$(usex color-management) |
572 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
573 |
- -DWITH_OPENMP=$(usex openmp) |
574 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
575 |
- -DWITH_OPENVDB=$(usex openvdb) |
576 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
577 |
- -DWITH_PYTHON_INSTALL=$(usex system-python OFF ON) |
578 |
- -DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON) |
579 |
- -DWITH_SDL=$(usex sdl) |
580 |
- -DWITH_STATIC_LIBS=OFF |
581 |
- -DWITH_SYSTEM_EIGEN3=ON |
582 |
- -DWITH_SYSTEM_GLEW=ON |
583 |
- -DWITH_SYSTEM_LZO=ON |
584 |
- -DWITH_TBB=$(usex tbb) |
585 |
- -DWITH_X11=$(usex !headless) |
586 |
- ) |
587 |
- cmake_src_configure |
588 |
-} |
589 |
- |
590 |
-src_compile() { |
591 |
- cmake_src_compile |
592 |
- |
593 |
- if use doc; then |
594 |
- # Workaround for binary drivers. |
595 |
- addpredict /dev/ati |
596 |
- addpredict /dev/dri |
597 |
- addpredict /dev/nvidiactl |
598 |
- |
599 |
- einfo "Generating Blender C/C++ API docs ..." |
600 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
601 |
- doxygen -u Doxyfile || die |
602 |
- doxygen || die "doxygen failed to build API docs." |
603 |
- |
604 |
- cd "${CMAKE_USE_DIR}" || die |
605 |
- einfo "Generating (BPY) Blender Python API docs ..." |
606 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
607 |
- |
608 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
609 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
610 |
- fi |
611 |
-} |
612 |
- |
613 |
-src_test() { |
614 |
- if use test; then |
615 |
- einfo "Running Blender Unit Tests ..." |
616 |
- cd "${BUILD_DIR}"/bin/tests || die |
617 |
- local f |
618 |
- for f in *_test; do |
619 |
- ./"${f}" || die |
620 |
- done |
621 |
- fi |
622 |
-} |
623 |
- |
624 |
-src_install() { |
625 |
- # Pax mark blender for hardened support. |
626 |
- pax-mark m "${BUILD_DIR}"/bin/blender |
627 |
- |
628 |
- if use standalone; then |
629 |
- dobin "${BUILD_DIR}"/bin/cycles |
630 |
- fi |
631 |
- |
632 |
- if use doc; then |
633 |
- docinto "html/API/python" |
634 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
635 |
- |
636 |
- docinto "html/API/blender" |
637 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
638 |
- fi |
639 |
- |
640 |
- cmake_src_install |
641 |
- |
642 |
- # fix doc installdir |
643 |
- docinto "html" |
644 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
645 |
- rm -r "${ED}"/usr/share/doc/blender || die |
646 |
- |
647 |
- python_fix_shebang "${ED}/usr/bin/blender-thumbnailer.py" |
648 |
- python_optimize "${ED}/usr/share/blender/${MY_PV}/scripts" |
649 |
-} |
650 |
- |
651 |
-pkg_postinst() { |
652 |
- elog |
653 |
- elog "Blender uses python integration. As such, may have some" |
654 |
- elog "inherent risks with running unknown python scripts." |
655 |
- elog |
656 |
- elog "It is recommended to change your blender temp directory" |
657 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
658 |
- elog "home directory. This can be done by starting blender, then" |
659 |
- elog "dragging the main menu down do display all paths." |
660 |
- elog |
661 |
- ewarn |
662 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
663 |
- ewarn "libraries which are shipped with blender. Note that" |
664 |
- ewarn "these have caused security issues in the past." |
665 |
- ewarn "If you are concerned about security, file a bug upstream:" |
666 |
- ewarn " https://developer.blender.org/" |
667 |
- ewarn |
668 |
- xdg_icon_cache_update |
669 |
- xdg_mimeinfo_database_update |
670 |
- xdg_desktop_database_update |
671 |
-} |
672 |
- |
673 |
-pkg_postrm() { |
674 |
- xdg_icon_cache_update |
675 |
- xdg_mimeinfo_database_update |
676 |
- xdg_desktop_database_update |
677 |
- |
678 |
- ewarn "" |
679 |
- ewarn "You may want to remove the following directory." |
680 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
681 |
- ewarn "It may contain extra render kernels not tracked by portage" |
682 |
- ewarn "" |
683 |
-} |
684 |
|
685 |
diff --git a/media-gfx/blender/blender-2.90.1-r1.ebuild b/media-gfx/blender/blender-2.90.1-r1.ebuild |
686 |
deleted file mode 100644 |
687 |
index 8c7494285e8..00000000000 |
688 |
--- a/media-gfx/blender/blender-2.90.1-r1.ebuild |
689 |
+++ /dev/null |
690 |
@@ -1,321 +0,0 @@ |
691 |
-# Copyright 1999-2020 Gentoo Authors |
692 |
-# Distributed under the terms of the GNU General Public License v2 |
693 |
- |
694 |
-EAPI=7 |
695 |
- |
696 |
-PYTHON_COMPAT=( python3_7 ) |
697 |
- |
698 |
-inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 \ |
699 |
- toolchain-funcs xdg-utils |
700 |
- |
701 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
702 |
-HOMEPAGE="https://www.blender.org" |
703 |
- |
704 |
-SRC_URI="https://download.blender.org/source/${P}.tar.xz" |
705 |
- |
706 |
-# Blender can have letters in the version string, |
707 |
-# so strip off the letter if it exists. |
708 |
-MY_PV="$(ver_cut 1-2)" |
709 |
- |
710 |
-SLOT="0" |
711 |
-LICENSE="|| ( GPL-2 BL )" |
712 |
-KEYWORDS="~amd64 ~x86" |
713 |
-IUSE="+bullet +dds +elbeem +openexr +system-python +system-numpy +tbb \ |
714 |
- abi6-compat abi7-compat alembic collada color-management cuda cycles \ |
715 |
- debug doc ffmpeg fftw headless jack jemalloc jpeg2k llvm \ |
716 |
- man ndof nls openal opencl openimageio openmp opensubdiv \ |
717 |
- openvdb osl sdl sndfile standalone test tiff valgrind" |
718 |
-RESTRICT="!test? ( test )" |
719 |
- |
720 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
721 |
- alembic? ( openexr ) |
722 |
- cuda? ( cycles ) |
723 |
- cycles? ( openexr tbb tiff openimageio ) |
724 |
- elbeem? ( tbb ) |
725 |
- opencl? ( cycles ) |
726 |
- openvdb? ( |
727 |
- ^^ ( abi6-compat abi7-compat ) |
728 |
- tbb |
729 |
- ) |
730 |
- osl? ( cycles llvm ) |
731 |
- standalone? ( cycles )" |
732 |
- |
733 |
-RDEPEND="${PYTHON_DEPS} |
734 |
- dev-libs/boost:=[nls?,threads(+)] |
735 |
- dev-libs/lzo:2= |
736 |
- $(python_gen_cond_dep ' |
737 |
- dev-python/numpy[${PYTHON_USEDEP}] |
738 |
- dev-python/requests[${PYTHON_USEDEP}] |
739 |
- ') |
740 |
- media-libs/freetype:= |
741 |
- media-libs/glew:* |
742 |
- media-libs/libpng:= |
743 |
- media-libs/libsamplerate |
744 |
- sys-libs/zlib:= |
745 |
- virtual/glu |
746 |
- virtual/jpeg |
747 |
- virtual/libintl |
748 |
- virtual/opengl |
749 |
- alembic? ( >=media-gfx/alembic-1.7.12[boost(+),hdf(+)] ) |
750 |
- collada? ( >=media-libs/opencollada-1.6.68 ) |
751 |
- color-management? ( media-libs/opencolorio ) |
752 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
753 |
- ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] ) |
754 |
- fftw? ( sci-libs/fftw:3.0= ) |
755 |
- !headless? ( |
756 |
- x11-libs/libX11 |
757 |
- x11-libs/libXi |
758 |
- x11-libs/libXxf86vm |
759 |
- ) |
760 |
- jack? ( virtual/jack ) |
761 |
- jemalloc? ( dev-libs/jemalloc:= ) |
762 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
763 |
- llvm? ( sys-devel/llvm:= ) |
764 |
- ndof? ( |
765 |
- app-misc/spacenavd |
766 |
- dev-libs/libspnav |
767 |
- ) |
768 |
- nls? ( virtual/libiconv ) |
769 |
- openal? ( media-libs/openal ) |
770 |
- opencl? ( virtual/opencl ) |
771 |
- openimageio? ( media-libs/openimageio:= ) |
772 |
- openexr? ( |
773 |
- media-libs/ilmbase:= |
774 |
- media-libs/openexr:= |
775 |
- ) |
776 |
- opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=,opencl=] ) |
777 |
- openvdb? ( |
778 |
- ~media-gfx/openvdb-7.0.0[abi6-compat(-)?,abi7-compat(-)?] |
779 |
- dev-libs/c-blosc:= |
780 |
- ) |
781 |
- osl? ( media-libs/osl:= ) |
782 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
783 |
- sndfile? ( media-libs/libsndfile ) |
784 |
- tbb? ( dev-cpp/tbb ) |
785 |
- tiff? ( media-libs/tiff ) |
786 |
- valgrind? ( dev-util/valgrind ) |
787 |
-" |
788 |
- |
789 |
-DEPEND="${RDEPEND} |
790 |
- dev-cpp/eigen:= |
791 |
-" |
792 |
- |
793 |
-BDEPEND=" |
794 |
- virtual/pkgconfig |
795 |
- doc? ( |
796 |
- app-doc/doxygen[dot] |
797 |
- dev-python/sphinx[latex] |
798 |
- dev-texlive/texlive-bibtexextra |
799 |
- dev-texlive/texlive-fontsextra |
800 |
- dev-texlive/texlive-fontutils |
801 |
- dev-texlive/texlive-latex |
802 |
- dev-texlive/texlive-latexextra |
803 |
- ) |
804 |
- nls? ( sys-devel/gettext ) |
805 |
-" |
806 |
- |
807 |
-CMAKE_BUILD_TYPE="Release" |
808 |
- |
809 |
-blender_check_requirements() { |
810 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
811 |
- |
812 |
- if use doc; then |
813 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
814 |
- fi |
815 |
-} |
816 |
- |
817 |
-pkg_pretend() { |
818 |
- blender_check_requirements |
819 |
-} |
820 |
- |
821 |
-pkg_setup() { |
822 |
- blender_check_requirements |
823 |
- python-single-r1_pkg_setup |
824 |
-} |
825 |
- |
826 |
-src_prepare() { |
827 |
- cmake_src_prepare |
828 |
- |
829 |
- # we don't want static glew, but it's scattered across |
830 |
- # multiple files that differ from version to version |
831 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
832 |
- local file |
833 |
- while IFS="" read -d $'\0' -r file ; do |
834 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
835 |
- done < <(find . -type f -name "CMakeLists.txt") |
836 |
- |
837 |
- # Disable MS Windows help generation. The variable doesn't do what it |
838 |
- # it sounds like. |
839 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
840 |
- -i doc/doxygen/Doxyfile || die |
841 |
-} |
842 |
- |
843 |
-src_configure() { |
844 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
845 |
- # shadows, see bug #276338 for reference |
846 |
- append-flags -funsigned-char |
847 |
- append-lfs-flags |
848 |
- |
849 |
- if use openvdb; then |
850 |
- local version |
851 |
- if use abi6-compat; then |
852 |
- version=6; |
853 |
- elif use abi7-compat; then |
854 |
- version=7; |
855 |
- else |
856 |
- die "Openvdb abi version not compatible" |
857 |
- fi |
858 |
- append-cppflags -DOPENVDB_ABI_VERSION_NUMBER=${version} |
859 |
- fi |
860 |
- |
861 |
- local mycmakeargs=( |
862 |
- -DBUILD_SHARED_LIBS=OFF |
863 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
864 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
865 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
866 |
- -DWITH_ALEMBIC=$(usex alembic) |
867 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
868 |
- -DWITH_BOOST=ON |
869 |
- -DWITH_BULLET=$(usex bullet) |
870 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
871 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
872 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
873 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
874 |
- -DWITH_CYCLES=$(usex cycles) |
875 |
- -DWITH_CYCLES_DEVICE_OPENCL=$(usex opencl) |
876 |
- -DWITH_CYCLES_EMBREE=OFF |
877 |
- -DWITH_CYCLES_STANDALONE=$(usex standalone) |
878 |
- -DWITH_CYCLES_STANDALONE_GUI=$(usex standalone) |
879 |
- -DWITH_CYCLES_OSL=$(usex osl) |
880 |
- -DWITH_DOC_MANPAGE=$(usex man) |
881 |
- -DWITH_FFTW3=$(usex fftw) |
882 |
- -DWITH_GHOST_X11=$(usex !headless) |
883 |
- -DWITH_GTESTS=$(usex test) |
884 |
- -DWITH_HEADLESS=$(usex headless) |
885 |
- -DWITH_INSTALL_PORTABLE=OFF |
886 |
- -DWITH_IMAGE_DDS=$(usex dds) |
887 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
888 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
889 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
890 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
891 |
- -DWITH_INTERNATIONAL=$(usex nls) |
892 |
- -DWITH_JACK=$(usex jack) |
893 |
- -DWITH_LLVM=$(usex llvm) |
894 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
895 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
896 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
897 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
898 |
- -DWITH_OPENAL=$(usex openal) |
899 |
- -DWITH_OPENCOLLADA=$(usex collada) |
900 |
- -DWITH_OPENCOLORIO=$(usex color-management) |
901 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
902 |
- -DWITH_OPENMP=$(usex openmp) |
903 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
904 |
- -DWITH_OPENVDB=$(usex openvdb) |
905 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
906 |
- -DWITH_PYTHON_INSTALL=$(usex system-python OFF ON) |
907 |
- -DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON) |
908 |
- -DWITH_SDL=$(usex sdl) |
909 |
- -DWITH_STATIC_LIBS=OFF |
910 |
- -DWITH_SYSTEM_EIGEN3=ON |
911 |
- -DWITH_SYSTEM_GLEW=ON |
912 |
- -DWITH_SYSTEM_LZO=ON |
913 |
- -DWITH_TBB=$(usex tbb) |
914 |
- ) |
915 |
- cmake_src_configure |
916 |
-} |
917 |
- |
918 |
-src_compile() { |
919 |
- cmake_src_compile |
920 |
- |
921 |
- if use doc; then |
922 |
- # Workaround for binary drivers. |
923 |
- addpredict /dev/ati |
924 |
- addpredict /dev/dri |
925 |
- addpredict /dev/nvidiactl |
926 |
- |
927 |
- einfo "Generating Blender C/C++ API docs ..." |
928 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
929 |
- doxygen -u Doxyfile || die |
930 |
- doxygen || die "doxygen failed to build API docs." |
931 |
- |
932 |
- cd "${CMAKE_USE_DIR}" || die |
933 |
- einfo "Generating (BPY) Blender Python API docs ..." |
934 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
935 |
- |
936 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
937 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
938 |
- fi |
939 |
-} |
940 |
- |
941 |
-src_test() { |
942 |
- if use test; then |
943 |
- einfo "Running Blender Unit Tests ..." |
944 |
- cd "${BUILD_DIR}"/bin/tests || die |
945 |
- local f |
946 |
- for f in *_test; do |
947 |
- ./"${f}" || die |
948 |
- done |
949 |
- fi |
950 |
-} |
951 |
- |
952 |
-src_install() { |
953 |
- # Pax mark blender for hardened support. |
954 |
- pax-mark m "${BUILD_DIR}"/bin/blender |
955 |
- |
956 |
- if use standalone; then |
957 |
- dobin "${BUILD_DIR}"/bin/cycles |
958 |
- fi |
959 |
- |
960 |
- if use doc; then |
961 |
- docinto "html/API/python" |
962 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
963 |
- |
964 |
- docinto "html/API/blender" |
965 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
966 |
- fi |
967 |
- |
968 |
- cmake_src_install |
969 |
- |
970 |
- # fix doc installdir |
971 |
- docinto "html" |
972 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
973 |
- rm -r "${ED}"/usr/share/doc/blender || die |
974 |
- |
975 |
- python_fix_shebang "${ED}/usr/bin/blender-thumbnailer.py" |
976 |
- python_optimize "${ED}/usr/share/blender/${MY_PV}/scripts" |
977 |
-} |
978 |
- |
979 |
-pkg_postinst() { |
980 |
- elog |
981 |
- elog "Blender uses python integration. As such, may have some" |
982 |
- elog "inherent risks with running unknown python scripts." |
983 |
- elog |
984 |
- elog "It is recommended to change your blender temp directory" |
985 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
986 |
- elog "home directory. This can be done by starting blender, then" |
987 |
- elog "dragging the main menu down do display all paths." |
988 |
- elog |
989 |
- ewarn |
990 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
991 |
- ewarn "libraries which are shipped with blender. Note that" |
992 |
- ewarn "these have caused security issues in the past." |
993 |
- ewarn "If you are concerned about security, file a bug upstream:" |
994 |
- ewarn " https://developer.blender.org/" |
995 |
- ewarn |
996 |
- xdg_icon_cache_update |
997 |
- xdg_mimeinfo_database_update |
998 |
- xdg_desktop_database_update |
999 |
-} |
1000 |
- |
1001 |
-pkg_postrm() { |
1002 |
- xdg_icon_cache_update |
1003 |
- xdg_mimeinfo_database_update |
1004 |
- xdg_desktop_database_update |
1005 |
- |
1006 |
- ewarn "" |
1007 |
- ewarn "You may want to remove the following directory." |
1008 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
1009 |
- ewarn "It may contain extra render kernels not tracked by portage" |
1010 |
- ewarn "" |
1011 |
-} |
1012 |
|
1013 |
diff --git a/media-gfx/blender/blender-2.91.0.ebuild b/media-gfx/blender/blender-2.91.0.ebuild |
1014 |
deleted file mode 100644 |
1015 |
index bedb7cf4283..00000000000 |
1016 |
--- a/media-gfx/blender/blender-2.91.0.ebuild |
1017 |
+++ /dev/null |
1018 |
@@ -1,335 +0,0 @@ |
1019 |
-# Copyright 1999-2021 Gentoo Authors |
1020 |
-# Distributed under the terms of the GNU General Public License v2 |
1021 |
- |
1022 |
-EAPI=7 |
1023 |
- |
1024 |
-PYTHON_COMPAT=( python3_{7,8} ) |
1025 |
- |
1026 |
-inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 \ |
1027 |
- toolchain-funcs xdg-utils |
1028 |
- |
1029 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
1030 |
-HOMEPAGE="https://www.blender.org" |
1031 |
- |
1032 |
-SRC_URI="https://download.blender.org/source/${P}.tar.xz" |
1033 |
- |
1034 |
-# Blender can have letters in the version string, |
1035 |
-# so strip off the letter if it exists. |
1036 |
-MY_PV="$(ver_cut 1-2)" |
1037 |
- |
1038 |
-SLOT="0" |
1039 |
-LICENSE="|| ( GPL-2 BL )" |
1040 |
-KEYWORDS="~amd64 ~arm ~x86" |
1041 |
-IUSE="+bullet +dds +elbeem +openexr +system-python +system-numpy +tbb \ |
1042 |
- abi6-compat abi7-compat alembic collada color-management cuda cycles \ |
1043 |
- debug doc ffmpeg fftw headless jack jemalloc jpeg2k llvm \ |
1044 |
- man ndof nls openal opencl openimageio openmp opensubdiv \ |
1045 |
- openvdb osl sdl sndfile standalone test tiff valgrind" |
1046 |
-RESTRICT="!test? ( test )" |
1047 |
- |
1048 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
1049 |
- alembic? ( openexr ) |
1050 |
- cuda? ( cycles ) |
1051 |
- cycles? ( openexr tbb tiff openimageio ) |
1052 |
- elbeem? ( tbb ) |
1053 |
- opencl? ( cycles ) |
1054 |
- openvdb? ( |
1055 |
- ^^ ( abi6-compat abi7-compat ) |
1056 |
- tbb |
1057 |
- ) |
1058 |
- osl? ( cycles llvm ) |
1059 |
- standalone? ( cycles )" |
1060 |
- |
1061 |
-RDEPEND="${PYTHON_DEPS} |
1062 |
- dev-libs/boost:=[nls?,threads(+)] |
1063 |
- dev-libs/gmp |
1064 |
- dev-libs/pugixml |
1065 |
- dev-libs/lzo:2= |
1066 |
- $(python_gen_cond_dep ' |
1067 |
- dev-python/numpy[${PYTHON_USEDEP}] |
1068 |
- dev-python/requests[${PYTHON_USEDEP}] |
1069 |
- ') |
1070 |
- media-gfx/potrace |
1071 |
- media-libs/fontconfig:= |
1072 |
- media-libs/freetype:= |
1073 |
- media-libs/glew:* |
1074 |
- media-libs/libpng:= |
1075 |
- media-libs/libsamplerate |
1076 |
- sys-libs/zlib:= |
1077 |
- virtual/glu |
1078 |
- virtual/jpeg |
1079 |
- virtual/libintl |
1080 |
- virtual/opengl |
1081 |
- alembic? ( >=media-gfx/alembic-1.7.12[boost(+),hdf(+)] ) |
1082 |
- collada? ( >=media-libs/opencollada-1.6.68 ) |
1083 |
- color-management? ( media-libs/opencolorio ) |
1084 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
1085 |
- cycles? ( media-libs/freeglut ) |
1086 |
- ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] ) |
1087 |
- fftw? ( sci-libs/fftw:3.0= ) |
1088 |
- !headless? ( |
1089 |
- x11-libs/libX11 |
1090 |
- x11-libs/libXi |
1091 |
- x11-libs/libXxf86vm |
1092 |
- ) |
1093 |
- jack? ( virtual/jack ) |
1094 |
- jemalloc? ( dev-libs/jemalloc:= ) |
1095 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
1096 |
- llvm? ( sys-devel/llvm:= ) |
1097 |
- ndof? ( |
1098 |
- app-misc/spacenavd |
1099 |
- dev-libs/libspnav |
1100 |
- ) |
1101 |
- nls? ( virtual/libiconv ) |
1102 |
- openal? ( media-libs/openal ) |
1103 |
- opencl? ( virtual/opencl ) |
1104 |
- openimageio? ( media-libs/openimageio:= ) |
1105 |
- openexr? ( |
1106 |
- media-libs/ilmbase:= |
1107 |
- media-libs/openexr:= |
1108 |
- ) |
1109 |
- opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=,opencl=] ) |
1110 |
- openvdb? ( |
1111 |
- ~media-gfx/openvdb-7.0.0[abi6-compat(-)?,abi7-compat(-)?] |
1112 |
- dev-libs/c-blosc:= |
1113 |
- ) |
1114 |
- osl? ( media-libs/osl:= ) |
1115 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
1116 |
- sndfile? ( media-libs/libsndfile ) |
1117 |
- tbb? ( dev-cpp/tbb ) |
1118 |
- tiff? ( media-libs/tiff ) |
1119 |
- valgrind? ( dev-util/valgrind ) |
1120 |
-" |
1121 |
- |
1122 |
-DEPEND="${RDEPEND} |
1123 |
- dev-cpp/eigen:= |
1124 |
-" |
1125 |
- |
1126 |
-BDEPEND=" |
1127 |
- virtual/pkgconfig |
1128 |
- doc? ( |
1129 |
- app-doc/doxygen[dot] |
1130 |
- dev-python/sphinx[latex] |
1131 |
- dev-texlive/texlive-bibtexextra |
1132 |
- dev-texlive/texlive-fontsextra |
1133 |
- dev-texlive/texlive-fontutils |
1134 |
- dev-texlive/texlive-latex |
1135 |
- dev-texlive/texlive-latexextra |
1136 |
- ) |
1137 |
- nls? ( sys-devel/gettext ) |
1138 |
-" |
1139 |
- |
1140 |
-CMAKE_BUILD_TYPE="Release" |
1141 |
- |
1142 |
-blender_check_requirements() { |
1143 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
1144 |
- |
1145 |
- if use doc; then |
1146 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
1147 |
- fi |
1148 |
-} |
1149 |
- |
1150 |
-pkg_pretend() { |
1151 |
- blender_check_requirements |
1152 |
-} |
1153 |
- |
1154 |
-pkg_setup() { |
1155 |
- blender_check_requirements |
1156 |
- python-single-r1_pkg_setup |
1157 |
-} |
1158 |
- |
1159 |
-src_prepare() { |
1160 |
- cmake_src_prepare |
1161 |
- |
1162 |
- # we don't want static glew, but it's scattered across |
1163 |
- # multiple files that differ from version to version |
1164 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
1165 |
- local file |
1166 |
- while IFS="" read -d $'\0' -r file ; do |
1167 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
1168 |
- done < <(find . -type f -name "CMakeLists.txt") |
1169 |
- |
1170 |
- # Disable MS Windows help generation. The variable doesn't do what it |
1171 |
- # it sounds like. |
1172 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
1173 |
- -i doc/doxygen/Doxyfile || die |
1174 |
-} |
1175 |
- |
1176 |
-src_configure() { |
1177 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
1178 |
- # shadows, see bug #276338 for reference |
1179 |
- append-flags -funsigned-char |
1180 |
- append-lfs-flags |
1181 |
- |
1182 |
- if use openvdb; then |
1183 |
- local version |
1184 |
- if use abi6-compat; then |
1185 |
- version=6; |
1186 |
- elif use abi7-compat; then |
1187 |
- version=7; |
1188 |
- else |
1189 |
- die "Openvdb abi version not compatible" |
1190 |
- fi |
1191 |
- append-cppflags -DOPENVDB_ABI_VERSION_NUMBER=${version} |
1192 |
- fi |
1193 |
- |
1194 |
- local mycmakeargs=( |
1195 |
- -DBUILD_SHARED_LIBS=OFF |
1196 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
1197 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
1198 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
1199 |
- -DWITH_ALEMBIC=$(usex alembic) |
1200 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
1201 |
- -DWITH_BOOST=ON |
1202 |
- -DWITH_BULLET=$(usex bullet) |
1203 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
1204 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
1205 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
1206 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
1207 |
- -DWITH_CYCLES=$(usex cycles) |
1208 |
- -DWITH_CYCLES_DEVICE_OPENCL=$(usex opencl) |
1209 |
- -DWITH_CYCLES_EMBREE=OFF |
1210 |
- -DWITH_CYCLES_STANDALONE=$(usex standalone) |
1211 |
- -DWITH_CYCLES_STANDALONE_GUI=$(usex standalone) |
1212 |
- -DWITH_CYCLES_OSL=$(usex osl) |
1213 |
- -DWITH_DOC_MANPAGE=$(usex man) |
1214 |
- -DWITH_FFTW3=$(usex fftw) |
1215 |
- -DWITH_GHOST_X11=$(usex !headless) |
1216 |
- -DWITH_GTESTS=$(usex test) |
1217 |
- -DWITH_HEADLESS=$(usex headless) |
1218 |
- -DWITH_INSTALL_PORTABLE=OFF |
1219 |
- -DWITH_IMAGE_DDS=$(usex dds) |
1220 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
1221 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
1222 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
1223 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
1224 |
- -DWITH_INTERNATIONAL=$(usex nls) |
1225 |
- -DWITH_JACK=$(usex jack) |
1226 |
- -DWITH_LLVM=$(usex llvm) |
1227 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
1228 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
1229 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
1230 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
1231 |
- -DWITH_OPENAL=$(usex openal) |
1232 |
- -DWITH_OPENCOLLADA=$(usex collada) |
1233 |
- -DWITH_OPENCOLORIO=$(usex color-management) |
1234 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
1235 |
- -DWITH_OPENMP=$(usex openmp) |
1236 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
1237 |
- -DWITH_OPENVDB=$(usex openvdb) |
1238 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
1239 |
- -DWITH_PYTHON_INSTALL=$(usex system-python OFF ON) |
1240 |
- -DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON) |
1241 |
- -DWITH_SDL=$(usex sdl) |
1242 |
- -DWITH_STATIC_LIBS=OFF |
1243 |
- -DWITH_SYSTEM_EIGEN3=ON |
1244 |
- -DWITH_SYSTEM_GLEW=ON |
1245 |
- -DWITH_SYSTEM_LZO=ON |
1246 |
- -DWITH_TBB=$(usex tbb) |
1247 |
- ) |
1248 |
- cmake_src_configure |
1249 |
-} |
1250 |
- |
1251 |
-src_compile() { |
1252 |
- cmake_src_compile |
1253 |
- |
1254 |
- if use doc; then |
1255 |
- # Workaround for binary drivers. |
1256 |
- addpredict /dev/ati |
1257 |
- addpredict /dev/dri |
1258 |
- addpredict /dev/nvidiactl |
1259 |
- |
1260 |
- einfo "Generating Blender C/C++ API docs ..." |
1261 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
1262 |
- doxygen -u Doxyfile || die |
1263 |
- doxygen || die "doxygen failed to build API docs." |
1264 |
- |
1265 |
- cd "${CMAKE_USE_DIR}" || die |
1266 |
- einfo "Generating (BPY) Blender Python API docs ..." |
1267 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
1268 |
- |
1269 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
1270 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
1271 |
- fi |
1272 |
-} |
1273 |
- |
1274 |
-src_test() { |
1275 |
- if use test; then |
1276 |
- einfo "Running Blender Unit Tests ..." |
1277 |
- cd "${BUILD_DIR}"/bin/tests || die |
1278 |
- local f |
1279 |
- for f in *_test; do |
1280 |
- ./"${f}" || die |
1281 |
- done |
1282 |
- fi |
1283 |
-} |
1284 |
- |
1285 |
-src_install() { |
1286 |
- # Pax mark blender for hardened support. |
1287 |
- pax-mark m "${BUILD_DIR}"/bin/blender |
1288 |
- |
1289 |
- if use standalone; then |
1290 |
- dobin "${BUILD_DIR}"/bin/cycles |
1291 |
- fi |
1292 |
- |
1293 |
- if use doc; then |
1294 |
- docinto "html/API/python" |
1295 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
1296 |
- |
1297 |
- docinto "html/API/blender" |
1298 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
1299 |
- fi |
1300 |
- |
1301 |
- cmake_src_install |
1302 |
- |
1303 |
- # fix doc installdir |
1304 |
- docinto "html" |
1305 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
1306 |
- rm -r "${ED}"/usr/share/doc/blender || die |
1307 |
- |
1308 |
- python_fix_shebang "${ED}/usr/bin/blender-thumbnailer.py" |
1309 |
- python_optimize "${ED}/usr/share/blender/${MY_PV}/scripts" |
1310 |
-} |
1311 |
- |
1312 |
-pkg_postinst() { |
1313 |
- elog |
1314 |
- elog "Blender uses python integration. As such, may have some" |
1315 |
- elog "inherent risks with running unknown python scripts." |
1316 |
- elog |
1317 |
- elog "It is recommended to change your blender temp directory" |
1318 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
1319 |
- elog "home directory. This can be done by starting blender, then" |
1320 |
- elog "dragging the main menu down do display all paths." |
1321 |
- elog |
1322 |
- ewarn |
1323 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
1324 |
- ewarn "libraries which are shipped with blender. Note that" |
1325 |
- ewarn "these have caused security issues in the past." |
1326 |
- ewarn "If you are concerned about security, file a bug upstream:" |
1327 |
- ewarn " https://developer.blender.org/" |
1328 |
- ewarn |
1329 |
- |
1330 |
- if use python_single_target_python3_8; then |
1331 |
- elog "You've enabled python-3.8 support for blender, which is still experimental." |
1332 |
- elog "If you experience breakages with e.g. plugins, please switch to" |
1333 |
- elog "python_single_target_python3_7 instead." |
1334 |
- elog "Bug: https://bugs.gentoo.org/737388" |
1335 |
- elog |
1336 |
- fi |
1337 |
- |
1338 |
- xdg_icon_cache_update |
1339 |
- xdg_mimeinfo_database_update |
1340 |
- xdg_desktop_database_update |
1341 |
-} |
1342 |
- |
1343 |
-pkg_postrm() { |
1344 |
- xdg_icon_cache_update |
1345 |
- xdg_mimeinfo_database_update |
1346 |
- xdg_desktop_database_update |
1347 |
- |
1348 |
- ewarn "" |
1349 |
- ewarn "You may want to remove the following directory." |
1350 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
1351 |
- ewarn "It may contain extra render kernels not tracked by portage" |
1352 |
- ewarn "" |
1353 |
-} |