diff options
Diffstat (limited to 'dev-cpp/icnc/icnc-1.0.100.ebuild')
-rw-r--r-- | dev-cpp/icnc/icnc-1.0.100.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/dev-cpp/icnc/icnc-1.0.100.ebuild b/dev-cpp/icnc/icnc-1.0.100.ebuild new file mode 100644 index 000000000000..7f6b4284797b --- /dev/null +++ b/dev-cpp/icnc/icnc-1.0.100.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/icnc/icnc-1.0.100.ebuild,v 1.1 2014/12/08 19:03:02 ottxor Exp $ + +EAPI=5 + +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" + +if [[ $PV = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/icnc/icnc.git" + KEYWORDS= +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="doc examples mpi test" +RESTRICT="test" #currently tests only work if icnc is already installed + +RDEPEND=" + >=dev-cpp/tbb-4.2 + sys-libs/glibc + mpi? ( virtual/mpi ) + " +DEPEND=" + ${RDEPEND} + test? ( ${PYTHON_DEPS} ) + " + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use mpi BUILD_LIBS_FOR_MPI) + -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() { + cmake-utils_src_install + if use doc ; then + insinto /usr/share/doc/${P}/html + doins -r "${ED}"/usr/doc/api/* + fi + rm -r "${ED}"/usr/doc/api || die + rmdir "${ED}"/usr/doc || die + if use examples ; then + insinto /usr/share/${PN}/examples + doins -r "${ED}"/usr/samples/* + fi + rm -r "${ED}"/usr/samples || die + insinto /usr/share/${PN}/ + doins -r "${ED}"/usr/misc/* + rm -r "${ED}"/usr/misc/ || die +} |