commit:     775b95ff4880315ae8215aa271eecf1363509d57
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 30 08:24:29 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 08:25:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775b95ff

sys-libs/libomp: Backport hwloc & ompt support to 3.9.0

 sys-libs/libomp/libomp-3.9.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-libs/libomp/libomp-3.9.0.ebuild 
b/sys-libs/libomp/libomp-3.9.0.ebuild
index 856ea69..ed972e8 100644
--- a/sys-libs/libomp/libomp-3.9.0.ebuild
+++ b/sys-libs/libomp/libomp-3.9.0.ebuild
@@ -16,9 +16,11 @@ SRC_URI="http://llvm.org/releases/${PV}/${MY_P}.src.tar.xz";
 LICENSE="UoI-NCSA"
 SLOT="0/3.9"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="hwloc ompt"
 
-DEPEND="dev-lang/perl"
+RDEPEND="hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+       dev-lang/perl"
 
 S="${WORKDIR}/${MY_P}.src"
 
@@ -31,6 +33,8 @@ multilib_src_configure() {
        local libdir="$(get_libdir)"
        local mycmakeargs=(
                -DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
+               -DLIBOMP_USE_HWLOC=$(usex hwloc)
+               -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
                # do not install libgomp.so & libiomp5.so aliases
                -DLIBOMP_INSTALL_ALIASES=OFF
                # disable unnecessary hack copying stuff back to srcdir

Reply via email to