commit: 4b5645043bb287b5de846561ed26bba2a6993cca
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Mar 26 07:14:57 2022 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Mar 26 07:14:57 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b564504
sys-cluster/wxparaver: add 4.10.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-cluster/wxparaver/Manifest | 1 +
sys-cluster/wxparaver/metadata.xml | 9 +++
sys-cluster/wxparaver/wxparaver-4.10.0.ebuild | 102 ++++++++++++++++++++++++++
3 files changed, 112 insertions(+)
diff --git a/sys-cluster/wxparaver/Manifest b/sys-cluster/wxparaver/Manifest
index 525f910b2..000019fd0 100644
--- a/sys-cluster/wxparaver/Manifest
+++ b/sys-cluster/wxparaver/Manifest
@@ -1 +1,2 @@
+DIST wxparaver-4.10.0.tar.gz 1066884 BLAKE2B
030fb769c94e7c15c337df2d06d135a1d2e9d37593907eab6f8df82d3532b67827d2f6728a2db539c2eec8cd57ebe444271527250ebfb80db6d79a4ba33ba716
SHA512
d8ff40c7423321da34e078b25c7777c30a5ae76618f16ff715caa308a5e44cdd702c99a902bc761999323575a47d497b94ab23d8943461a093f49dc2451365ab
DIST wxparaver-4.9.0.tar.gz 1045366 BLAKE2B
297e49160ce23591257002763025359a4269a3691b094b90d8a8f8fa648998cbbca068853a1e22ed878f68e786b5e8145c14c0bb2c95e4e05fecc01fa79e48a2
SHA512
b0b2cf4383549fc48f34cd3c754c6614798512ab712fa7c728ce20c4536768227625ea5b6b641746fc1780dd354a6da7cfecc48e8f19ecc9cdb9eddcb93c501d
diff --git a/sys-cluster/wxparaver/metadata.xml
b/sys-cluster/wxparaver/metadata.xml
index 2b71a9da3..59dc7043b 100644
--- a/sys-cluster/wxparaver/metadata.xml
+++ b/sys-cluster/wxparaver/metadata.xml
@@ -14,4 +14,13 @@
<bugs-to>https://github.com/bsc-performance-tools/wxparaver/issues</bugs-to>
<remote-id
type="github">bsc-performance-tools/wxparaver</remote-id>
</upstream>
+ <longdescription lang="en">
+Paraver is a performance analyzer based on event traces with a great
+flexibility to explore the collected data, supporting a detailed analysis of
+the variability and distribution of multiple metrics with the objective of
+understanding the application’s behavior. Paraver has two main views: The
+timeline view displays the application behavior over time, while the statistics
+view (histograms, profiles) complements the analysis with distribution
+of metrics.
+ </longdescription>
</pkgmetadata>
diff --git a/sys-cluster/wxparaver/wxparaver-4.10.0.ebuild
b/sys-cluster/wxparaver/wxparaver-4.10.0.ebuild
new file mode 100644
index 000000000..84094fe3d
--- /dev/null
+++ b/sys-cluster/wxparaver/wxparaver-4.10.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT="f357545a2fdfc7674394f2e6192022a4c2139f63"
+DOCS_AUTODOC=0
+DOCS_BUILDER="sphinx"
+DOCS_DIR="docs/wxparaver_help_contents/sphinx/2.paraver_toolset/source"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+WX_GTK_VER="3.0-gtk3"
+
+inherit autotools python-any-r1 docs wxwidgets
+
+DESCRIPTION="Performance analyzer based on event traces"
+HOMEPAGE="
+ http://tools.bsc.es/paraver
+ https://github.com/bsc-performance-tools/wxparaver
+"
+SRC_URI="https://github.com/bsc-performance-tools/wxparaver/archive/${COMMIT}.tar.gz
-> ${PF}.tar.gz"
+S="${WORKDIR}/${P}-${COMMIT}"
+
+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:${WX_GTK_VER}
+
+ 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() {
+ setup-wxwidgets
+
+ 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() {
+ # 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/. )
+
+ default
+
+ rm -r "${ED}/usr/share/doc/wxparaver_help_contents" || die
+ chrpath -d "${ED}/usr/bin/wxparaver.bin" || die
+# find "${ED}" -name '*.la' -delete || die
+}