From 9e2a159222788527db8ae706731918f872842e4b Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 8 Dec 2014 12:03:46 -0700 Subject: sync with gx86 Package-Manager: portage-2.2.14 --- dev-cpp/icnc/ChangeLog | 3 +++ dev-cpp/icnc/icnc-9999.ebuild | 29 +++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/dev-cpp/icnc/ChangeLog b/dev-cpp/icnc/ChangeLog index 93bd9430d..133507f2f 100644 --- a/dev-cpp/icnc/ChangeLog +++ b/dev-cpp/icnc/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 08 Dec 2014; Christoph Junghans icnc-9999.ebuild: + sync with gx86 + 21 Nov 2014; Christoph Junghans icnc-9999.ebuild: fixed install location diff --git a/dev-cpp/icnc/icnc-9999.ebuild b/dev-cpp/icnc/icnc-9999.ebuild index 68a3a2927..8d4f5ddfd 100644 --- a/dev-cpp/icnc/icnc-9999.ebuild +++ b/dev-cpp/icnc/icnc-9999.ebuild @@ -4,7 +4,9 @@ EAPI=5 -inherit cmake-utils multilib +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils multilib python-any-r1 DESCRIPTION="Intel Concurrent Collections for C++ - Parallelism without the Pain" HOMEPAGE="https://software.intel.com/en-us/articles/intel-concurrent-collections-for-cc" @@ -20,14 +22,18 @@ fi LICENSE="BSD" SLOT="0" -IUSE="doc examples mpi" +IUSE="doc examples mpi test" +RESTRICT="test" #currently tests only work if icnc is already installed -DEPEND=" +RDEPEND=" >=dev-cpp/tbb-4.2 sys-libs/glibc mpi? ( virtual/mpi ) " -RDEPEND="${DEPEND}" +DEPEND=" + ${RDEPEND} + test? ( ${PYTHON_DEPS} ) + " src_configure() { local mycmakeargs=( @@ -35,6 +41,21 @@ src_configure() { -DLIB=$(get_libdir) ) cmake-utils_src_configure + if use test ; then + mycmakeargs=( -DRUN_DIST=OFF ) + CMAKE_USE_DIR="${S}/tests" \ + BUILD_DIR="${WORKDIR}/${P}_tests_build" \ + cmake-utils_src_configure + fi +} + +src_compile() { + cmake-utils_src_compile + use test && BUILD_DIR="${WORKDIR}/${P}_tests_build" cmake-utils_src_compile +} + +src_test() { + BUILD_DIR="${WORKDIR}/${P}_tests_build" cmake-utils_src_test } src_install() { -- cgit v1.2.3