| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Data-centric parallel programming system"
HOMEPAGE="https://legion.stanford.edu/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/StanfordLegion/legion.git"
else
SRC_URI="https://github.com/StanfordLegion/legion/archive/${P}.tar.gz"
S="${WORKDIR}"/${PN}-${P}
KEYWORDS="~amd64"
fi
LICENSE="BSD"
SLOT="0"
IUSE="examples gasnet test"
RESTRICT="!test? ( test )"
# See bug #821424 for examples/mpi
DEPEND="examples? ( virtual/mpi[cxx] )
gasnet? ( >=sys-cluster/gasnet-1.26.4-r1 )"
RDEPEND="${DEPEND}"
src_configure() {
local mycmakeargs=(
-DLegion_USE_HWLOC=OFF # security cleanup of <hwloc-2
-DLegion_USE_GASNet=$(usex gasnet)
-DLegion_ENABLE_TESTING=$(usex test)
-DLegion_BUILD_EXAMPLES=$(usex examples)
-DLegion_BUILD_TESTS=ON
-DLegion_BUILD_TUTORIAL=ON
)
cmake_src_configure
}
examples? ( virtual/mpi[cxx] ) gasnet? ( >=sys-cluster/gasnet-1.26.4-r1 )
examples? ( virtual/mpi[cxx] ) gasnet? ( >=sys-cluster/gasnet-1.26.4-r1 )