1 |
commit: c4995cd6b3f58aa061c682a52f19c9e203b6a49d |
2 |
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 28 13:28:08 2018 +0000 |
4 |
Commit: Jonathan Scruggs <dracwyrm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 28 14:42:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4995cd6 |
7 |
|
8 |
media-gfx/blender: remove blender-2.79b |
9 |
|
10 |
media-gfx/blender/blender-2.79b.ebuild | 291 --------------------------------- |
11 |
1 file changed, 291 deletions(-) |
12 |
|
13 |
diff --git a/media-gfx/blender/blender-2.79b.ebuild b/media-gfx/blender/blender-2.79b.ebuild |
14 |
deleted file mode 100644 |
15 |
index be1c95be0e8..00000000000 |
16 |
--- a/media-gfx/blender/blender-2.79b.ebuild |
17 |
+++ /dev/null |
18 |
@@ -1,291 +0,0 @@ |
19 |
-# Copyright 1999-2018 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
- |
22 |
-EAPI=6 |
23 |
- |
24 |
-PYTHON_COMPAT=( python{3_5,3_6} ) |
25 |
- |
26 |
-inherit check-reqs cmake-utils xdg-utils flag-o-matic gnome2-utils \ |
27 |
- pax-utils python-single-r1 toolchain-funcs eapi7-ver |
28 |
- |
29 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
30 |
-HOMEPAGE="http://www.blender.org" |
31 |
- |
32 |
-SRC_URI="http://download.blender.org/source/${P}.tar.gz" |
33 |
- |
34 |
-# Blender can have letters in the version string, |
35 |
-# so strip of the letter if it exists. |
36 |
-MY_PV="$(ver_cut 1-2)" |
37 |
- |
38 |
-SLOT="0" |
39 |
-LICENSE="|| ( GPL-2 BL )" |
40 |
-KEYWORDS="~amd64 ~x86" |
41 |
-IUSE="+bullet +dds +elbeem +game-engine +openexr collada colorio \ |
42 |
- cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \ |
43 |
- llvm man ndof nls openal opencl openimageio openmp opensubdiv openvdb \ |
44 |
- osl player sdl sndfile test tiff valgrind" |
45 |
- |
46 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
47 |
- cuda? ( cycles ) |
48 |
- cycles? ( openexr tiff openimageio ) |
49 |
- opencl? ( cycles ) |
50 |
- osl? ( cycles llvm ) |
51 |
- player? ( game-engine !headless )" |
52 |
- |
53 |
-RDEPEND="${PYTHON_DEPS} |
54 |
- >=dev-libs/boost-1.62:=[nls?,threads(+)] |
55 |
- dev-libs/lzo:2 |
56 |
- >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}] |
57 |
- dev-python/requests[${PYTHON_USEDEP}] |
58 |
- media-libs/freetype |
59 |
- media-libs/glew:* |
60 |
- media-libs/libpng:0= |
61 |
- media-libs/libsamplerate |
62 |
- sys-libs/zlib |
63 |
- virtual/glu |
64 |
- virtual/jpeg:0= |
65 |
- virtual/libintl |
66 |
- virtual/opengl |
67 |
- collada? ( >=media-libs/opencollada-1.6.18:= ) |
68 |
- colorio? ( media-libs/opencolorio ) |
69 |
- cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
70 |
- ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] ) |
71 |
- libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] ) |
72 |
- fftw? ( sci-libs/fftw:3.0= ) |
73 |
- !headless? ( |
74 |
- x11-libs/libX11 |
75 |
- x11-libs/libXi |
76 |
- x11-libs/libXxf86vm |
77 |
- ) |
78 |
- jack? ( virtual/jack ) |
79 |
- jemalloc? ( dev-libs/jemalloc:= ) |
80 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
81 |
- llvm? ( sys-devel/llvm:= ) |
82 |
- ndof? ( |
83 |
- app-misc/spacenavd |
84 |
- dev-libs/libspnav |
85 |
- ) |
86 |
- nls? ( virtual/libiconv ) |
87 |
- openal? ( media-libs/openal ) |
88 |
- opencl? ( virtual/opencl ) |
89 |
- openimageio? ( >=media-libs/openimageio-1.7.0 ) |
90 |
- openexr? ( |
91 |
- >=media-libs/ilmbase-2.2.0:= |
92 |
- >=media-libs/openexr-2.2.0:= |
93 |
- ) |
94 |
- opensubdiv? ( >=media-libs/opensubdiv-3.3.0:=[cuda=,opencl=] ) |
95 |
- openvdb? ( |
96 |
- media-gfx/openvdb[${PYTHON_USEDEP},-abi3-compat(-)] |
97 |
- dev-cpp/tbb |
98 |
- >=dev-libs/c-blosc-1.5.2 |
99 |
- ) |
100 |
- osl? ( media-libs/osl:= ) |
101 |
- sdl? ( media-libs/libsdl2[sound,joystick] ) |
102 |
- sndfile? ( media-libs/libsndfile ) |
103 |
- tiff? ( media-libs/tiff:0 ) |
104 |
- valgrind? ( dev-util/valgrind )" |
105 |
- |
106 |
-DEPEND="${RDEPEND} |
107 |
- >=dev-cpp/eigen-3.2.8:3 |
108 |
- virtual/pkgconfig |
109 |
- doc? ( |
110 |
- app-doc/doxygen[-nodot(-),dot(+),latex] |
111 |
- dev-python/sphinx[latex] |
112 |
- ) |
113 |
- nls? ( sys-devel/gettext )" |
114 |
- |
115 |
-PATCHES=( |
116 |
- "${FILESDIR}/${PN}-fix-install-rules.patch" |
117 |
- "${FILESDIR}/${P}-gcc-8.patch" |
118 |
- "${FILESDIR}/${P}-ffmpeg-4-compat.patch" |
119 |
-) |
120 |
- |
121 |
-blender_check_requirements() { |
122 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
123 |
- |
124 |
- if use doc; then |
125 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-pkg_pretend() { |
130 |
- blender_check_requirements |
131 |
-} |
132 |
- |
133 |
-pkg_setup() { |
134 |
- blender_check_requirements |
135 |
- python-single-r1_pkg_setup |
136 |
-} |
137 |
- |
138 |
-src_prepare() { |
139 |
- cmake-utils_src_prepare |
140 |
- |
141 |
- # we don't want static glew, but it's scattered across |
142 |
- # multiple files that differ from version to version |
143 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
144 |
- local file |
145 |
- while IFS="" read -d $'\0' -r file ; do |
146 |
- sed -i -e '/-DGLEW_STATIC/d' "${file}" || die |
147 |
- done < <(find . -type f -name "CMakeLists.txt") |
148 |
- |
149 |
- # Disable MS Windows help generation. The variable doesn't do what it |
150 |
- # it sounds like. |
151 |
- sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \ |
152 |
- -i doc/doxygen/Doxyfile || die |
153 |
-} |
154 |
- |
155 |
-src_configure() { |
156 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
157 |
- # shadows, see bug #276338 for reference |
158 |
- append-flags -funsigned-char |
159 |
- append-lfs-flags |
160 |
- |
161 |
- local mycmakeargs=( |
162 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
163 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
164 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
165 |
- -DWITH_INSTALL_PORTABLE=OFF |
166 |
- -DWITH_PYTHON_INSTALL=OFF |
167 |
- -DWITH_PYTHON_INSTALL_NUMPY=OFF |
168 |
- -DWITH_STATIC_LIBS=OFF |
169 |
- -DWITH_SYSTEM_GLEW=ON |
170 |
- -DWITH_SYSTEM_OPENJPEG=ON |
171 |
- -DWITH_SYSTEM_EIGEN3=ON |
172 |
- -DWITH_SYSTEM_LZO=ON |
173 |
- -DWITH_C11=ON |
174 |
- -DWITH_CXX11=ON |
175 |
- -DWITH_BOOST=ON |
176 |
- -DWITH_BULLET=$(usex bullet) |
177 |
- -DWITH_CODEC_FFMPEG=$(usex ffmpeg) |
178 |
- -DWITH_CODEC_SNDFILE=$(usex sndfile) |
179 |
- -DWITH_CUDA=$(usex cuda) |
180 |
- -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) |
181 |
- -DWITH_CYCLES=$(usex cycles) |
182 |
- -DWITH_CYCLES_OSL=$(usex osl) |
183 |
- -DWITH_LLVM=$(usex llvm) |
184 |
- -DWITH_FFTW3=$(usex fftw) |
185 |
- -DWITH_GAMEENGINE=$(usex game-engine) |
186 |
- -DWITH_HEADLESS=$(usex headless) |
187 |
- -DWITH_X11=$(usex !headless) |
188 |
- -DWITH_IMAGE_DDS=$(usex dds) |
189 |
- -DWITH_IMAGE_OPENEXR=$(usex openexr) |
190 |
- -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k) |
191 |
- -DWITH_IMAGE_TIFF=$(usex tiff) |
192 |
- -DWITH_INPUT_NDOF=$(usex ndof) |
193 |
- -DWITH_INTERNATIONAL=$(usex nls) |
194 |
- -DWITH_JACK=$(usex jack) |
195 |
- -DWITH_MOD_FLUID=$(usex elbeem) |
196 |
- -DWITH_MOD_OCEANSIM=$(usex fftw) |
197 |
- -DWITH_OPENAL=$(usex openal) |
198 |
- -DWITH_OPENCL=$(usex opencl) |
199 |
- -DWITH_OPENCOLORIO=$(usex colorio) |
200 |
- -DWITH_OPENCOLLADA=$(usex collada) |
201 |
- -DWITH_OPENIMAGEIO=$(usex openimageio) |
202 |
- -DWITH_OPENMP=$(usex openmp) |
203 |
- -DWITH_OPENSUBDIV=$(usex opensubdiv) |
204 |
- -DWITH_OPENVDB=$(usex openvdb) |
205 |
- -DWITH_OPENVDB_BLOSC=$(usex openvdb) |
206 |
- -DWITH_PLAYER=$(usex player) |
207 |
- -DWITH_SDL=$(usex sdl) |
208 |
- -DWITH_CXX_GUARDEDALLOC=$(usex debug) |
209 |
- -DWITH_ASSERT_ABORT=$(usex debug) |
210 |
- -DWITH_GTESTS=$(usex test) |
211 |
- -DWITH_DOC_MANPAGE=$(usex man) |
212 |
- -DWITH_MEM_JEMALLOC=$(usex jemalloc) |
213 |
- -DWITH_MEM_VALGRIND=$(usex valgrind) |
214 |
- ) |
215 |
- cmake-utils_src_configure |
216 |
-} |
217 |
- |
218 |
-src_compile() { |
219 |
- cmake-utils_src_compile |
220 |
- |
221 |
- if use doc; then |
222 |
- # Workaround for binary drivers. |
223 |
- addpredict /dev/ati |
224 |
- addpredict /dev/dri |
225 |
- addpredict /dev/nvidiactl |
226 |
- |
227 |
- einfo "Generating Blender C/C++ API docs ..." |
228 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
229 |
- doxygen -u Doxyfile || die |
230 |
- doxygen || die "doxygen failed to build API docs." |
231 |
- |
232 |
- cd "${CMAKE_USE_DIR}" || die |
233 |
- einfo "Generating (BPY) Blender Python API docs ..." |
234 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed." |
235 |
- |
236 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
237 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
238 |
- fi |
239 |
-} |
240 |
- |
241 |
-src_test() { |
242 |
- if use test; then |
243 |
- einfo "Running Blender Unit Tests ..." |
244 |
- cd "${BUILD_DIR}"/bin/tests || die |
245 |
- local f |
246 |
- for f in *_test; do |
247 |
- ./"${f}" || die |
248 |
- done |
249 |
- fi |
250 |
-} |
251 |
- |
252 |
-src_install() { |
253 |
- # Pax mark blender for hardened support. |
254 |
- pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender |
255 |
- |
256 |
- if use doc; then |
257 |
- docinto "html/API/python" |
258 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/. |
259 |
- |
260 |
- docinto "html/API/blender" |
261 |
- dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/. |
262 |
- fi |
263 |
- |
264 |
- cmake-utils_src_install |
265 |
- |
266 |
- # fix doc installdir |
267 |
- docinto "html" |
268 |
- dodoc "${CMAKE_USE_DIR}"/release/text/readme.html |
269 |
- rm -r "${ED%/}"/usr/share/doc/blender || die |
270 |
- |
271 |
- python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py" |
272 |
- python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts" |
273 |
-} |
274 |
- |
275 |
-pkg_preinst() { |
276 |
- gnome2_icon_savelist |
277 |
-} |
278 |
- |
279 |
-pkg_postinst() { |
280 |
- elog |
281 |
- elog "Blender uses python integration. As such, may have some" |
282 |
- elog "inherit risks with running unknown python scripts." |
283 |
- elog |
284 |
- elog "It is recommended to change your blender temp directory" |
285 |
- elog "from /tmp to /home/user/tmp or another tmp file under your" |
286 |
- elog "home directory. This can be done by starting blender, then" |
287 |
- elog "dragging the main menu down do display all paths." |
288 |
- elog |
289 |
- ewarn |
290 |
- ewarn "This ebuild does not unbundle the massive amount of 3rd party" |
291 |
- ewarn "libraries which are shipped with blender. Note that" |
292 |
- ewarn "these have caused security issues in the past." |
293 |
- ewarn "If you are concerned about security, file a bug upstream:" |
294 |
- ewarn " https://developer.blender.org/" |
295 |
- ewarn |
296 |
- gnome2_icon_cache_update |
297 |
- xdg_mimeinfo_database_update |
298 |
-} |
299 |
- |
300 |
-pkg_postrm() { |
301 |
- gnome2_icon_cache_update |
302 |
- xdg_mimeinfo_database_update |
303 |
- |
304 |
- ewarn "" |
305 |
- ewarn "You may want to remove the following directory." |
306 |
- ewarn "~/.config/${PN}/${MY_PV}/cache/" |
307 |
- ewarn "It may contain extra render kernels not tracked by portage" |
308 |
- ewarn "" |
309 |
-} |