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