summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/blender')
-rw-r--r--media-gfx/blender/ChangeLog7
-rw-r--r--media-gfx/blender/Manifest32
-rw-r--r--media-gfx/blender/blender-2.70a.ebuild276
3 files changed, 299 insertions, 16 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog
index 27eaf74980f7..e3d48492ad88 100644
--- a/media-gfx/blender/ChangeLog
+++ b/media-gfx/blender/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/blender
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.260 2014/03/20 16:56:34 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.261 2014/04/14 17:26:27 hasufell Exp $
+
+*blender-2.70a (14 Apr 2014)
+
+ 14 Apr 2014; Julian Ospald <hasufell@gentoo.org> +blender-2.70a.ebuild:
+ version bump wrt #507618
*blender-2.70 (20 Mar 2014)
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest
index 86864c371708..919f663a438b 100644
--- a/media-gfx/blender/Manifest
+++ b/media-gfx/blender/Manifest
@@ -29,6 +29,7 @@ DIST blender-2.68.tar.gz 40073577 SHA256 3c102ebc42f989c8509c704c87dec465ba0ded8
DIST blender-2.68a.tar.gz 40042207 SHA256 13ed290b0db381523dd26689d29fd00b08bae01a9123533d75f0243733dd7b3a SHA512 ce93779c5cbadf361f08ad0f9d5370d52878f94edc0b113d73711b842169d0e000e1500ece8e534439d94c5983e6ff3f15ca4ccd74db5f21447274c475090019 WHIRLPOOL 0d391db77b2ad3035f98f63ae4f299a14fd0d584c7ec0e35936b267c0ea300fe76ced0f79864a85bdd5c3f67a7299b8da2f03381513f4a6c550ef06355ea80da
DIST blender-2.69.tar.gz 41274518 SHA256 c94a7f5dec0d42683b96b2591c240ebcc2743d10b84fc53ca13374b5e654ce09 SHA512 f4de1f5a0a7868ee509b57ef65962a6c2af4c2bc7328db6ebe7b8e05f771c06efea92977f7a64433e8383382a33dbd73cb42b2bf872e63410e55c19ddd133142 WHIRLPOOL 30b5e8dd4e2a8ed3a0e9484656d9ac5b6c420076438aa0cdabf3d5d6b5d608bb90d5253c365b712899a9b7ea8965b815059e3e8c5a712c07c399f7848c14e8cb
DIST blender-2.70.tar.gz 55298021 SHA256 2695c3cab21721d1108c90e6e9cb4b279817f551904d5276793fb3adaef3e348 SHA512 5c5d3aa418b88eb55d25a28967edc9ff51b4f9337e15d662db8f4e23eea0772f31a256a7effdd1ffecf0636a300b821a7c53dd1c8b46311b572b412b758224af WHIRLPOOL 9174b325f0d027a56342699cde14fb3ef0883c3089573c9560af1d5adaa9e0815f1e449fd22da4fdc36efa5526094ed37b028e447fc987fba88f08944d75ceb5
+DIST blender-2.70a.tar.gz 55875629 SHA256 eb2d82e4bace4028e05eef2ac9799104231eafd91f1500b91c32471bac8cf3e5 SHA512 777938abf30a336bab83a7418461d8d435cc3dc1421aeddc36657d5b8bae1742a38ee468020cee04f4089b646bff1c3715ad9ceb987d649eb3d015047f1869d7 WHIRLPOOL b7a3bf59a078e425e09b32289372ddf23ac6172f64e07bc45b875857b733e4414021cb99cf65596bdf271ce501a7ba946c8e4c0434947af6b0f552364ec5a040
EBUILD blender-2.64a.ebuild 7793 SHA256 c7d8f834d31e287958f44a6ae3ea94362b1f651f325df1256c4b1d97c2f48ed6 SHA512 ce6165280c3ac9b59e0e31c74791123fead93c9b91b169051328f4cdc9ad1e76ac6fea27ad8e8e3b7178639f3ef4cf8b8db79759e14afca302b39541ce18d472 WHIRLPOOL 55d443d2e0df5f7ec591cfae317d5b97f266b89a3146f67f4c73e8f7c9a1592908c833acaf9d285e6dacb59155a9637a7670c45b5167511d4c7530bae30ee010
EBUILD blender-2.66-r1.ebuild 7139 SHA256 011438751f8ea6f55307d337e4cedb0dd7e65a14751c9db21089a33c9b045dd1 SHA512 c61b745e5e90beb19fe9ee6dc0130cc8a599e444746cd1c8a1c131768ef5948b378cef7ff9ad19ffdab99a3383237c75bbeaa4b6934db01addaf13719c972e1c WHIRLPOOL bbcb267b210f0c2392c61fc93131ff9d938e3a0f8e1010d86cd8b50bf6cb5f8bd86773139df8fbad71279b03ede83d0bf890030663fc7f4b15c5307a3943fc82
EBUILD blender-2.67b-r1.ebuild 7427 SHA256 f0d03ad665b193486237fa70486daaa431e16f2c8935259ea2994ca151ae0b96 SHA512 91365c7dbeec837d901010aed569772f3916cba6de18f5630bfaa35d202e11b488bc11939397d12ed6a0314f41ed2cea463f41645ebacaa4f868500846552c01 WHIRLPOOL 98b932679c1a34a47f7ce5ab631aaa2187a8356d0c1eb5a578df89d16f5019dfb7e8a219a9fca6f3e1ed5b0ab30eabf4bce1bd3b42ce9414fd68e21784be119f
@@ -36,24 +37,25 @@ EBUILD blender-2.68.ebuild 7489 SHA256 4535f1ae0ecdcc199d51fd4eba72e6655ef70cb09
EBUILD blender-2.68a.ebuild 7532 SHA256 6358360c3b66795509d3dfb77d74e26eac000f619aa40652835e9e87dcd24ad5 SHA512 8a51cf77266377eae23eb8be418f68f7e1297a4318e77df2fa7a971431d5e087c79ef7b557154d432f999654b2603f076054ebcfa1fd6fe43a88531bf9075c7b WHIRLPOOL 48c97e6c9ca17939200c1183866533a867e57f8d9487b29f7bc335eb10b0bff5c4880007b9860fc8564cf5138efac47bbf940bc6af96de3b966e0b7b31f5bd8f
EBUILD blender-2.69.ebuild 7578 SHA256 464f47a278cc1a07ad078c7ff177a03a9dbfb6959e10603fb2dc8135a24c2a54 SHA512 f9d997af90eb430d6ab9558c63c797fc9750934908a6d0d51540c00584191dc8f5de4271ff51914b598cc7d40a80cd2ca33e3ac875ef6ec6996d9bd74773a175 WHIRLPOOL d36c49133d6a7867938f1b1d1a7aaa8b5e8598ec4ce910841485908d2dc1fe91fd71c53c4c187a761dcb0667e660e0cb9a897a0ff1ce9407a89d2c60db27d82b
EBUILD blender-2.70.ebuild 7772 SHA256 17a4c2f16b1a96e3fe38fcd397beda94bf67922018769a370c8253eec32df6c2 SHA512 ccb51d409481078924c431359bf58fa06deaed336b7b5538c2910d20a82ac62d08151fbab3a14f49555834e395d1fbd4cf7e929978153a975fcb64cf98eeded6 WHIRLPOOL 6e5fce7efeafd28e05b427045077875335f69ef3b4e003e9b1f956979ad22dfaf3b14d46205270898e883f4c3fa9df6df856085e2a116478b2591130aca85ce7
-MISC ChangeLog 45714 SHA256 ee7d9f15982cd0c244dac47025f454a5fb9b32c835a622fca2f684eeacc0fac6 SHA512 bd259148da4537e5d0704060d1fbc9213484e0c701e63a9b63e90a8ea96bb897a6ec83074429f7cfabd49cc421f844b85552598856144f4c5d0b632838542705 WHIRLPOOL dead5a1a8e4062e50245567324faf995ffbc503e3300715a554aee8e2e97b9066a80ad57b019cc8d24f632991a56a69fbc1c9263b22a6e10b24b3f0bdcaf8518
+EBUILD blender-2.70a.ebuild 7800 SHA256 a0a346eed0b5e86e27b8795a6cbf1e84fedfd3213b6f340729be0b46c4785a5f SHA512 573f618e58ef22ffea313c4225fceb5ec627bd191b4f4a57842e0dd2f2d8bedf50a5faa794def040a2fff89b620713da23b2244fb3f9e0a0383f9e8ce89f8ead WHIRLPOOL a751f0b59c9f5c480df3879bb7be738aafc9b65a9d98cb00d54e3d55828e9695804fdd0b0eed2da05241a75d5f10dccdeb784dbd3f18f4ef703637be33c7337d
+MISC ChangeLog 45846 SHA256 92bfb849166dfdfa01ae478386e495fab878fad1bff84a20a3573dcfd05c0a8d SHA512 d8c8e982de6415b43fe1a4e2b5addb50dcd3b659b418dcbe6c5af8e2a946713130bcc920236a9d4dcbcd7e97ccbc15f1a604434b35b485ccc9d0a9d2752f6b78 WHIRLPOOL c090fe22f24b812e7db2c47ca0fcd49fd6c5cb453aa7310b63e1acb45ff1a79a6e2e0c5d98463004e393d7e4bae889406d72ddc3f2a761809974fb2920f1b254
MISC metadata.xml 2420 SHA256 da8715c8e1b7319223b0e3b48a88ec7ce307efda73f98824fa2defb8b951c52b SHA512 720927dbf1abc75da95b9dacf20ca0553bd167341ef6fbc182c7fcb145d05702e2875ea7d43531140f82d0618e24ae68bae42d9a400ef73945a4d203c1ccbebc WHIRLPOOL 364cdd61304fa0645a6a0a0e293a89050e575a8d8d8f2e9d9862cb38073ab40d4c31f81fa8b27b4a84e20a0137dc8eedc2ac9e1a4e54b1a6f6432166d319601e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQJ8BAEBCABmBQJTKx3IXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQJ8BAEBCABmBQJTTBpFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMDlCNDQ4NjEyNDI4NjA5REVEMDI3MzIy
-MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAgjpIQAPHOyrPJWXj/17VpSmdBsDpj
-WWD7uAv6mYrxDj/Y6P2RvX/BHsJGBxC6Xvp8MhSpA5mufMqHTf3RybEecspfcmGM
-8asvIIY1s4xI22C4LMmbd3Gl8pLQehYamTjOF2r3oRBmr8TkW0Ttrbe9J6yND0fn
-CKrRSss5hN4WrO4Y/EjmQkwXqEfXymXm8+lAkKd0wR3L8Ic7EMZxp5WjREZAvioK
-DUzqB4HGRhsIaI3drmp7uFRYz52SKnm/8L1X1GN+e1Zq/cHky4+2Ep7oJwb+01bV
-r9o0o8nuZmM5+npieQrCaw+/kbdHYYwUdcZiZQTInW/k0V9D+FIT9IN1draoJzuG
-ZRaNWFJ8TYBt1lhJ1NLQtb+rJkCw4zqUhS6fsh4CF+i7PHlGcki83+8p/q5UDKjS
-imv4ah9iYnXCPK1r4V8N37cehqb+c2KkCGOWstuZ1SdRYJ86eD/kvdfP1Rq5K3ub
-9NnCuDFCVeOa0/QtWGKT2tHKFqM3ZsHjPg+vKgEvkOzXpEhACw697SIYqPBZ+Utj
-Jgh9/jqEsHMFWGRKGUUE7vaWZCUQJqKGYbZoYdhhAbUKx9DUyiSykZAN3E7Hdwgy
-4W/Qzltb4CfUWBfhSQjdN2Up0yopOSG7C4zaTbJftbiZvcV8Cv2vwH3yl0CPjgJF
-xjBwvTl8EroZslR2ir23
-=8n9+
+MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAg8a0P/0lsvAIs1kO+6Mge22maEijA
+Y/l4B6tn++xjZXscC82jABoqy8FBq4lCE65Las0vL6iGBHRzQXmhV6atpciDgGAR
+e/U1JBczHLTQeb5kzdQbxQui4hEiux96O3mmCg6x97gyT60dvRvaPKg7bYdT+f/n
+S550oCsfCJR8Z4Acec9HHAP/OenNItOEEtyk466VGG+g41WN/1n4PdkzCwn1KUsN
++f/QW6UNn5+ReRIf3xz5az9/xaSnfN+MLa2KQDf3X33hX+s3EiTljkk2MLAuRzaV
+BaHS/3Yak7XgTZX+AY5iwGP+cO80c9RUDZJmuT+uO405fOt6ARWlZCxL057hS4U1
+Jpxdr5VcZ/F1mw/qRDqyfyaWSV4u8bRRul9PlreCWutuVah0qZqfktsTBBqV0HVV
+CFNOhco4Ke3tot/38QtKvDOgp7VJlSg5EvOunXG3X6ocxH9cxDw3G6WvFP0jER9a
+XI6E5CGDQJQZWZSJa8mhCYQPFJWV+jlAvequvLoxHRqjlGAYB14raBBjY6BLCLNW
+8f3o5FWmMlYEtFSC0v1RvI3EwA1koUmaq0bOlPinCHop095sURPxRcENIMKxH3iT
+TaNIKIamamT9Apzdpaxa70GkYs7VK6EkKw8l56Esan2/JTurHKNPBN+fZmokUHhp
+3a4SvfksiLSJsRj7D6WR
+=e/bw
-----END PGP SIGNATURE-----
diff --git a/media-gfx/blender/blender-2.70a.ebuild b/media-gfx/blender/blender-2.70a.ebuild
new file mode 100644
index 000000000000..269904186270
--- /dev/null
+++ b/media-gfx/blender/blender-2.70a.ebuild
@@ -0,0 +1,276 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.70a.ebuild,v 1.1 2014/04/14 17:26:27 hasufell Exp $
+
+# TODO:
+# bundled-deps: bullet is modified
+# multiple python abi?
+
+EAPI=5
+PYTHON_COMPAT=( python3_3 )
+#PATCHSET="1"
+
+inherit multilib fdo-mime gnome2-utils cmake-utils eutils python-single-r1 versionator flag-o-matic toolchain-funcs pax-utils check-reqs
+
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org"
+
+case ${PV} in
+ *_p*)
+ SRC_URI="http://dev.gentoo.org/~lu_zero/${P}.tar.gz" ;;
+ *)
+ SRC_URI="http://download.blender.org/source/${P}.tar.gz" ;;
+esac
+
+if [[ -n ${PATCHSET} ]]; then
+ SRC_URI+=" http://dev.gentoo.org/~flameeyes/${PN}/${P}-patches-${PATCHSET}.tar.xz"
+fi
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="~amd64 ~x86"
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ player? ( game-engine )
+ redcode? ( jpeg2k ffmpeg )
+ cycles? ( boost openexr tiff )
+ nls? ( boost )
+ game-engine? ( boost )"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-cpp/gflags
+ dev-cpp/glog[gflags]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ >=media-libs/freetype-2.0
+ media-libs/glew
+ media-libs/libpng:0
+ media-libs/libsamplerate
+ sci-libs/colamd
+ sci-libs/ldl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg
+ virtual/libintl
+ virtual/opengl
+ x11-libs/libXi
+ x11-libs/libX11
+ boost? ( >=dev-libs/boost-1.44[nls?,threads(+)] )
+ collada? ( media-libs/opencollada )
+ colorio? ( media-libs/opencolorio )
+ cycles? (
+ media-libs/openimageio
+ )
+ ffmpeg? (
+ || (
+ >=media-video/ffmpeg-2.1.4:0[x264,mp3,encode,theora,jpeg2k?]
+ >=media-video/libav-9[x264,mp3,encode,theora,jpeg2k?]
+ )
+ )
+ fftw? ( sci-libs/fftw:3.0 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg2k? ( media-libs/openjpeg:0 )
+ ndof? (
+ app-misc/spacenavd
+ dev-libs/libspnav
+ )
+ nls? ( virtual/libiconv )
+ openal? ( >=media-libs/openal-1.6.372 )
+ openimageio? ( media-libs/openimageio )
+ openexr? ( media-libs/openexr )
+ sdl? ( media-libs/libsdl[audio,joystick] )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )"
+DEPEND="${RDEPEND}
+ >=dev-cpp/eigen-3.1.3:3
+ doc? (
+ app-doc/doxygen[-nodot(-),dot(+)]
+ dev-python/sphinx
+ )
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-v${PV}
+
+pkg_pretend() {
+ if use openmp && ! tc-has-openmp; then
+ eerror "You are using gcc built without 'openmp' USE."
+ eerror "Switch CXX to an OpenMP capable compiler."
+ die "Need openmp"
+ fi
+
+ if use doc; then
+ CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/01-${PN}-2.68-doxyfile.patch \
+ "${FILESDIR}"/02-${PN}-2.68-unbundle-colamd.patch \
+ "${FILESDIR}"/03-${PN}-2.68-remove-binreloc.patch \
+ "${FILESDIR}"/04-${PN}-2.70-unbundle-glog.patch \
+ "${FILESDIR}"/05-${PN}-2.68-unbundle-eigen3.patch \
+ "${FILESDIR}"/06-${PN}-2.68-fix-install-rules.patch \
+ "${FILESDIR}"/07-${PN}-2.70-sse2.patch
+
+ # remove some bundled deps
+ rm -r \
+ extern/Eigen3 \
+ extern/libopenjpeg \
+ extern/glew \
+ extern/colamd \
+ extern/binreloc \
+ extern/libmv/third_party/{glog,gflags} \
+ || die
+
+ # turn off binreloc (not cached)
+ sed -i \
+ -e 's#set(WITH_BINRELOC ON)#set(WITH_BINRELOC OFF)#' \
+ CMakeLists.txt || die
+
+ # we don't want static glew, but it's scattered across
+ # thousand files
+ # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
+ sed -i \
+ -e '/-DGLEW_STATIC/d' \
+ $(find . -type f -name "CMakeLists.txt") || die
+
+ ewarn "$(echo "Remaining bundled dependencies:";
+ ( find extern -mindepth 1 -maxdepth 1 -type d; find extern/libmv/third_party -mindepth 1 -maxdepth 1 -type d; ) | sed 's|^|- |')"
+
+ # linguas cleanup
+ local i
+ if ! use nls; then
+ rm -r "${S}"/release/datafiles/locale || die
+ else
+ if [[ -n "${LINGUAS+x}" ]] ; then
+ for i in "${S}"/release/datafiles/locale/* ; do
+ mylang=${i##*/}
+ has ${mylang} ${LINGUAS} || { rm -r ${i} || die ; }
+ done
+ fi
+ fi
+}
+
+src_configure() {
+ # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
+ # shadows, see bug #276338 for reference
+ append-flags -funsigned-char
+ append-lfs-flags
+
+ # WITH_PYTHON_SECURITY
+ # WITH_PYTHON_SAFETY
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DWITH_INSTALL_PORTABLE=OFF
+ $(cmake-utils_use_with boost BOOST)
+ $(cmake-utils_use_with cycles CYCLES)
+ $(cmake-utils_use_with collada OPENCOLLADA)
+ $(cmake-utils_use_with dds IMAGE_DDS)
+ $(cmake-utils_use_with elbeem MOD_FLUID)
+ $(cmake-utils_use_with ffmpeg CODEC_FFMPEG)
+ $(cmake-utils_use_with fftw FFTW3)
+ $(cmake-utils_use_with fftw MOD_OCEANSIM)
+ $(cmake-utils_use_with game-engine GAMEENGINE)
+ $(cmake-utils_use_with nls INTERNATIONAL)
+ $(cmake-utils_use_with jack JACK)
+ $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG)
+ $(cmake-utils_use_with openimageio OPENIMAGEIO)
+ $(cmake-utils_use_with openal OPENAL)
+ $(cmake-utils_use_with openexr IMAGE_OPENEXR)
+ $(cmake-utils_use_with openmp OPENMP)
+ $(cmake-utils_use_with opennl OPENNL)
+ $(cmake-utils_use_with player PLAYER)
+ $(cmake-utils_use_with redcode IMAGE_REDCODE)
+ $(cmake-utils_use_with sdl SDL)
+ $(cmake-utils_use_with sndfile CODEC_SNDFILE)
+ $(cmake-utils_use_with sse RAYOPTIMIZATION)
+ $(cmake-utils_use_with sse2 SSE2)
+ $(cmake-utils_use_with bullet BULLET)
+ $(cmake-utils_use_with tiff IMAGE_TIFF)
+ $(cmake-utils_use_with colorio OPENCOLORIO)
+ $(cmake-utils_use_with ndof INPUT_NDOF)
+ -DWITH_PYTHON_INSTALL=OFF
+ -DWITH_PYTHON_INSTALL_NUMPY=OFF
+ -DWITH_STATIC_LIBS=OFF
+ -DWITH_SYSTEM_GLEW=ON
+ -DWITH_SYSTEM_OPENJPEG=ON
+ -DWITH_SYSTEM_BULLET=OFF
+ -DPYTHON_VERSION="${EPYTHON/python/}"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc; then
+ einfo "Generating Blender C/C++ API docs ..."
+ cd "${CMAKE_USE_DIR}"/doc/doxygen || die
+ doxygen -u Doxyfile
+ doxygen || die "doxygen failed to build API docs."
+
+ cd "${CMAKE_USE_DIR}" || die
+ einfo "Generating (BPY) Blender Python API docs ..."
+ "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "blender failed."
+
+ cd "${CMAKE_USE_DIR}"/doc/python_api || die
+ sphinx-build sphinx-in BPY_API || die "sphinx failed."
+ fi
+}
+
+src_test() { :; }
+
+src_install() {
+ local i
+
+ # Pax mark blender for hardened support.
+ pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
+
+ if use doc; then
+ docinto "API/python"
+ dohtml -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/*
+
+ docinto "API/blender"
+ dohtml -r "${CMAKE_USE_DIR}"/doc/doxygen/html/*
+ fi
+
+ # fucked up cmake will relink binary for no reason
+ emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" install/fast
+
+ # fix doc installdir
+ dohtml "${CMAKE_USE_DIR}"/release/text/readme.html
+ rm -rf "${ED%/}"/usr/share/doc/blender
+
+ python_fix_shebang "${ED%/}"/usr/bin/blender-thumbnailer.py
+ python_optimize "${ED%/}"/usr/share/blender/${PV}/scripts
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "Blender uses python integration. As such, may have some"
+ elog "inherit risks with running unknown python scripting."
+ elog
+ elog "It is recommended to change your blender temp directory"
+ elog "from /tmp to /home/user/tmp or another tmp file under your"
+ elog "home directory. This can be done by starting blender, then"
+ elog "dragging the main menu down do display all paths."
+ elog
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}