commit: 9c6026f4f3d58527559708478434deeeaa187cf6 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Tue Jun 14 07:56:42 2022 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Tue Jun 14 08:00:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c6026f4
sys-cluster/scalasca: new package, add 2.6 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> sys-cluster/scalasca/Manifest | 1 + sys-cluster/scalasca/metadata.xml | 8 ++++ sys-cluster/scalasca/scalasca-2.6.ebuild | 73 ++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) diff --git a/sys-cluster/scalasca/Manifest b/sys-cluster/scalasca/Manifest new file mode 100644 index 000000000..abff88c01 --- /dev/null +++ b/sys-cluster/scalasca/Manifest @@ -0,0 +1 @@ +DIST scalasca-2.6.tar.gz 10799514 BLAKE2B 0a4b70a01394a41a7be9791baf6f6b4fef796a9f6c9e765ff7de413deb99e80896cd1afa444644383b049274c0a3216578b94f0620f2f9ab1c20e9c8360cbb5d SHA512 a57de4e7b095d7093c9c2ca2404c1af253bfbb459be768335cf1b547c2486c0c952b0062c9347e4a959c88fa8b4bb077569ef4c27eeb483327d622b558675a2b diff --git a/sys-cluster/scalasca/metadata.xml b/sys-cluster/scalasca/metadata.xml new file mode 100644 index 000000000..6c0bdfd68 --- /dev/null +++ b/sys-cluster/scalasca/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alessandro Barbieri</name> + </maintainer> +</pkgmetadata> diff --git a/sys-cluster/scalasca/scalasca-2.6.ebuild b/sys-cluster/scalasca/scalasca-2.6.ebuild new file mode 100644 index 000000000..64dd29d61 --- /dev/null +++ b/sys-cluster/scalasca/scalasca-2.6.ebuild @@ -0,0 +1,73 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Scalable Performance Analysis of Large-Scale Applications" +HOMEPAGE="https://www.scalasca.org/scalasca/software/scalasca-2.x/download.html" +SRC_URI="http://apps.fz-juelich.de/${PN}/releases/${PN}/${PV}/dist/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+openmp" + +RDEPEND=" + dev-libs/cubelib + dev-libs/cubew + gui-libs/cubegui + sys-cluster/otf2 + sys-cluster/scorep + sys-libs/binutils-libs + sys-libs/zlib + virtual/mpi +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex +" + +src_prepare() { + rm -r vendor || die + default +} + +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 + --with-cubew="${EPREFIX}/usr" + --with-libz="${EPREFIX}/usr" + --with-otf2="${EPREFIX}/usr" + $(use_enable openmp) + ) + econf "${myconf[@]}" +} + +src_install() { + default + mkdir -p "${ED}/usr/share/doc/${PF}/html" || die + mv "${ED}/usr/share/doc/${PF}/manual/html" "${ED}/usr/share/doc/${PF}/html/manual" || die + mv "${ED}/usr/share/doc/${PF}/patterns" "${ED}/usr/share/doc/${PF}/html/patterns" || die + docompress -x "/usr/share/doc/${PF}/html" + + find "${ED}" -name '*.la' -delete || die +}
