diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2016-08-05 11:58:37 +0200 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2016-08-05 12:04:37 +0200 |
commit | 7b159765a2499690fcb9512f5fab0605cd23a768 (patch) | |
tree | d06b4644215020d7bcb7e8236762fa954213f687 /sys-libs/libomp/libomp-3.8.1.ebuild | |
parent | dev-perl/XML-RSS: Remove POD/Author tests. (diff) | |
download | gentoo-7b159765a2499690fcb9512f5fab0605cd23a768.tar.gz gentoo-7b159765a2499690fcb9512f5fab0605cd23a768.tar.bz2 gentoo-7b159765a2499690fcb9512f5fab0605cd23a768.zip |
sys-libs/libomp: version bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-libs/libomp/libomp-3.8.1.ebuild')
-rw-r--r-- | sys-libs/libomp/libomp-3.8.1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-libs/libomp/libomp-3.8.1.ebuild b/sys-libs/libomp/libomp-3.8.1.ebuild new file mode 100644 index 000000000000..a35930ccf9ba --- /dev/null +++ b/sys-libs/libomp/libomp-3.8.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +: ${CMAKE_MAKEFILE_GENERATOR:=ninja} + +inherit cmake-utils multilib-minimal + +MY_P=openmp-${PV} +DESCRIPTION="OpenMP runtime library for LLVM/clang compiler" +HOMEPAGE="http://openmp.llvm.org" +SRC_URI="http://llvm.org/releases/${PV}/${MY_P}.src.tar.xz" + +LICENSE="UoI-NCSA" +SLOT="0/3.8" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}.src" + +PATCHES=( + "${FILESDIR}"/${PN}-3.7.0-os_detection.patch + "${FILESDIR}"/${PN}-3.7.0-no_compat_symlinks.patch + ) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if ! test-flag-CXX -std=c++11; then + eerror "${P} requires C++11-capable C++ compiler. Your current compiler" + eerror "does not seem to support -std=c++11 option. Please upgrade your compiler" + eerror "to gcc-4.7 or an equivalent version supporting C++11." + die "Currently active compiler does not support -std=c++11" + fi + fi +} + +multilib_src_configure() { + local libdir="$(get_libdir)" + local mycmakeargs=( "-DLIBOMP_LIBDIR_SUFFIX=${libdir#lib}" ) + cmake-utils_src_configure +} + +multilib_src_compile() { + cmake-utils_src_compile +} + +multilib_src_install() { + cmake-utils_src_install +} |