1 |
commit: fce2bae92fc72196e82a236c2ae3d290910c23b6 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 6 21:20:33 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 6 21:21:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fce2bae9 |
7 |
|
8 |
media-gfx/blender: Drop 2.79 and 2.79-r1 |
9 |
|
10 |
No one explained why keep it, so drop it. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/606406 |
13 |
Closes: https://bugs.gentoo.org/659498 |
14 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
media-gfx/blender/Manifest | 1 - |
18 |
media-gfx/blender/blender-2.79-r1.ebuild | 290 --------------------- |
19 |
media-gfx/blender/blender-2.79.ebuild | 287 -------------------- |
20 |
.../blender-2.79-fix-build-with-OSL-1.9.x.patch | 26 -- |
21 |
4 files changed, 604 deletions(-) |
22 |
|
23 |
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest |
24 |
index 1255e093b89..2a585f30d14 100644 |
25 |
--- a/media-gfx/blender/Manifest |
26 |
+++ b/media-gfx/blender/Manifest |
27 |
@@ -1,2 +1 @@ |
28 |
-DIST blender-2.79.tar.gz 50145270 BLAKE2B 5c11b36840d4bf4a414f01d1f8efcbfb2879ce56c9e2ebe32d8bb0be3ce29fd194dec8b3aa5bca9bf664804c1be57d01394494fdfebc7a4d8257bd2c47866338 SHA512 9b81c41882f4e150476ebda5b301b78c2d35ea918394c8a01671fc031f7cb7a34b5a3d68b6a345f6d23fd9ecedd25bc0bd24f9f9b3ec771237ac4496bbde7d2f |
29 |
DIST blender-2.79b.tar.gz 50204270 BLAKE2B 78bda294df783ee9bcbcf32f9a112737b2947da5146fd4351b8b36d81c6630ed0ea302b2fb539642cfbdcc4b64df35af5c8545a3bbf50b1cf87dcf3a60eb4ac0 SHA512 2db21ace446168dd683cdb5aad9dec001f8888ae4e9603a04ddb44fb78489ded827deb07e83712b0f1118a0e7bf66f2a5d935dc4ebb3a6703d72672ff414367f |
30 |
|
31 |
diff --git a/media-gfx/blender/blender-2.79-r1.ebuild b/media-gfx/blender/blender-2.79-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 2db487bd238..00000000000 |
34 |
--- a/media-gfx/blender/blender-2.79-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,290 +0,0 @@ |
37 |
-# Copyright 1999-2018 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
-PYTHON_COMPAT=( python{3_5,3_6} ) |
42 |
- |
43 |
-inherit check-reqs cmake-utils xdg-utils flag-o-matic gnome2-utils \ |
44 |
- pax-utils python-single-r1 toolchain-funcs versionator |
45 |
- |
46 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
47 |
-HOMEPAGE="https://www.blender.org" |
48 |
- |
49 |
-SRC_URI="https://download.blender.org/source/${P}.tar.gz" |
50 |
- |
51 |
-# Blender can have letters in the version string, |
52 |
-# so strip of the letter if it exists. |
53 |
-MY_PV="$(get_version_component_range 1-2)" |
54 |
- |
55 |
-SLOT="0" |
56 |
-LICENSE="|| ( GPL-2 BL )" |
57 |
-KEYWORDS="amd64 ~x86" |
58 |
-IUSE="+bullet +dds +elbeem +game-engine +openexr collada colorio \ |
59 |
- cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \ |
60 |
- llvm man ndof nls openal opencl openimageio openmp opensubdiv openvdb \ |
61 |
- osl player sdl sndfile test tiff valgrind" |
62 |
- |
63 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
64 |
- player? ( game-engine !headless ) |
65 |
- cuda? ( cycles ) |
66 |
- cycles? ( openexr tiff openimageio ) |
67 |
- opencl? ( cycles ) |
68 |
- osl? ( cycles llvm )" |
69 |
- |
70 |
-RDEPEND="${PYTHON_DEPS} |
71 |
- >=dev-libs/boost-1.62:=[nls?,threads(+)] |
72 |
- dev-libs/lzo:2 |
73 |
- >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}] |
74 |
- dev-python/requests[${PYTHON_USEDEP}] |
75 |
- media-libs/freetype |
76 |
- media-libs/glew:* |
77 |
- media-libs/libpng:0= |
78 |
- media-libs/libsamplerate |
79 |
- sys-libs/zlib |
80 |
- virtual/glu |
81 |
- virtual/jpeg:0= |
82 |
- virtual/libintl |
83 |
- virtual/opengl |
84 |
- collada? ( >=media-libs/opencollada-1.6.18:= ) |
85 |
- colorio? ( media-libs/opencolorio ) |
86 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
87 |
- ffmpeg? ( <media-video/ffmpeg-4.0:=[x264,mp3,encode,theora,jpeg2k?] ) |
88 |
- libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] ) |
89 |
- fftw? ( sci-libs/fftw:3.0= ) |
90 |
- !headless? ( |
91 |
- x11-libs/libX11 |
92 |
- x11-libs/libXi |
93 |
- x11-libs/libXxf86vm |
94 |
- ) |
95 |
- jack? ( virtual/jack ) |
96 |
- jemalloc? ( dev-libs/jemalloc:= ) |
97 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
98 |
- llvm? ( sys-devel/llvm:= ) |
99 |
- ndof? ( |
100 |
- app-misc/spacenavd |
101 |
- dev-libs/libspnav |
102 |
- ) |
103 |
- nls? ( virtual/libiconv ) |
104 |
- openal? ( media-libs/openal ) |
105 |
- opencl? ( virtual/opencl ) |
106 |
- openimageio? ( >=media-libs/openimageio-1.7.0 ) |
107 |
- openexr? ( |
108 |
- >=media-libs/ilmbase-2.2.0:= |
109 |
- >=media-libs/openexr-2.2.0:= |
110 |
- ) |
111 |
- opensubdiv? ( >=media-libs/opensubdiv-3.3.0:=[cuda=,opencl=] ) |
112 |
- openvdb? ( |
113 |
- <media-gfx/openvdb-5.0.0:=[${PYTHON_USEDEP},abi3-compat] |
114 |
- dev-cpp/tbb |
115 |
- >=dev-libs/c-blosc-1.5.2 |
116 |
- ) |
117 |
- osl? ( media-libs/osl:= ) |
118 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
119 |
- sndfile? ( media-libs/libsndfile ) |
120 |
- tiff? ( media-libs/tiff:0 ) |
121 |
- valgrind? ( dev-util/valgrind )" |
122 |
- |
123 |
-DEPEND="${RDEPEND} |
124 |
- virtual/pkgconfig |
125 |
- >=dev-cpp/eigen-3.2.8:3 |
126 |
- nls? ( sys-devel/gettext ) |
127 |
- doc? ( |
128 |
- app-doc/doxygen[-nodot(-),dot(+),latex] |
129 |
- dev-python/sphinx[latex] |
130 |
- )" |
131 |
- |
132 |
-PATCHES=( |
133 |
- "${FILESDIR}/${PN}-fix-install-rules.patch" |
134 |
- "${FILESDIR}/${P}-fix-build-with-OSL-1.9.x.patch" |
135 |
-) |
136 |
- |
137 |
-blender_check_requirements() { |
138 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
139 |
- |
140 |
- if use doc; then |
141 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
142 |
- fi |
143 |
-} |
144 |
- |
145 |
-pkg_pretend() { |
146 |
- blender_check_requirements |
147 |
-} |
148 |
- |
149 |
-pkg_setup() { |
150 |
- blender_check_requirements |
151 |
- python-single-r1_pkg_setup |
152 |
-} |
153 |
- |
154 |
-src_prepare() { |
155 |
- cmake-utils_src_prepare |
156 |
- |
157 |
- # we don't want static glew, but it's scattered across |
158 |
- # multiple files that differ from version to version |
159 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
160 |
- local file |
161 |
- while IFS="" read -d $'\0' -r file ; do |
162 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
163 |
- done < <(find . -type f -name "CMakeLists.txt") |
164 |
- |
165 |
- # Disable MS Windows help generation. The variable doesn't do what it |
166 |
- # it sounds like. |
167 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
168 |
- -i doc/doxygen/Doxyfile || die |
169 |
-} |
170 |
- |
171 |
-src_configure() { |
172 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
173 |
- # shadows, see bug #276338 for reference |
174 |
- append-flags -funsigned-char |
175 |
- append-lfs-flags |
176 |
- append-cppflags -DOPENVDB_3_ABI_COMPATIBLE |
177 |
- |
178 |
- local mycmakeargs=( |
179 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
180 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
181 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
182 |
- -DWITH_INSTALL_PORTABLE=OFF |
183 |
- -DWITH_PYTHON_INSTALL=OFF |
184 |
- -DWITH_PYTHON_INSTALL_NUMPY=OFF |
185 |
- -DWITH_STATIC_LIBS=OFF |
186 |
- -DWITH_SYSTEM_GLEW=ON |
187 |
- -DWITH_SYSTEM_OPENJPEG=ON |
188 |
- -DWITH_SYSTEM_EIGEN3=ON |
189 |
- -DWITH_SYSTEM_LZO=ON |
190 |
- -DWITH_C11=ON |
191 |
- -DWITH_CXX11=ON |
192 |
- -DWITH_BOOST=ON |
193 |
- -DWITH_BULLET=$(usex bullet) |
194 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
195 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
196 |
- -DWITH_CUDA=$(usex cuda) |
197 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
198 |
- -DWITH_CYCLES=$(usex cycles) |
199 |
- -DWITH_CYCLES_OSL=$(usex osl) |
200 |
- -DWITH_LLVM=$(usex llvm) |
201 |
- -DWITH_FFTW3=$(usex fftw) |
202 |
- -DWITH_GAMEENGINE=$(usex game-engine) |
203 |
- -DWITH_HEADLESS=$(usex headless) |
204 |
- -DWITH_X11=$(usex !headless) |
205 |
- -DWITH_IMAGE_DDS=$(usex dds) |
206 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
207 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
208 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
209 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
210 |
- -DWITH_INTERNATIONAL=$(usex nls) |
211 |
- -DWITH_JACK=$(usex jack) |
212 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
213 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
214 |
- -DWITH_OPENAL=$(usex openal) |
215 |
- -DWITH_OPENCL=$(usex opencl) |
216 |
- -DWITH_OPENCOLORIO=$(usex colorio) |
217 |
- -DWITH_OPENCOLLADA=$(usex collada) |
218 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
219 |
- -DWITH_OPENMP=$(usex openmp) |
220 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
221 |
- -DWITH_OPENVDB=$(usex openvdb) |
222 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
223 |
- -DWITH_PLAYER=$(usex player) |
224 |
- -DWITH_SDL=$(usex sdl) |
225 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
226 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
227 |
- -DWITH_GTESTS=$(usex test) |
228 |
- -DWITH_DOC_MANPAGE=$(usex man) |
229 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
230 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
231 |
- ) |
232 |
- cmake-utils_src_configure |
233 |
-} |
234 |
- |
235 |
-src_compile() { |
236 |
- cmake-utils_src_compile |
237 |
- |
238 |
- if use doc; then |
239 |
- # Workaround for binary drivers. |
240 |
- addpredict /dev/ati |
241 |
- addpredict /dev/dri |
242 |
- addpredict /dev/nvidiactl |
243 |
- |
244 |
- einfo "Generating Blender C/C++ API docs ..." |
245 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
246 |
- doxygen -u Doxyfile || die |
247 |
- doxygen || die "doxygen failed to build API docs." |
248 |
- |
249 |
- cd "${CMAKE_USE_DIR}" || die |
250 |
- einfo "Generating (BPY) Blender Python API docs ..." |
251 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
252 |
- |
253 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
254 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
255 |
- fi |
256 |
-} |
257 |
- |
258 |
-src_test() { |
259 |
- if use test; then |
260 |
- einfo "Running Blender Unit Tests ..." |
261 |
- cd "${BUILD_DIR}"/bin/tests || die |
262 |
- local f |
263 |
- for f in *_test; do |
264 |
- ./"${f}" || die |
265 |
- done |
266 |
- fi |
267 |
-} |
268 |
- |
269 |
-src_install() { |
270 |
- # Pax mark blender for hardened support. |
271 |
- pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender |
272 |
- |
273 |
- if use doc; then |
274 |
- docinto "html/API/python" |
275 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
276 |
- |
277 |
- docinto "html/API/blender" |
278 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
279 |
- fi |
280 |
- |
281 |
- cmake-utils_src_install |
282 |
- |
283 |
- # fix doc installdir |
284 |
- docinto "html" |
285 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
286 |
- rm -r "${ED%/}"/usr/share/doc/blender || die |
287 |
- |
288 |
- python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py" |
289 |
- python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts" |
290 |
-} |
291 |
- |
292 |
-pkg_preinst() { |
293 |
- gnome2_icon_savelist |
294 |
-} |
295 |
- |
296 |
-pkg_postinst() { |
297 |
- elog |
298 |
- elog "Blender uses python integration. As such, may have some" |
299 |
- elog "inherit risks with running unknown python scripts." |
300 |
- elog |
301 |
- elog "It is recommended to change your blender temp directory" |
302 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
303 |
- elog "home directory. This can be done by starting blender, then" |
304 |
- elog "dragging the main menu down do display all paths." |
305 |
- elog |
306 |
- ewarn |
307 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
308 |
- ewarn "libraries which are shipped with blender. Note that" |
309 |
- ewarn "these have caused security issues in the past." |
310 |
- ewarn "If you are concerned about security, file a bug upstream:" |
311 |
- ewarn " https://developer.blender.org/" |
312 |
- ewarn |
313 |
- gnome2_icon_cache_update |
314 |
- xdg_mimeinfo_database_update |
315 |
-} |
316 |
- |
317 |
-pkg_postrm() { |
318 |
- gnome2_icon_cache_update |
319 |
- xdg_mimeinfo_database_update |
320 |
- |
321 |
- ewarn "" |
322 |
- ewarn "You may want to remove the following directory." |
323 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
324 |
- ewarn "It may contain extra render kernels not tracked by portage" |
325 |
- ewarn "" |
326 |
-} |
327 |
|
328 |
diff --git a/media-gfx/blender/blender-2.79.ebuild b/media-gfx/blender/blender-2.79.ebuild |
329 |
deleted file mode 100644 |
330 |
index 7a99f994dd2..00000000000 |
331 |
--- a/media-gfx/blender/blender-2.79.ebuild |
332 |
+++ /dev/null |
333 |
@@ -1,287 +0,0 @@ |
334 |
-# Copyright 1999-2018 Gentoo Foundation |
335 |
-# Distributed under the terms of the GNU General Public License v2 |
336 |
- |
337 |
-EAPI=6 |
338 |
-PYTHON_COMPAT=( python{3_5,3_6} ) |
339 |
- |
340 |
-inherit check-reqs cmake-utils xdg-utils flag-o-matic gnome2-utils \ |
341 |
- pax-utils python-single-r1 toolchain-funcs versionator |
342 |
- |
343 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
344 |
-HOMEPAGE="https://www.blender.org" |
345 |
- |
346 |
-SRC_URI="https://download.blender.org/source/${P}.tar.gz" |
347 |
- |
348 |
-# Blender can have letters in the version string, |
349 |
-# so strip of the letter if it exists. |
350 |
-MY_PV="$(get_version_component_range 1-2)" |
351 |
- |
352 |
-SLOT="0" |
353 |
-LICENSE="|| ( GPL-2 BL )" |
354 |
-KEYWORDS="~amd64 ~x86" |
355 |
-IUSE="+bullet +dds +elbeem +game-engine +openexr collada colorio \ |
356 |
- cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \ |
357 |
- llvm man ndof nls openal opencl openimageio openmp opensubdiv openvdb \ |
358 |
- osl player sdl sndfile test tiff valgrind" |
359 |
- |
360 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
361 |
- player? ( game-engine !headless ) |
362 |
- cuda? ( cycles ) |
363 |
- cycles? ( openexr tiff openimageio ) |
364 |
- opencl? ( cycles ) |
365 |
- osl? ( cycles llvm )" |
366 |
- |
367 |
-RDEPEND="${PYTHON_DEPS} |
368 |
- >=dev-libs/boost-1.62:=[nls?,threads(+)] |
369 |
- dev-libs/lzo:2 |
370 |
- >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}] |
371 |
- dev-python/requests[${PYTHON_USEDEP}] |
372 |
- media-libs/freetype |
373 |
- media-libs/glew:* |
374 |
- media-libs/libpng:0= |
375 |
- media-libs/libsamplerate |
376 |
- sys-libs/zlib |
377 |
- virtual/glu |
378 |
- virtual/jpeg:0= |
379 |
- virtual/libintl |
380 |
- virtual/opengl |
381 |
- collada? ( >=media-libs/opencollada-1.6.18:= ) |
382 |
- colorio? ( media-libs/opencolorio ) |
383 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
384 |
- ffmpeg? ( <media-video/ffmpeg-4.0:=[x264,mp3,encode,theora,jpeg2k?] ) |
385 |
- libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] ) |
386 |
- fftw? ( sci-libs/fftw:3.0= ) |
387 |
- !headless? ( |
388 |
- x11-libs/libX11 |
389 |
- x11-libs/libXi |
390 |
- x11-libs/libXxf86vm |
391 |
- ) |
392 |
- jack? ( virtual/jack ) |
393 |
- jemalloc? ( dev-libs/jemalloc:= ) |
394 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
395 |
- llvm? ( sys-devel/llvm:= ) |
396 |
- ndof? ( |
397 |
- app-misc/spacenavd |
398 |
- dev-libs/libspnav |
399 |
- ) |
400 |
- nls? ( virtual/libiconv ) |
401 |
- openal? ( media-libs/openal ) |
402 |
- opencl? ( virtual/opencl ) |
403 |
- openimageio? ( >=media-libs/openimageio-1.7.0 ) |
404 |
- openexr? ( |
405 |
- >=media-libs/ilmbase-2.2.0:= |
406 |
- >=media-libs/openexr-2.2.0:= |
407 |
- ) |
408 |
- opensubdiv? ( >=media-libs/opensubdiv-3.3.0:=[cuda=,opencl=] ) |
409 |
- openvdb? ( |
410 |
- <media-gfx/openvdb-5.0.0:=[${PYTHON_USEDEP},abi3-compat] |
411 |
- dev-cpp/tbb |
412 |
- >=dev-libs/c-blosc-1.5.2 |
413 |
- ) |
414 |
- osl? ( media-libs/osl:= ) |
415 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
416 |
- sndfile? ( media-libs/libsndfile ) |
417 |
- tiff? ( media-libs/tiff:0 ) |
418 |
- valgrind? ( dev-util/valgrind )" |
419 |
- |
420 |
-DEPEND="${RDEPEND} |
421 |
- virtual/pkgconfig |
422 |
- >=dev-cpp/eigen-3.2.8:3 |
423 |
- nls? ( sys-devel/gettext ) |
424 |
- doc? ( |
425 |
- app-doc/doxygen[-nodot(-),dot(+),latex] |
426 |
- dev-python/sphinx[latex] |
427 |
- )" |
428 |
- |
429 |
-PATCHES=( "${FILESDIR}/${PN}-fix-install-rules.patch" ) |
430 |
- |
431 |
-blender_check_requirements() { |
432 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
433 |
- |
434 |
- if use doc; then |
435 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
436 |
- fi |
437 |
-} |
438 |
- |
439 |
-pkg_pretend() { |
440 |
- blender_check_requirements |
441 |
-} |
442 |
- |
443 |
-pkg_setup() { |
444 |
- blender_check_requirements |
445 |
- python-single-r1_pkg_setup |
446 |
-} |
447 |
- |
448 |
-src_prepare() { |
449 |
- cmake-utils_src_prepare |
450 |
- |
451 |
- # we don't want static glew, but it's scattered across |
452 |
- # multiple files that differ from version to version |
453 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
454 |
- local file |
455 |
- while IFS="" read -d $'\0' -r file ; do |
456 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
457 |
- done < <(find . -type f -name "CMakeLists.txt") |
458 |
- |
459 |
- # Disable MS Windows help generation. The variable doesn't do what it |
460 |
- # it sounds like. |
461 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
462 |
- -i doc/doxygen/Doxyfile || die |
463 |
-} |
464 |
- |
465 |
-src_configure() { |
466 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
467 |
- # shadows, see bug #276338 for reference |
468 |
- append-flags -funsigned-char |
469 |
- append-lfs-flags |
470 |
- append-cppflags -DOPENVDB_3_ABI_COMPATIBLE |
471 |
- |
472 |
- local mycmakeargs=( |
473 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
474 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
475 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
476 |
- -DWITH_INSTALL_PORTABLE=OFF |
477 |
- -DWITH_PYTHON_INSTALL=OFF |
478 |
- -DWITH_PYTHON_INSTALL_NUMPY=OFF |
479 |
- -DWITH_STATIC_LIBS=OFF |
480 |
- -DWITH_SYSTEM_GLEW=ON |
481 |
- -DWITH_SYSTEM_OPENJPEG=ON |
482 |
- -DWITH_SYSTEM_EIGEN3=ON |
483 |
- -DWITH_SYSTEM_LZO=ON |
484 |
- -DWITH_C11=ON |
485 |
- -DWITH_CXX11=ON |
486 |
- -DWITH_BOOST=ON |
487 |
- -DWITH_BULLET=$(usex bullet) |
488 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
489 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
490 |
- -DWITH_CUDA=$(usex cuda) |
491 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
492 |
- -DWITH_CYCLES=$(usex cycles) |
493 |
- -DWITH_CYCLES_OSL=$(usex osl) |
494 |
- -DWITH_LLVM=$(usex llvm) |
495 |
- -DWITH_FFTW3=$(usex fftw) |
496 |
- -DWITH_GAMEENGINE=$(usex game-engine) |
497 |
- -DWITH_HEADLESS=$(usex headless) |
498 |
- -DWITH_X11=$(usex !headless) |
499 |
- -DWITH_IMAGE_DDS=$(usex dds) |
500 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
501 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
502 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
503 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
504 |
- -DWITH_INTERNATIONAL=$(usex nls) |
505 |
- -DWITH_JACK=$(usex jack) |
506 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
507 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
508 |
- -DWITH_OPENAL=$(usex openal) |
509 |
- -DWITH_OPENCL=$(usex opencl) |
510 |
- -DWITH_OPENCOLORIO=$(usex colorio) |
511 |
- -DWITH_OPENCOLLADA=$(usex collada) |
512 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
513 |
- -DWITH_OPENMP=$(usex openmp) |
514 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
515 |
- -DWITH_OPENVDB=$(usex openvdb) |
516 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
517 |
- -DWITH_PLAYER=$(usex player) |
518 |
- -DWITH_SDL=$(usex sdl) |
519 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
520 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
521 |
- -DWITH_GTESTS=$(usex test) |
522 |
- -DWITH_DOC_MANPAGE=$(usex man) |
523 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
524 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
525 |
- ) |
526 |
- cmake-utils_src_configure |
527 |
-} |
528 |
- |
529 |
-src_compile() { |
530 |
- cmake-utils_src_compile |
531 |
- |
532 |
- if use doc; then |
533 |
- # Workaround for binary drivers. |
534 |
- addpredict /dev/ati |
535 |
- addpredict /dev/dri |
536 |
- addpredict /dev/nvidiactl |
537 |
- |
538 |
- einfo "Generating Blender C/C++ API docs ..." |
539 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
540 |
- doxygen -u Doxyfile || die |
541 |
- doxygen || die "doxygen failed to build API docs." |
542 |
- |
543 |
- cd "${CMAKE_USE_DIR}" || die |
544 |
- einfo "Generating (BPY) Blender Python API docs ..." |
545 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
546 |
- |
547 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
548 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
549 |
- fi |
550 |
-} |
551 |
- |
552 |
-src_test() { |
553 |
- if use test; then |
554 |
- einfo "Running Blender Unit Tests ..." |
555 |
- cd "${BUILD_DIR}"/bin/tests || die |
556 |
- local f |
557 |
- for f in *_test; do |
558 |
- ./"${f}" || die |
559 |
- done |
560 |
- fi |
561 |
-} |
562 |
- |
563 |
-src_install() { |
564 |
- # Pax mark blender for hardened support. |
565 |
- pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender |
566 |
- |
567 |
- if use doc; then |
568 |
- docinto "html/API/python" |
569 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
570 |
- |
571 |
- docinto "html/API/blender" |
572 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
573 |
- fi |
574 |
- |
575 |
- cmake-utils_src_install |
576 |
- |
577 |
- # fix doc installdir |
578 |
- docinto "html" |
579 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
580 |
- rm -r "${ED%/}"/usr/share/doc/blender || die |
581 |
- |
582 |
- python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py" |
583 |
- python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts" |
584 |
-} |
585 |
- |
586 |
-pkg_preinst() { |
587 |
- gnome2_icon_savelist |
588 |
-} |
589 |
- |
590 |
-pkg_postinst() { |
591 |
- elog |
592 |
- elog "Blender uses python integration. As such, may have some" |
593 |
- elog "inherit risks with running unknown python scripts." |
594 |
- elog |
595 |
- elog "It is recommended to change your blender temp directory" |
596 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
597 |
- elog "home directory. This can be done by starting blender, then" |
598 |
- elog "dragging the main menu down do display all paths." |
599 |
- elog |
600 |
- ewarn |
601 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
602 |
- ewarn "libraries which are shipped with blender. Note that" |
603 |
- ewarn "these have caused security issues in the past." |
604 |
- ewarn "If you are concerned about security, file a bug upstream:" |
605 |
- ewarn " https://developer.blender.org/" |
606 |
- ewarn |
607 |
- gnome2_icon_cache_update |
608 |
- xdg_mimeinfo_database_update |
609 |
-} |
610 |
- |
611 |
-pkg_postrm() { |
612 |
- gnome2_icon_cache_update |
613 |
- xdg_mimeinfo_database_update |
614 |
- |
615 |
- ewarn "" |
616 |
- ewarn "You may want to remove the following directory." |
617 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
618 |
- ewarn "It may contain extra render kernels not tracked by portage" |
619 |
- ewarn "" |
620 |
-} |
621 |
|
622 |
diff --git a/media-gfx/blender/files/blender-2.79-fix-build-with-OSL-1.9.x.patch b/media-gfx/blender/files/blender-2.79-fix-build-with-OSL-1.9.x.patch |
623 |
deleted file mode 100644 |
624 |
index 6b22f9335fd..00000000000 |
625 |
--- a/media-gfx/blender/files/blender-2.79-fix-build-with-OSL-1.9.x.patch |
626 |
+++ /dev/null |
627 |
@@ -1,26 +0,0 @@ |
628 |
-From d089875c4c753f084e02849462ec1bd6f785eadf Mon Sep 17 00:00:00 2001 |
629 |
-From: Brecht Van Lommel <brechtvanlommel@×××××.com> |
630 |
-Date: Sat, 18 Nov 2017 06:11:17 +0100 |
631 |
-Subject: [PATCH] Fix build with OSL 1.9.x, automatically aligns to 16 bytes |
632 |
- now. |
633 |
- |
634 |
---- |
635 |
- intern/cycles/kernel/osl/osl_closures.cpp | 4 ++++ |
636 |
- 1 file changed, 4 insertions(+) |
637 |
- |
638 |
-diff --git a/intern/cycles/kernel/osl/osl_closures.cpp b/intern/cycles/kernel/osl/osl_closures.cpp |
639 |
-index e3e85705ebc..597d25e9f30 100644 |
640 |
---- a/intern/cycles/kernel/osl/osl_closures.cpp |
641 |
-+++ b/intern/cycles/kernel/osl/osl_closures.cpp |
642 |
-@@ -232,7 +232,11 @@ static void register_closure(OSL::ShadingSystem *ss, const char *name, int id, O |
643 |
- /* optimization: it's possible to not use a prepare function at all and |
644 |
- * only initialize the actual class when accessing the closure component |
645 |
- * data, but then we need to map the id to the class somehow */ |
646 |
-+#if OSL_LIBRARY_VERSION_CODE >= 10900 |
647 |
-+ ss->register_closure(name, id, params, prepare, NULL); |
648 |
-+#else |
649 |
- ss->register_closure(name, id, params, prepare, NULL, 16); |
650 |
-+#endif |
651 |
- } |
652 |
- |
653 |
- void OSLShader::register_closures(OSLShadingSystem *ss_) |