Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: blender-2.72b-r3.ebuild ChangeLog
Date: Sun, 01 Feb 2015 23:03:26
Message-Id: 20150201230322.2016710DA9@oystercatcher.gentoo.org
1 mgorny 15/02/01 23:03:22
2
3 Modified: ChangeLog
4 Added: blender-2.72b-r3.ebuild
5 Log:
6 Introduce USE=libav to control the preferred implementation. Add subslot op to force rebuilds on ABI change.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.285 media-gfx/blender/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.285&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.285&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.284&r2=1.285
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
20 retrieving revision 1.284
21 retrieving revision 1.285
22 diff -u -r1.284 -r1.285
23 --- ChangeLog 29 Jan 2015 17:14:08 -0000 1.284
24 +++ ChangeLog 1 Feb 2015 23:03:22 -0000 1.285
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-gfx/blender
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.284 2015/01/29 17:14:08 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.285 2015/02/01 23:03:22 mgorny Exp $
30 +
31 +*blender-2.72b-r3 (01 Feb 2015)
32 +
33 + 01 Feb 2015; Michał Górny <mgorny@g.o> +blender-2.72b-r3.ebuild:
34 + Introduce USE=libav to control the preferred implementation. Add subslot op to
35 + force rebuilds on ABI change.
36
37 29 Jan 2015; Michał Górny <mgorny@g.o> blender-2.72b-r2.ebuild:
38 Convert to CPU_FLAGS_X86.
39
40
41
42 1.1 media-gfx/blender/blender-2.72b-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.72b-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.72b-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: blender-2.72b-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.72b-r3.ebuild,v 1.1 2015/02/01 23:03:22 mgorny Exp $
52
53 ## BUNDLED-DEPS:
54 # extern/cuew
55 # extern/Eigen3
56 # extern/xdnd
57 # extern/carve
58 # extern/glew
59 # extern/libmv
60 # extern/clew
61 # extern/colamd
62 # extern/lzma
63 # extern/gtest
64 # extern/rangetree
65 # extern/libredcode
66 # extern/wcwidth
67 # extern/binreloc
68 # extern/recastnavigation
69 # extern/bullet2
70 # extern/lzo
71 # extern/libopenjpeg
72 # extern/libmv/third_party/msinttypes
73 # extern/libmv/third_party/ceres
74 # extern/libmv/third_party/gflags
75 # extern/libmv/third_party/glog
76
77 EAPI=5
78 PYTHON_COMPAT=( python3_4 )
79 #PATCHSET="1"
80
81 inherit multilib fdo-mime gnome2-utils cmake-utils eutils python-single-r1 versionator flag-o-matic toolchain-funcs pax-utils check-reqs
82
83 DESCRIPTION="3D Creation/Animation/Publishing System"
84 HOMEPAGE="http://www.blender.org"
85
86 case ${PV} in
87 *_p*)
88 SRC_URI="http://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;;
89 *)
90 SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;;
91 esac
92
93 if [[ -n ${PATCHSET} ]]; then
94 SRC_URI+=" http://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz"
95 fi
96
97 SLOT="0"
98 LICENSE="|| ( GPL-2 BL )"
99 KEYWORDS="~amd64 ~x86"
100 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"
101 REQUIRED_USE="${PYTHON_REQUIRED_USE}
102 player? ( game-engine )
103 redcode? ( jpeg2k ffmpeg )
104 cycles? ( boost openexr tiff )
105 nls? ( boost )
106 game-engine? ( boost )"
107
108 RDEPEND="
109 ${PYTHON_DEPS}
110 dev-python/numpy[${PYTHON_USEDEP}]
111 dev-python/requests[${PYTHON_USEDEP}]
112 >=media-libs/freetype-2.0:2
113 media-libs/glew
114 media-libs/libpng:0
115 media-libs/libsamplerate
116 sci-libs/ldl
117 sys-libs/zlib
118 virtual/glu
119 virtual/jpeg
120 virtual/libintl
121 virtual/opengl
122 x11-libs/libX11
123 x11-libs/libXi
124 x11-libs/libXxf86vm
125 boost? ( >=dev-libs/boost-1.44[nls?,threads(+)] )
126 collada? ( media-libs/opencollada )
127 colorio? ( <=media-libs/opencolorio-1.0.9 )
128 cycles? (
129 media-libs/openimageio
130 )
131 ffmpeg? (
132 !libav? ( >=media-video/ffmpeg-2.1.4:0=[x264,mp3,encode,theora,jpeg2k?] )
133 libav? ( >=media-video/libav-9:0=[x264,mp3,encode,theora,jpeg2k?] )
134 )
135 fftw? ( sci-libs/fftw:3.0 )
136 jack? ( media-sound/jack-audio-connection-kit )
137 jpeg2k? ( media-libs/openjpeg:0 )
138 ndof? (
139 app-misc/spacenavd
140 dev-libs/libspnav
141 )
142 nls? ( virtual/libiconv )
143 openal? ( >=media-libs/openal-1.6.372 )
144 openimageio? ( media-libs/openimageio )
145 openexr? ( media-libs/ilmbase media-libs/openexr )
146 sdl? ( media-libs/libsdl[sound,joystick] )
147 sndfile? ( media-libs/libsndfile )
148 tiff? ( media-libs/tiff:0 )"
149 DEPEND="${RDEPEND}
150 doc? (
151 app-doc/doxygen[-nodot(-),dot(+)]
152 dev-python/sphinx
153 )
154 nls? ( sys-devel/gettext )"
155
156 pkg_pretend() {
157 if use openmp && ! tc-has-openmp; then
158 eerror "You are using gcc built without 'openmp' USE."
159 eerror "Switch CXX to an OpenMP capable compiler."
160 die "Need openmp"
161 fi
162
163 if use doc; then
164 CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
165 fi
166 }
167
168 pkg_setup() {
169 python-single-r1_pkg_setup
170 }
171
172 src_prepare() {
173 epatch "${FILESDIR}"/${PN}-2.68-doxyfile.patch \
174 "${FILESDIR}"/${PN}-2.68-fix-install-rules.patch \
175 "${FILESDIR}"/${PN}-2.70-sse2.patch \
176 "${FILESDIR}"/${PN}-2.72-T42797.diff
177
178 epatch_user
179
180 # we don't want static glew, but it's scattered across
181 # thousand files
182 # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
183 sed -i \
184 -e '/-DGLEW_STATIC/d' \
185 $(find . -type f -name "CMakeLists.txt") || die
186
187 # linguas cleanup
188 local i
189 if ! use nls; then
190 rm -r "${S}"/release/datafiles/locale || die
191 else
192 if [[ -n "${LINGUAS+x}" ]] ; then
193 cd "${S}"/release/datafiles/locale/po
194 for i in *.po ; do
195 mylang=${i%.po}
196 has ${mylang} ${LINGUAS} || { rm -r ${i} || die ; }
197 done
198 fi
199 fi
200 }
201
202 src_configure() {
203 # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
204 # shadows, see bug #276338 for reference
205 append-flags -funsigned-char
206 append-lfs-flags
207
208 # WITH_PYTHON_SECURITY
209 # WITH_PYTHON_SAFETY
210 local mycmakeargs=(
211 -DCMAKE_INSTALL_PREFIX=/usr
212 -DWITH_INSTALL_PORTABLE=OFF
213 $(cmake-utils_use_with boost BOOST)
214 $(cmake-utils_use_with cycles CYCLES)
215 $(cmake-utils_use_with collada OPENCOLLADA)
216 $(cmake-utils_use_with dds IMAGE_DDS)
217 $(cmake-utils_use_with elbeem MOD_FLUID)
218 $(cmake-utils_use_with ffmpeg CODEC_FFMPEG)
219 $(cmake-utils_use_with fftw FFTW3)
220 $(cmake-utils_use_with fftw MOD_OCEANSIM)
221 $(cmake-utils_use_with game-engine GAMEENGINE)
222 $(cmake-utils_use_with nls INTERNATIONAL)
223 $(cmake-utils_use_with jack JACK)
224 $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG)
225 $(cmake-utils_use_with openimageio OPENIMAGEIO)
226 $(cmake-utils_use_with openal OPENAL)
227 $(cmake-utils_use_with openexr IMAGE_OPENEXR)
228 $(cmake-utils_use_with openmp OPENMP)
229 $(cmake-utils_use_with opennl OPENNL)
230 $(cmake-utils_use_with player PLAYER)
231 $(cmake-utils_use_with redcode IMAGE_REDCODE)
232 $(cmake-utils_use_with sdl SDL)
233 $(cmake-utils_use_with sndfile CODEC_SNDFILE)
234 $(cmake-utils_use_with cpu_flags_x86_sse RAYOPTIMIZATION)
235 $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
236 $(cmake-utils_use_with bullet BULLET)
237 $(cmake-utils_use_with tiff IMAGE_TIFF)
238 $(cmake-utils_use_with colorio OPENCOLORIO)
239 $(cmake-utils_use_with ndof INPUT_NDOF)
240 -DWITH_PYTHON_INSTALL=OFF
241 -DWITH_PYTHON_INSTALL_NUMPY=OFF
242 -DWITH_STATIC_LIBS=OFF
243 -DWITH_SYSTEM_GLEW=ON
244 -DWITH_SYSTEM_OPENJPEG=ON
245 -DWITH_SYSTEM_BULLET=OFF
246 -DPYTHON_VERSION="${EPYTHON/python/}"
247 -DPYTHON_LIBRARY="$(python_get_library_path)"
248 -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
249 )
250 cmake-utils_src_configure
251 }
252
253 src_compile() {
254 cmake-utils_src_compile
255
256 if use doc; then
257 einfo "Generating Blender C/C++ API docs ..."
258 cd "${CMAKE_USE_DIR}"/doc/doxygen || die
259 doxygen -u Doxyfile
260 doxygen || die "doxygen failed to build API docs."
261
262 cd "${CMAKE_USE_DIR}" || die
263 einfo "Generating (BPY) Blender Python API docs ..."
264 "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "blender failed."
265
266 cd "${CMAKE_USE_DIR}"/doc/python_api || die
267 sphinx-build sphinx-in BPY_API || die "sphinx failed."
268 fi
269 }
270
271 src_test() { :; }
272
273 src_install() {
274 local i
275
276 # Pax mark blender for hardened support.
277 pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
278
279 if use doc; then
280 docinto "API/python"
281 dohtml -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/*
282
283 docinto "API/blender"
284 dohtml -r "${CMAKE_USE_DIR}"/doc/doxygen/html/*
285 fi
286
287 # fucked up cmake will relink binary for no reason
288 emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" install/fast
289
290 # fix doc installdir
291 dohtml "${CMAKE_USE_DIR}"/release/text/readme.html
292 rm -rf "${ED%/}"/usr/share/doc/blender
293
294 python_fix_shebang "${ED%/}"/usr/bin/blender-thumbnailer.py
295 python_optimize "${ED%/}"/usr/share/blender/${PV}/scripts
296 }
297
298 pkg_preinst() {
299 gnome2_icon_savelist
300 }
301
302 pkg_postinst() {
303 elog
304 elog "Blender uses python integration. As such, may have some"
305 elog "inherit risks with running unknown python scripting."
306 elog
307 elog "It is recommended to change your blender temp directory"
308 elog "from /tmp to /home/user/tmp or another tmp file under your"
309 elog "home directory. This can be done by starting blender, then"
310 elog "dragging the main menu down do display all paths."
311 elog
312 ewarn
313 ewarn "This ebuild does not unbundle the massive amount of 3rd party"
314 ewarn "libraries which are shipped with blender. Note that"
315 ewarn "these have caused security issues in the past."
316 ewarn "If you are concerned about security, file a bug upstream:"
317 ewarn " https://developer.blender.org/"
318 ewarn
319 gnome2_icon_cache_update
320 fdo-mime_desktop_database_update
321 }
322
323 pkg_postrm() {
324 gnome2_icon_cache_update
325 fdo-mime_desktop_database_update
326 }