Files
guru/sys-cluster/paraver-kernel/paraver-kernel-4.9.0.ebuild
Alessandro Barbieri f7eec2b633 sys-cluster/paraver-kernel: remove comment
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-08-18 22:55:47 +02:00

75 lines
1.5 KiB
Bash

# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="paraver kernel library"
HOMEPAGE="
http://tools.bsc.es/paraver
https://github.com/bsc-performance-tools/paraver-kernel
"
SRC_URI="https://github.com/bsc-performance-tools/paraver-kernel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="extended-objects extrae ompss openmp otf2"
RDEPEND="
dev-libs/boost:=
dev-libs/libxml2
sys-libs/zlib
sys-cluster/libbsctools:=
extrae? ( sys-cluster/extrae )
otf2? ( sys-cluster/otf2 )
"
DEPEND="${RDEPEND}"
DOCS=( README NEWS AUTHORS ChangeLog )
REQUIRED_USE="extrae? ( openmp )"
PATCHES=(
"${FILESDIR}/${PN}-unbundle-libbsctools.patch"
"${FILESDIR}/${P}-fix-gcc-11-compilation-error.patch"
)
src_prepare() {
rm -r utils/pcfparser || die
default
eautoreconf
}
src_configure() {
local myconf=(
--disable-static
--enable-shared
--with-boost="${EPREFIX}/usr"
--with-boost-libdir="${EPREFIX}/usr/$(get_libdir)"
$(use_enable extended-objects)
$(use_enable ompss)
$(use_enable openmp)
)
if use extrae; then
myconf+=( "--with-extrae=${EPREFIX}/usr" )
else
myconf+=( "--without-extrae" )
fi
if use otf2; then
myconf+=( "--with-otf2=${EPREFIX}/usr" )
else
myconf+=( "--without-otf2" )
fi
econf "${myconf[@]}" || die
}
src_install() {
default
einstalldocs
mv "${ED}/usr/$(get_libdir)/paraver-kernel"/* "${ED}/usr/$(get_libdir)" || die
find "${ED}" -name '*.la' -delete || die
}