Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: blender-2.72.ebuild ChangeLog
Date: Sat, 27 Sep 2014 12:10:20
Message-Id: 20140927121016.211F1669A@oystercatcher.gentoo.org
1 hasufell 14/09/27 12:10:16
2
3 Modified: ChangeLog
4 Added: blender-2.72.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.271 media-gfx/blender/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.271&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.271&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.270&r2=1.271
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
20 retrieving revision 1.270
21 retrieving revision 1.271
22 diff -u -r1.270 -r1.271
23 --- ChangeLog 16 Jul 2014 15:31:42 -0000 1.270
24 +++ ChangeLog 27 Sep 2014 12:10:16 -0000 1.271
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-gfx/blender
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.270 2014/07/16 15:31:42 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.271 2014/09/27 12:10:16 hasufell Exp $
30 +
31 +*blender-2.72 (27 Sep 2014)
32 +
33 + 27 Sep 2014; Julian Ospald <hasufell@g.o> +blender-2.72.ebuild,
34 + +files/05-blender-2.72-unbundle-eigen3.patch:
35 + version bump
36
37 *blender-2.71-r1 (16 Jul 2014)
38
39
40
41
42 1.1 media-gfx/blender/blender-2.72.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.72.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.72.ebuild?rev=1.1&content-type=text/plain
46
47 Index: blender-2.72.ebuild
48 ===================================================================
49 # Copyright 1999-2014 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.72.ebuild,v 1.1 2014/09/27 12:10:16 hasufell Exp $
52
53 # TODO:
54 # bundled-deps: bullet is modified
55 # multiple python abi?
56
57 EAPI=5
58 PYTHON_COMPAT=( python3_4 )
59 #PATCHSET="1"
60
61 inherit multilib fdo-mime gnome2-utils cmake-utils eutils python-single-r1 versionator flag-o-matic toolchain-funcs pax-utils check-reqs
62
63 DESCRIPTION="3D Creation/Animation/Publishing System"
64 HOMEPAGE="http://www.blender.org"
65
66 case ${PV} in
67 *_p*)
68 SRC_URI="http://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;;
69 *)
70 SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;;
71 esac
72
73 if [[ -n ${PATCHSET} ]]; then
74 SRC_URI+=" http://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz"
75 fi
76
77 SLOT="0"
78 LICENSE="|| ( GPL-2 BL )"
79 KEYWORDS="~amd64 ~x86"
80 IUSE="+boost +bullet collada colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jpeg2k ndof nls openal openimageio +opennl openmp +openexr player redcode sdl sndfile sse sse2 tiff"
81 REQUIRED_USE="${PYTHON_REQUIRED_USE}
82 player? ( game-engine )
83 redcode? ( jpeg2k ffmpeg )
84 cycles? ( boost openexr tiff )
85 nls? ( boost )
86 game-engine? ( boost )"
87
88 RDEPEND="
89 ${PYTHON_DEPS}
90 >=dev-cpp/gflags-2.1.1-r1
91 >=dev-cpp/glog-0.3.3-r1[gflags]
92 dev-python/numpy[${PYTHON_USEDEP}]
93 dev-python/requests[${PYTHON_USEDEP}]
94 >=media-libs/freetype-2.0
95 media-libs/glew
96 media-libs/libpng:0
97 media-libs/libsamplerate
98 sci-libs/colamd
99 sci-libs/ldl
100 sys-libs/zlib
101 virtual/glu
102 virtual/jpeg
103 virtual/libintl
104 virtual/opengl
105 x11-libs/libXi
106 x11-libs/libX11
107 boost? ( >=dev-libs/boost-1.44[nls?,threads(+)] )
108 collada? ( media-libs/opencollada )
109 colorio? ( <=media-libs/opencolorio-1.0.9 )
110 cycles? (
111 media-libs/openimageio
112 )
113 ffmpeg? (
114 || (
115 >=media-video/ffmpeg-2.1.4:0[x264,mp3,encode,theora,jpeg2k?]
116 >=media-video/libav-9[x264,mp3,encode,theora,jpeg2k?]
117 )
118 )
119 fftw? ( sci-libs/fftw:3.0 )
120 jack? ( media-sound/jack-audio-connection-kit )
121 jpeg2k? ( media-libs/openjpeg:0 )
122 ndof? (
123 app-misc/spacenavd
124 dev-libs/libspnav
125 )
126 nls? ( virtual/libiconv )
127 openal? ( >=media-libs/openal-1.6.372 )
128 openimageio? ( media-libs/openimageio )
129 openexr? ( media-libs/openexr )
130 sdl? ( media-libs/libsdl[sound,joystick] )
131 sndfile? ( media-libs/libsndfile )
132 tiff? ( media-libs/tiff:0 )"
133 DEPEND="${RDEPEND}
134 >=dev-cpp/eigen-3.1.3:3
135 doc? (
136 app-doc/doxygen[-nodot(-),dot(+)]
137 dev-python/sphinx
138 )
139 nls? ( sys-devel/gettext )"
140
141 pkg_pretend() {
142 if use openmp && ! tc-has-openmp; then
143 eerror "You are using gcc built without 'openmp' USE."
144 eerror "Switch CXX to an OpenMP capable compiler."
145 die "Need openmp"
146 fi
147
148 if use doc; then
149 CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
150 fi
151 }
152
153 pkg_setup() {
154 python-single-r1_pkg_setup
155 }
156
157 src_prepare() {
158 epatch "${FILESDIR}"/01-${PN}-2.68-doxyfile.patch \
159 "${FILESDIR}"/02-${PN}-2.71-unbundle-colamd.patch \
160 "${FILESDIR}"/04-${PN}-2.71-unbundle-glog.patch \
161 "${FILESDIR}"/05-${PN}-2.72-unbundle-eigen3.patch \
162 "${FILESDIR}"/06-${PN}-2.68-fix-install-rules.patch \
163 "${FILESDIR}"/07-${PN}-2.70-sse2.patch \
164 "${FILESDIR}"/08-${PN}-2.71-gflags.patch
165
166 epatch_user
167
168 # remove some bundled deps
169 rm -r \
170 extern/Eigen3 \
171 extern/libopenjpeg \
172 extern/glew \
173 extern/colamd \
174 extern/libmv/third_party/{glog,gflags} \
175 || die
176
177 # we don't want static glew, but it's scattered across
178 # thousand files
179 # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
180 sed -i \
181 -e '/-DGLEW_STATIC/d' \
182 $(find . -type f -name "CMakeLists.txt") || die
183
184 ewarn "$(echo "Remaining bundled dependencies:";
185 ( find extern -mindepth 1 -maxdepth 1 -type d; find extern/libmv/third_party -mindepth 1 -maxdepth 1 -type d; ) | sed 's|^|- |')"
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 sse RAYOPTIMIZATION)
235 $(cmake-utils_use_with 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 gnome2_icon_cache_update
313 fdo-mime_desktop_database_update
314 }
315
316 pkg_postrm() {
317 gnome2_icon_cache_update
318 fdo-mime_desktop_database_update
319 }