sys-cluster/parsec: EAPI 8

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-06-02 02:22:38 +02:00
parent 99e0152ae1
commit 5d2dc7843a
2 changed files with 43 additions and 15 deletions

View File

@@ -1 +1 @@
DIST parsec-3.0.2012.tar.bz2 735621 BLAKE2B a17a5d6a6c0c0859a4836bc43603181d5468b8b56ffbd3e8263a9e9fe5224bbbfeda3c11ba2271cf3b7ceb3cf6920ce34d79bda23cdec88e410c5235eb5a28df SHA512 34b322338e41b405e918f6ade308c22f77446668fec1ba0600b03131b9ee4e4108ee921e70c857ea47fae5573d1c921fa12d33ddfccaa7ccdbe480e612e9161d
DIST parsec-3.0.2012.tar.gz 918622 BLAKE2B bcf3b8fcb25282bca2b48b1cfdabf0201384d198235868d42e06cfb1773ed31006b0756a3dc60a3740a9cf3fca95676101ab308015b1b7c160767dc751196385 SHA512 1e76cd2d6dcf791c935d2de22ee66329bdda0fb91ee03d0e9ec7d1d42c5762406efbb562a2b87a421c6c32cf141638338a5a90d584fc7611cbe81a061db4f109

View File

@@ -1,17 +1,21 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
DOCS_BUILDER="doxygen"
DOCS_DIR="docs/doxygen"
PYTHON_COMPAT=( python3_{8..11} pypy3 )
inherit cmake fortran-2 docs
inherit cmake edo fortran-2 docs python-single-r1
DESCRIPTION="Parallel Runtime Scheduler and Execution Controller"
HOMEPAGE="https://bitbucket.org/icldistcomp/parsec"
SRC_URI="https://bitbucket.org/icldistcomp/parsec/get/${P}.tar.bz2"
S="${WORKDIR}/icldistcomp-${PN}-d2ae4175f072"
HOMEPAGE="
https://github.com/icldisco/parsec
https://bitbucket.org/icldistcomp/parsec
"
SRC_URI="https://github.com/ICLDisco/${PN}/archive/refs/tags/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="BSD"
SLOT="0"
@@ -40,15 +44,18 @@ IUSE_PARSEC_PROF="
parsec_prof_grapher
+parsec_prof_mmap
parsec_prof_otf2
parsec_prof_pins
parsec_prof_ptg
parsec_prof_rusage
+parsec_prof_pins
parsec_prof_ptg-internal-init
parsec_prof_rusage-eu
parsec_prof_scheduling-events
+parsec_prof_thread
+parsec_prof_helper-thread
"
IUSE="
${IUSE_PARSEC_DEBUG} ${IUSE_PARSEC_DIST} ${IUSE_PARSEC_PROF}
+cxx debug +devel-headers fortran +home-config-files +mpi profile +sched-deps-mask sim test +tools
"
IUSE="${IUSE_PARSEC_DEBUG} ${IUSE_PARSEC_DIST} ${IUSE_PARSEC_PROF} +cxx debug +devel-headers fortran +home-config-files +mpi profile +sched-deps-mask sim test +tools"
#TODO: gd vite tau
#TODO: opencl vite tau
RDEPEND="
dev-util/valgrind
sys-apps/hwloc
@@ -57,6 +64,15 @@ RDEPEND="
mpi? ( virtual/mpi )
parsec_prof_otf2? ( sys-cluster/otf2 )
parsec_prof_pins? ( dev-libs/papi )
tools? (
profile? (
${PYTHON_DEPS}
sys-libs/zlib
media-gfx/graphviz
media-libs/gd:2[jpeg,png]
$(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]')
)
)
"
DEPEND="${RDEPEND}"
BDEPEND="
@@ -66,6 +82,8 @@ BDEPEND="
RESTRICT="!test? ( test )"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
test? ( parsec_prof_pins )
?? ( mpi sim )
?? ( parsec_debug_noisier parsec_debug_history )
?? ( parsec_prof_dry-body parsec_prof_dry-dep parsec_prof_dry-run )
@@ -76,6 +94,15 @@ REQUIRED_USE="
pkg_setup() {
fortran-2_pkg_setup
python-single-r1_pkg_setup
}
src_prepare() {
edo sed \
-e "s|\${CMAKE_INSTALL_PREFIX}/|${D}/\${CMAKE_INSTALL_PREFIX}/|g" \
-e "s|--prefix|--root ${D} --prefix|g" \
-i tools/profiling/python/CMakeLists.txt
cmake_src_prepare
}
src_configure() {
@@ -94,6 +121,7 @@ src_configure() {
-DPARSEC_GPU_WITH_OPENCL=OFF
-DPARSEC_PROF_TAU=OFF
-DBUILD_TESTING=$(usex test)
-DBUILD_TOOLS=$(usex tools)
-DPARSEC_DEBUG=$(usex debug)
-DPARSEC_DEBUG_HISTORY=$(usex parsec_debug_history)
@@ -110,13 +138,13 @@ src_configure() {
-DPARSEC_PROF_DRY_RUN=$(usex parsec_prof_dry-run)
-DPARSEC_PROF_GRAPHER=$(usex parsec_prof_grapher)
-DPARSEC_PROF_PINS=$(usex parsec_prof_pins)
-DPARSEC_PROF_RUSAGE_EU=$(usex parsec_prof_rusage)
-DPARSEC_PROF_RUSAGE_EU=$(usex parsec_prof_rusage-eu)
-DPARSEC_PROF_TRACE=$(usex profile)
-DPARSEC_PROF_TRACE_ACTIVE_ARENA_SET=$(usex parsec_prof_active-arena-set)
-DPARSEC_PROF_TRACE_PTG_INTERNAL_INIT=$(usex parsec_prof_ptg)
-DPARSEC_PROF_TRACE_PTG_INTERNAL_INIT=$(usex parsec_prof_ptg-internal-init)
-DPARSEC_PROF_TRACE_SCHEDULING_EVENTS=$(usex parsec_prof_scheduling-events)
-DPARSEC_PROF_TRACE_SYSTEM="${trace}"
-DPARSEC_PROFILING_USE_HELPER_THREAD=$(usex parsec_prof_thread)
-DPARSEC_PROFILING_USE_HELPER_THREAD=$(usex parsec_prof_helper-thread)
-DPARSEC_PROFILING_USE_MMAP=$(usex parsec_prof_mmap)
-DPARSEC_WANT_HOME_CONFIG_FILES=$(usex home-config-files)
-DPARSEC_WITH_DEVEL_HEADERS=$(usex devel-headers)