1 |
commit: d04464d87af3a4672b4fb9184a1dfb2d704f29c4 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 31 06:06:46 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Aug 31 06:08:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d04464d8 |
7 |
|
8 |
sys-cluster/wxparaver: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/wxparaver/Manifest | 1 + |
13 |
sys-cluster/wxparaver/metadata.xml | 17 +++++ |
14 |
sys-cluster/wxparaver/wxparaver-4.9.0.ebuild | 96 ++++++++++++++++++++++++++++ |
15 |
3 files changed, 114 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/wxparaver/Manifest b/sys-cluster/wxparaver/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..525f910b2 |
20 |
--- /dev/null |
21 |
+++ b/sys-cluster/wxparaver/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST wxparaver-4.9.0.tar.gz 1045366 BLAKE2B 297e49160ce23591257002763025359a4269a3691b094b90d8a8f8fa648998cbbca068853a1e22ed878f68e786b5e8145c14c0bb2c95e4e05fecc01fa79e48a2 SHA512 b0b2cf4383549fc48f34cd3c754c6614798512ab712fa7c728ce20c4536768227625ea5b6b641746fc1780dd354a6da7cfecc48e8f19ecc9cdb9eddcb93c501d |
24 |
|
25 |
diff --git a/sys-cluster/wxparaver/metadata.xml b/sys-cluster/wxparaver/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..2b71a9da3 |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/wxparaver/metadata.xml |
30 |
@@ -0,0 +1,17 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>lssndrbarbieri@×××××.com</email> |
36 |
+ <name>Alessandro Barbieri</name> |
37 |
+ </maintainer> |
38 |
+ <use> |
39 |
+ <flag name="extrae">Enable extrae support</flag> |
40 |
+ <flag name="ompss">Enable OmpSs parallel version</flag> |
41 |
+ <flag name="openmp">Enable OpenMP parallel version</flag> |
42 |
+ </use> |
43 |
+ <upstream> |
44 |
+ <bugs-to>https://github.com/bsc-performance-tools/wxparaver/issues</bugs-to> |
45 |
+ <remote-id type="github">bsc-performance-tools/wxparaver</remote-id> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/sys-cluster/wxparaver/wxparaver-4.9.0.ebuild b/sys-cluster/wxparaver/wxparaver-4.9.0.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000..ba10c93a5 |
52 |
--- /dev/null |
53 |
+++ b/sys-cluster/wxparaver/wxparaver-4.9.0.ebuild |
54 |
@@ -0,0 +1,96 @@ |
55 |
+# Copyright 2019-2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+DOCS_AUTODOC=0 |
61 |
+DOCS_BUILDER="sphinx" |
62 |
+DOCS_DIR="docs/wxparaver_help_contents/sphinx/2.paraver_toolset/source" |
63 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
64 |
+ |
65 |
+inherit autotools python-any-r1 docs |
66 |
+ |
67 |
+DESCRIPTION="paraver gui" |
68 |
+HOMEPAGE=" |
69 |
+ http://tools.bsc.es/paraver |
70 |
+ https://github.com/bsc-performance-tools/wxparaver |
71 |
+" |
72 |
+SRC_URI="https://github.com/bsc-performance-tools/wxparaver/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
73 |
+ |
74 |
+LICENSE="LGPL-2.1" |
75 |
+SLOT="0" |
76 |
+KEYWORDS="~amd64" |
77 |
+IUSE="extrae ompss openmp" |
78 |
+ |
79 |
+RDEPEND=" |
80 |
+ dev-libs/boost:= |
81 |
+ dev-libs/openssl |
82 |
+ sys-cluster/paraver-kernel |
83 |
+ x11-libs/wxGTK |
84 |
+ |
85 |
+ extrae? ( sys-cluster/extrae ) |
86 |
+" |
87 |
+DEPEND="${RDEPEND}" |
88 |
+BDEPEND="app-admin/chrpath" |
89 |
+ |
90 |
+DOCS=( README NEWS AUTHORS ChangeLog ) |
91 |
+ |
92 |
+src_unpack() { |
93 |
+ default |
94 |
+ gzip -d "${S}/docs/wxparaver_help_contents/install/man/paraver-toolset.1.gz" || die |
95 |
+} |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ default |
99 |
+ eautoreconf |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local myconf=( |
104 |
+ --disable-old-pcfparser |
105 |
+ --with-boost="${EPREFIX}/usr" |
106 |
+ --with-boost-libdir="${EPREFIX}/usr/$(get_libdir)" |
107 |
+ --with-debug-level=none |
108 |
+ --with-openssl="${EPREFIX}/usr" |
109 |
+ --with-paraver="${EPREFIX}/usr" |
110 |
+ |
111 |
+ $(use_enable ompss) |
112 |
+ $(use_enable openmp) |
113 |
+ ) |
114 |
+ |
115 |
+ if use extrae; then |
116 |
+ myconf+=( "--with-extrae=${EPREFIX}/usr" ) |
117 |
+ else |
118 |
+ myconf+=( "--without-extrae" ) |
119 |
+ fi |
120 |
+ |
121 |
+ econf "${myconf[@]}" || die |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ default |
126 |
+ docs_compile |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ default |
131 |
+ # only a part of the docs can be built from source |
132 |
+ if use doc; then |
133 |
+ # remove a part of the prebuilt docs |
134 |
+ rm -r "${S}/docs/wxparaver_help_contents/install/html/2.paraver_toolset" || die |
135 |
+ # replace them with the newly built docs |
136 |
+ mv "${S}/_build/html" "${S}/docs/wxparaver_help_contents/install/html/2.paraver_toolset" || die |
137 |
+ # ideally this is the manpage just built from sphinx but I'm not sure it really is |
138 |
+ doman "${S}/docs/wxparaver_help_contents/sphinx/2.paraver_toolset/build/man/paraver-toolset.1" |
139 |
+ else |
140 |
+ # install the prebuilt manpage |
141 |
+ doman "${S}/docs/wxparaver_help_contents/install/man/paraver-toolset.1" |
142 |
+ fi |
143 |
+ # override eclass variable |
144 |
+ unset HTML_DOCS |
145 |
+ HTML_DOCS=( docs/wxparaver_help_contents/install/html/. ) |
146 |
+ einstalldocs |
147 |
+ rm -r "${ED}/usr/share/doc/wxparaver_help_contents" || die |
148 |
+ chrpath -d "${ED}/usr/bin/wxparaver.bin" || die |
149 |
+ find "${ED}" -name '*.la' -delete || die |
150 |
+} |