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