mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
sys-cluster/paraver-kernel: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
75
sys-cluster/paraver-kernel/paraver-kernel-4.9.0.ebuild
Normal file
75
sys-cluster/paraver-kernel/paraver-kernel-4.9.0.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# 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"
|
||||
#S="${WORKDIR}/clustering-suite-${PV}"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user