diff options
author | Slawomir Lis <slis@gentoo.org> | 2016-01-21 08:01:49 +0100 |
---|---|---|
committer | Slawomir Lis <slis@gentoo.org> | 2016-01-21 08:02:29 +0100 |
commit | 53efe0f5116074b19f63a1a4fabe405a95e56b7d (patch) | |
tree | 8265a1451c310f26c48302370351a2a60dc1249c /media-libs/assimp | |
parent | dev-ruby/activeldap: add 4.0.5 (diff) | |
download | gentoo-53efe0f5116074b19f63a1a4fabe405a95e56b7d.tar.gz gentoo-53efe0f5116074b19f63a1a4fabe405a95e56b7d.tar.bz2 gentoo-53efe0f5116074b19f63a1a4fabe405a95e56b7d.zip |
Fixed tests (#571896)
Package-Manager: portage-2.2.26
Diffstat (limited to 'media-libs/assimp')
-rw-r--r-- | media-libs/assimp/assimp-3.2-r2.ebuild (renamed from media-libs/assimp/assimp-3.2-r1.ebuild) | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/media-libs/assimp/assimp-3.2-r1.ebuild b/media-libs/assimp/assimp-3.2-r2.ebuild index 74d7856ba9c3..22f103805023 100644 --- a/media-libs/assimp/assimp-3.2-r1.ebuild +++ b/media-libs/assimp/assimp-3.2-r2.ebuild @@ -12,25 +12,36 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" KEYWORDS="~amd64 ~arm ~x86" -IUSE="+boost samples static tools" +IUSE="+boost samples static test tools" SLOT="0" -DEPEND=" +RDEPEND=" boost? ( dev-libs/boost ) samples? ( x11-libs/libX11 virtual/opengl media-libs/freeglut ) sys-libs/zlib " -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_prepare() { + epatch "${FILESDIR}/test-cmakelists.patch" +} src_configure() { mycmakeargs=( $(cmake-utils_use_build samples ASSIMP_SAMPLES) \ $(cmake-utils_use_build tools ASSIMP_TOOLS) \ $(cmake-utils_use_build static STATIC_LIB) \ - $(cmake-utils_use_enable !boost BOOST_WORKAROUND) + $(cmake-utils_use_enable !boost BOOST_WORKAROUND) \ + $(cmake-utils_use_build test TESTS) -DCMAKE_DEBUG_POSTFIX="" -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" ) cmake-utils_src_configure } + +src_test() { + "${BUILD_DIR}/test/unit" || die +} |