sys-cluster/wxparaver: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-08-31 08:06:46 +02:00
parent 161345bcfa
commit d04464d87a
3 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST wxparaver-4.9.0.tar.gz 1045366 BLAKE2B 297e49160ce23591257002763025359a4269a3691b094b90d8a8f8fa648998cbbca068853a1e22ed878f68e786b5e8145c14c0bb2c95e4e05fecc01fa79e48a2 SHA512 b0b2cf4383549fc48f34cd3c754c6614798512ab712fa7c728ce20c4536768227625ea5b6b641746fc1780dd354a6da7cfecc48e8f19ecc9cdb9eddcb93c501d

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<use>
<flag name="extrae">Enable extrae support</flag>
<flag name="ompss">Enable OmpSs parallel version</flag>
<flag name="openmp">Enable OpenMP parallel version</flag>
</use>
<upstream>
<bugs-to>https://github.com/bsc-performance-tools/wxparaver/issues</bugs-to>
<remote-id type="github">bsc-performance-tools/wxparaver</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,96 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOCS_AUTODOC=0
DOCS_BUILDER="sphinx"
DOCS_DIR="docs/wxparaver_help_contents/sphinx/2.paraver_toolset/source"
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit autotools python-any-r1 docs
DESCRIPTION="paraver gui"
HOMEPAGE="
http://tools.bsc.es/paraver
https://github.com/bsc-performance-tools/wxparaver
"
SRC_URI="https://github.com/bsc-performance-tools/wxparaver/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="extrae ompss openmp"
RDEPEND="
dev-libs/boost:=
dev-libs/openssl
sys-cluster/paraver-kernel
x11-libs/wxGTK
extrae? ( sys-cluster/extrae )
"
DEPEND="${RDEPEND}"
BDEPEND="app-admin/chrpath"
DOCS=( README NEWS AUTHORS ChangeLog )
src_unpack() {
default
gzip -d "${S}/docs/wxparaver_help_contents/install/man/paraver-toolset.1.gz" || die
}
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
--disable-old-pcfparser
--with-boost="${EPREFIX}/usr"
--with-boost-libdir="${EPREFIX}/usr/$(get_libdir)"
--with-debug-level=none
--with-openssl="${EPREFIX}/usr"
--with-paraver="${EPREFIX}/usr"
$(use_enable ompss)
$(use_enable openmp)
)
if use extrae; then
myconf+=( "--with-extrae=${EPREFIX}/usr" )
else
myconf+=( "--without-extrae" )
fi
econf "${myconf[@]}" || die
}
src_compile() {
default
docs_compile
}
src_install() {
default
# only a part of the docs can be built from source
if use doc; then
# remove a part of the prebuilt docs
rm -r "${S}/docs/wxparaver_help_contents/install/html/2.paraver_toolset" || die
# replace them with the newly built docs
mv "${S}/_build/html" "${S}/docs/wxparaver_help_contents/install/html/2.paraver_toolset" || die
# ideally this is the manpage just built from sphinx but I'm not sure it really is
doman "${S}/docs/wxparaver_help_contents/sphinx/2.paraver_toolset/build/man/paraver-toolset.1"
else
# install the prebuilt manpage
doman "${S}/docs/wxparaver_help_contents/install/man/paraver-toolset.1"
fi
# override eclass variable
unset HTML_DOCS
HTML_DOCS=( docs/wxparaver_help_contents/install/html/. )
einstalldocs
rm -r "${ED}/usr/share/doc/wxparaver_help_contents" || die
chrpath -d "${ED}/usr/bin/wxparaver.bin" || die
find "${ED}" -name '*.la' -delete || die
}