diff --git a/sys-cluster/spectral/Manifest b/sys-cluster/spectral/Manifest new file mode 100644 index 0000000000..17c53bcd8b --- /dev/null +++ b/sys-cluster/spectral/Manifest @@ -0,0 +1 @@ +DIST spectral-3.4.1-src.tar.bz2 318900 BLAKE2B 3a34f6ac66cd3ed7b7593df5b09151e041281c12c2ac17dba6ee17f82c75e64ca8f23dfc1e5ceba432f65abe4796fdbf40bd4ba4c069de3ca8fa1fd9215b8428 SHA512 5b6350cbc6800857d1eeec7b6061406e3d238c12078f90a1ab611f89865f4bf07ef01dd638d9f258e64dfeded3963bdb48fba142599c29b57ffbcb7a86ac72f4 diff --git a/sys-cluster/spectral/metadata.xml b/sys-cluster/spectral/metadata.xml new file mode 100644 index 0000000000..34b915c53f --- /dev/null +++ b/sys-cluster/spectral/metadata.xml @@ -0,0 +1,16 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + Add sys-cluster/extrae support + Add sys-cluster/libbsctools support + + + https://github.com/bsc-performance-tools/spectral/issues + bsc-performance-tools/spectral + + diff --git a/sys-cluster/spectral/spectral-3.4.1.ebuild b/sys-cluster/spectral/spectral-3.4.1.ebuild new file mode 100644 index 0000000000..0f15f65f40 --- /dev/null +++ b/sys-cluster/spectral/spectral-3.4.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Signal processing techniques to select representative regions from Paraver traces" +HOMEPAGE="https://github.com/bsc-performance-tools/spectral" +SRC_URI="https://ftp.tools.bsc.es/spectral/spectral-${PV}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="extrae libbsctools openmp" + +RDEPEND=" + sci-libs/fftw:3.0 + extrae? ( sys-cluster/extrae ) + libbsctools? ( sys-cluster/libbsctools ) +" +DEPEND="${RDEPEND}" + +#PATCHES=( "${FILESDIR}/respect-flags.patch" ) + +src_configure() { + #https://github.com/bsc-performance-tools/spectral/issues/1 + append-cflags -fcommon + append-cxxflags -fcommon + + local myconf=( + --disable-static + --enable-shared + --with-fft="${EPREFIX}/usr" + --with-pic + + $(use_enable openmp) + ) + + if use extrae; then + myconf+=( "--with-extrae=${EPREFIX}/usr" ) + else + myconf+=( "--without-extrae" ) + fi + if use libbsctools; then + myconf+=( "--with-libbsctools=${EPREFIX}/usr" ) + fi + + econf "${myconf[@]}" || die +} + +src_install() { + default + dodoc ChangeLog README AUTHORS NEWS +}