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