1 |
commit: 24a2cfcc3f5957f03df5987e06e8eb3398d5f102 |
2 |
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 7 07:54:05 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 7 16:38:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24a2cfcc |
7 |
|
8 |
media-gfx/blender: remove old stale version. |
9 |
|
10 |
This is prep work for the new ebuilds. |
11 |
|
12 |
Signed off by: Jonathan Scruggs (j.scruggs <AT> gmail.com, irc: Dracwyrm) |
13 |
Closes: https://github.com/gentoo/gentoo/pull/2503 |
14 |
|
15 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
16 |
|
17 |
media-gfx/blender/blender-2.72b-r3.ebuild | 278 ------------------------------ |
18 |
1 file changed, 278 deletions(-) |
19 |
|
20 |
diff --git a/media-gfx/blender/blender-2.72b-r3.ebuild b/media-gfx/blender/blender-2.72b-r3.ebuild |
21 |
deleted file mode 100644 |
22 |
index caeb898..00000000 |
23 |
--- a/media-gfx/blender/blender-2.72b-r3.ebuild |
24 |
+++ /dev/null |
25 |
@@ -1,278 +0,0 @@ |
26 |
-# Copyright 1999-2015 Gentoo Foundation |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Id$ |
29 |
- |
30 |
-## BUNDLED-DEPS: |
31 |
-# extern/cuew |
32 |
-# extern/Eigen3 |
33 |
-# extern/xdnd |
34 |
-# extern/carve |
35 |
-# extern/glew |
36 |
-# extern/libmv |
37 |
-# extern/clew |
38 |
-# extern/colamd |
39 |
-# extern/lzma |
40 |
-# extern/gtest |
41 |
-# extern/rangetree |
42 |
-# extern/libredcode |
43 |
-# extern/wcwidth |
44 |
-# extern/binreloc |
45 |
-# extern/recastnavigation |
46 |
-# extern/bullet2 |
47 |
-# extern/lzo |
48 |
-# extern/libopenjpeg |
49 |
-# extern/libmv/third_party/msinttypes |
50 |
-# extern/libmv/third_party/ceres |
51 |
-# extern/libmv/third_party/gflags |
52 |
-# extern/libmv/third_party/glog |
53 |
- |
54 |
-EAPI=5 |
55 |
-PYTHON_COMPAT=( python3_4 ) |
56 |
-#PATCHSET="1" |
57 |
- |
58 |
-inherit multilib fdo-mime gnome2-utils cmake-utils eutils python-single-r1 versionator flag-o-matic toolchain-funcs pax-utils check-reqs |
59 |
- |
60 |
-DESCRIPTION="3D Creation/Animation/Publishing System" |
61 |
-HOMEPAGE="http://www.blender.org" |
62 |
- |
63 |
-case ${PV} in |
64 |
- *_p*) |
65 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;; |
66 |
- *) |
67 |
- SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;; |
68 |
-esac |
69 |
- |
70 |
-if [[ -n ${PATCHSET} ]]; then |
71 |
- SRC_URI+=" https://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz" |
72 |
-fi |
73 |
- |
74 |
-SLOT="0" |
75 |
-LICENSE="|| ( GPL-2 BL )" |
76 |
-KEYWORDS="~amd64 ~x86" |
77 |
-IUSE="+boost +bullet collada colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jpeg2k libav ndof nls openal openimageio +opennl openmp +openexr player redcode sdl sndfile cpu_flags_x86_sse cpu_flags_x86_sse2 tiff" |
78 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
79 |
- player? ( game-engine ) |
80 |
- redcode? ( jpeg2k ffmpeg ) |
81 |
- cycles? ( boost openexr tiff ) |
82 |
- nls? ( boost ) |
83 |
- game-engine? ( boost )" |
84 |
- |
85 |
-RDEPEND=" |
86 |
- ${PYTHON_DEPS} |
87 |
- dev-python/numpy[${PYTHON_USEDEP}] |
88 |
- dev-python/requests[${PYTHON_USEDEP}] |
89 |
- >=media-libs/freetype-2.0:2 |
90 |
- media-libs/glew |
91 |
- media-libs/libpng:0 |
92 |
- media-libs/libsamplerate |
93 |
- sci-libs/ldl |
94 |
- sys-libs/zlib |
95 |
- virtual/glu |
96 |
- virtual/jpeg |
97 |
- virtual/libintl |
98 |
- virtual/opengl |
99 |
- x11-libs/libX11 |
100 |
- x11-libs/libXi |
101 |
- x11-libs/libXxf86vm |
102 |
- boost? ( >=dev-libs/boost-1.44[nls?,threads(+)] ) |
103 |
- collada? ( media-libs/opencollada ) |
104 |
- colorio? ( <=media-libs/opencolorio-1.0.9 ) |
105 |
- cycles? ( |
106 |
- media-libs/openimageio |
107 |
- ) |
108 |
- ffmpeg? ( |
109 |
- !libav? ( >=media-video/ffmpeg-2.1.4:0=[x264,mp3,encode,theora,jpeg2k?] ) |
110 |
- libav? ( >=media-video/libav-9:0=[x264,mp3,encode,theora,jpeg2k?] ) |
111 |
- ) |
112 |
- fftw? ( sci-libs/fftw:3.0 ) |
113 |
- jack? ( media-sound/jack-audio-connection-kit ) |
114 |
- jpeg2k? ( media-libs/openjpeg:0 ) |
115 |
- ndof? ( |
116 |
- app-misc/spacenavd |
117 |
- dev-libs/libspnav |
118 |
- ) |
119 |
- nls? ( virtual/libiconv ) |
120 |
- openal? ( >=media-libs/openal-1.6.372 ) |
121 |
- openimageio? ( media-libs/openimageio ) |
122 |
- openexr? ( media-libs/ilmbase media-libs/openexr ) |
123 |
- sdl? ( media-libs/libsdl[sound,joystick] ) |
124 |
- sndfile? ( media-libs/libsndfile ) |
125 |
- tiff? ( media-libs/tiff:0 )" |
126 |
-DEPEND="${RDEPEND} |
127 |
- doc? ( |
128 |
- app-doc/doxygen[-nodot(-),dot(+)] |
129 |
- dev-python/sphinx |
130 |
- ) |
131 |
- nls? ( sys-devel/gettext )" |
132 |
- |
133 |
-pkg_pretend() { |
134 |
- if use openmp && ! tc-has-openmp; then |
135 |
- eerror "You are using gcc built without 'openmp' USE." |
136 |
- eerror "Switch CXX to an OpenMP capable compiler." |
137 |
- die "Need openmp" |
138 |
- fi |
139 |
- |
140 |
- if use doc; then |
141 |
- CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend |
142 |
- fi |
143 |
-} |
144 |
- |
145 |
-pkg_setup() { |
146 |
- python-single-r1_pkg_setup |
147 |
-} |
148 |
- |
149 |
-src_prepare() { |
150 |
- epatch "${FILESDIR}"/${PN}-2.68-doxyfile.patch \ |
151 |
- "${FILESDIR}"/${PN}-2.68-fix-install-rules.patch \ |
152 |
- "${FILESDIR}"/${PN}-2.70-sse2.patch \ |
153 |
- "${FILESDIR}"/${PN}-2.72-T42797.diff |
154 |
- |
155 |
- epatch_user |
156 |
- |
157 |
- # we don't want static glew, but it's scattered across |
158 |
- # thousand files |
159 |
- # !!!CHECK THIS SED ON EVERY VERSION BUMP!!! |
160 |
- sed -i \ |
161 |
- -e '/-DGLEW_STATIC/d' \ |
162 |
- $(find . -type f -name "CMakeLists.txt") || die |
163 |
- |
164 |
- # linguas cleanup |
165 |
- local i |
166 |
- if ! use nls; then |
167 |
- rm -r "${S}"/release/datafiles/locale || die |
168 |
- else |
169 |
- if [[ -n "${LINGUAS+x}" ]] ; then |
170 |
- cd "${S}"/release/datafiles/locale/po |
171 |
- for i in *.po ; do |
172 |
- mylang=${i%.po} |
173 |
- has ${mylang} ${LINGUAS} || { rm -r ${i} || die ; } |
174 |
- done |
175 |
- fi |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-src_configure() { |
180 |
- # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
181 |
- # shadows, see bug #276338 for reference |
182 |
- append-flags -funsigned-char |
183 |
- append-lfs-flags |
184 |
- |
185 |
- # WITH_PYTHON_SECURITY |
186 |
- # WITH_PYTHON_SAFETY |
187 |
- local mycmakeargs=( |
188 |
- -DCMAKE_INSTALL_PREFIX=/usr |
189 |
- -DWITH_INSTALL_PORTABLE=OFF |
190 |
- $(cmake-utils_use_with boost BOOST) |
191 |
- $(cmake-utils_use_with cycles CYCLES) |
192 |
- $(cmake-utils_use_with collada OPENCOLLADA) |
193 |
- $(cmake-utils_use_with dds IMAGE_DDS) |
194 |
- $(cmake-utils_use_with elbeem MOD_FLUID) |
195 |
- $(cmake-utils_use_with ffmpeg CODEC_FFMPEG) |
196 |
- $(cmake-utils_use_with fftw FFTW3) |
197 |
- $(cmake-utils_use_with fftw MOD_OCEANSIM) |
198 |
- $(cmake-utils_use_with game-engine GAMEENGINE) |
199 |
- $(cmake-utils_use_with nls INTERNATIONAL) |
200 |
- $(cmake-utils_use_with jack JACK) |
201 |
- $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG) |
202 |
- $(cmake-utils_use_with openimageio OPENIMAGEIO) |
203 |
- $(cmake-utils_use_with openal OPENAL) |
204 |
- $(cmake-utils_use_with openexr IMAGE_OPENEXR) |
205 |
- $(cmake-utils_use_with openmp OPENMP) |
206 |
- $(cmake-utils_use_with opennl OPENNL) |
207 |
- $(cmake-utils_use_with player PLAYER) |
208 |
- $(cmake-utils_use_with redcode IMAGE_REDCODE) |
209 |
- $(cmake-utils_use_with sdl SDL) |
210 |
- $(cmake-utils_use_with sndfile CODEC_SNDFILE) |
211 |
- $(cmake-utils_use_with cpu_flags_x86_sse RAYOPTIMIZATION) |
212 |
- $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2) |
213 |
- $(cmake-utils_use_with bullet BULLET) |
214 |
- $(cmake-utils_use_with tiff IMAGE_TIFF) |
215 |
- $(cmake-utils_use_with colorio OPENCOLORIO) |
216 |
- $(cmake-utils_use_with ndof INPUT_NDOF) |
217 |
- -DWITH_PYTHON_INSTALL=OFF |
218 |
- -DWITH_PYTHON_INSTALL_NUMPY=OFF |
219 |
- -DWITH_STATIC_LIBS=OFF |
220 |
- -DWITH_SYSTEM_GLEW=ON |
221 |
- -DWITH_SYSTEM_OPENJPEG=ON |
222 |
- -DWITH_SYSTEM_BULLET=OFF |
223 |
- -DPYTHON_VERSION="${EPYTHON/python/}" |
224 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
225 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
226 |
- ) |
227 |
- cmake-utils_src_configure |
228 |
-} |
229 |
- |
230 |
-src_compile() { |
231 |
- cmake-utils_src_compile |
232 |
- |
233 |
- if use doc; then |
234 |
- einfo "Generating Blender C/C++ API docs ..." |
235 |
- cd "${CMAKE_USE_DIR}"/doc/doxygen || die |
236 |
- doxygen -u Doxyfile |
237 |
- doxygen || die "doxygen failed to build API docs." |
238 |
- |
239 |
- cd "${CMAKE_USE_DIR}" || die |
240 |
- einfo "Generating (BPY) Blender Python API docs ..." |
241 |
- "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "blender failed." |
242 |
- |
243 |
- cd "${CMAKE_USE_DIR}"/doc/python_api || die |
244 |
- sphinx-build sphinx-in BPY_API || die "sphinx failed." |
245 |
- fi |
246 |
-} |
247 |
- |
248 |
-src_test() { :; } |
249 |
- |
250 |
-src_install() { |
251 |
- local i |
252 |
- |
253 |
- # Pax mark blender for hardened support. |
254 |
- pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender |
255 |
- |
256 |
- if use doc; then |
257 |
- docinto "API/python" |
258 |
- dohtml -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/* |
259 |
- |
260 |
- docinto "API/blender" |
261 |
- dohtml -r "${CMAKE_USE_DIR}"/doc/doxygen/html/* |
262 |
- fi |
263 |
- |
264 |
- # fucked up cmake will relink binary for no reason |
265 |
- emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" install/fast |
266 |
- |
267 |
- # fix doc installdir |
268 |
- dohtml "${CMAKE_USE_DIR}"/release/text/readme.html |
269 |
- rm -rf "${ED%/}"/usr/share/doc/blender |
270 |
- |
271 |
- python_fix_shebang "${ED%/}"/usr/bin/blender-thumbnailer.py |
272 |
- python_optimize "${ED%/}"/usr/share/blender/${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 scripting." |
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 |
- fdo-mime_desktop_database_update |
298 |
-} |
299 |
- |
300 |
-pkg_postrm() { |
301 |
- gnome2_icon_cache_update |
302 |
- fdo-mime_desktop_database_update |
303 |
-} |