# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit cmake-utils eutils toolchain-funcs git-r3 CMAKE_MIN_VERSION="2.8" SLOT="0" MY_PN="Lunchbox" DESCRIPTION="A C++ library for multi-threaded programming" HOMEPAGE="https://github.com/Eyescale/${MY_PN}" EGIT_REPO_URI="https://github.com/Eyescale/${MY_PN}" EGIT_BRANCH="1.10" LICENSE="LGPL-2+ BSD" KEYWORDS="~amd64 ~x86" # TODO: USE flags: skv IUSE="doc hwloc jpeg leveldb mpi openmp test zeroconf" RDEPEND=" >=dev-libs/boost-1.41.0 hwloc? ( >=sys-apps/hwloc-1.3 ) leveldb? ( dev-libs/leveldb ) jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) mpi? ( virtual/mpi ) zeroconf? ( net-dns/avahi ) " DEPEND=" >=dev-util/cppcheck-1.61 ${RDEPEND} " PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) src_configure() { if use openmp; then tc-has-openmp || die "Please switch to an openmp compatible compiler" fi local mycmakeargs=" $(cmake-utils_use_build doc DOC) $(cmake-utils_use_build test TESTS) " cmake-utils_src_configure } src_install() { # Installs a CMake module that is not packaged # The module is licensed under a three-clause BSD insinto "/usr/share/cmake/Modules" newins "${FILESDIR}/${PN}-FindLunchbox.cmake" "FindLunchbox.cmake" cmake-utils_src_install }