diff -Naur a/blender-2.77a.ebuild b/blender-2.77a.ebuild --- a/blender-2.77a.ebuild 2016-05-30 06:45:32.915401656 +0930 +++ b/blender-2.77a.ebuild 2016-05-30 06:43:14.184396715 +0930 @@ -14,7 +14,6 @@ # extern/lzma # extern/gtest # extern/rangetree -# extern/libredcode # extern/wcwidth # extern/binreloc # extern/recastnavigation @@ -44,12 +43,11 @@ SLOT="0" LICENSE="|| ( GPL-2 BL )" KEYWORDS="~amd64 ~x86" -IUSE="+boost +bullet colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack \ - jpeg2k libav ndof nls openal openimageio +opennl openmp +openexr player redcode sdl \ - sndfile cpu_flags_x86_sse cpu_flags_x86_sse2 tiff c++0x" +IUSE="+boost +bullet colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jemalloc \ + jpeg2k libav man ndof nls openal openimageio openmp +openexr player sdl \ + sndfile cpu_flags_x86_sse cpu_flags_x86_sse2 +test tiff c++0x valgrind" REQUIRED_USE="${PYTHON_REQUIRED_USE} player? ( game-engine ) - redcode? ( jpeg2k ffmpeg ) cycles? ( boost openexr tiff openimageio ) nls? ( boost ) game-engine? ( boost ) @@ -78,6 +76,7 @@ libav? ( >=media-video/libav-11.3:0=[x264,mp3,encode,theora,jpeg2k?] ) fftw? ( sci-libs/fftw:3.0 ) jack? ( media-sound/jack-audio-connection-kit ) + jemalloc? ( dev-libs/jemalloc ) jpeg2k? ( media-libs/openjpeg:0 ) ndof? ( app-misc/spacenavd @@ -90,6 +89,7 @@ sdl? ( media-libs/libsdl2[sound,joystick] ) sndfile? ( media-libs/libsndfile ) tiff? ( media-libs/tiff:0 ) + valgrind? ( dev-util/valgrind ) " DEPEND="${RDEPEND} >=dev-cpp/eigen-3.2.8:3 @@ -148,7 +148,6 @@ -DWITH_SYSTEM_OPENJPEG=ON -DWITH_SYSTEM_LZO=ON -DWITH_SYSTEM_EIGEN3=ON - -DWITH_SYSTEM_LZO=ON $(cmake-utils_use_with boost BOOST) $(cmake-utils_use_with bullet BULLET) $(cmake-utils_use_with ffmpeg CODEC_FFMPEG) @@ -160,7 +159,6 @@ $(cmake-utils_use_with dds IMAGE_DDS) $(cmake-utils_use_with openexr IMAGE_OPENEXR) $(cmake-utils_use_with jpeg2k IMAGE_OPENJPEG) - $(cmake-utils_use_with redcode IMAGE_REDCODE) $(cmake-utils_use_with tiff IMAGE_TIFF) $(cmake-utils_use_with ndof INPUT_NDOF) $(cmake-utils_use_with nls INTERNATIONAL) @@ -171,11 +169,16 @@ $(cmake-utils_use_with colorio OPENCOLORIO) $(cmake-utils_use_with openimageio OPENIMAGEIO) $(cmake-utils_use_with openmp OPENMP) - $(cmake-utils_use_with opennl OPENNL) $(cmake-utils_use_with player PLAYER) $(cmake-utils_use_with sdl SDL) $(cmake-utils_use_with cpu_flags_x86_sse RAYOPTIMIZATION) $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2) + $(cmake-utils_use_with debug CXX_GUARDEDALLOC) + $(cmake-utils_use_with debug ASSERT_ABORT) + $(cmake-utils_use_with test GTESTS) + $(cmake-utils_use_with man DOC_MANPAGE) + $(camke-utils_use_with jemalloc MEM_JEMALLOC) + $(cmake-utils_use_with valgrind MEM_VALGRIND) ) cmake-utils_src_configure } @@ -198,7 +201,16 @@ fi } -src_test() { :; } +src_test() { + if use test; then + einfo "Running Blender Unit Tests ..." + cd "${BUILD_DIR}"/bin/tests || die + for f in *_test + do + ./$f || die + done + fi +} src_install() { local i