mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
sys-cluster/otf2: respect flags
Bug: https://bugs.gentoo.org/836797 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
70
sys-cluster/otf2/otf2-2.3-r2.ebuild
Normal file
70
sys-cluster/otf2/otf2-2.3-r2.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||
|
||||
inherit python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="highly scalable, memory efficient event trace data format"
|
||||
HOMEPAGE="https://www.vi-hps.org/projects/score-p"
|
||||
SRC_URI="http://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug sionlib test"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep 'dev-python/six[${PYTHON_USEDEP}]')
|
||||
|
||||
sionlib? ( sys-cluster/sionlibl:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#RESTRICT="!test? ( test )"
|
||||
RESTRICT="test" #tests are failing
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )
|
||||
|
||||
src_configure() {
|
||||
tc-export CC CXX FC F77 CPP
|
||||
|
||||
export MPICC=/usr/bin/mpicc
|
||||
export MPICXX=/usr/bin/mpicxx
|
||||
export MPIF77=/usr/bin/mpif77
|
||||
export MPIFC=/usr/bin/mpifc
|
||||
|
||||
export MPI_CFLAGS="${CFLAGS}"
|
||||
export MPI_CXXFLAGS="${CXXFLAGS}"
|
||||
export MPI_CPPFLAGS="${CPPFLAGS}"
|
||||
export MPI_F77LAGS="${F77FLAGS}"
|
||||
export MPI_FCLAGS="${FCFLAGS}"
|
||||
export MPI_LDFLAGS="${LDFLAGS}"
|
||||
|
||||
local myconf=(
|
||||
--disable-platform-mic
|
||||
--disable-static
|
||||
--enable-shared
|
||||
|
||||
$(use_enable test backend-test-runs)
|
||||
$(use_enable debug)
|
||||
)
|
||||
|
||||
if use sionlib; then
|
||||
myconf+=( "--with-sionlib=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-sionlib-headers=${EPREFIX}/usr/include/sionlibl" )
|
||||
else
|
||||
myconf+=( "--without-sionlib" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user