blob: 089a954457f3739b2628e2a3d95489a1476cb063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( pypy3 python3_{10..11} )
inherit autotools python-any-r1
DESCRIPTION="Expose the main performance trends in applications computation structure"
HOMEPAGE="
https://tools.bsc.es/cluster-analysis
https://github.com/bsc-performance-tools/clustering-suite
"
SRC_URI="https://codeload.github.com/bsc-performance-tools/clustering-suite/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
S="${WORKDIR}/clustering-suite-${PV}"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc mpi muster treedbscan"
PATCHES=(
"${FILESDIR}/${P}-unbundle-libANN.patch"
"${FILESDIR}/${P}-do-not-add-boost-thread-ldpath.patch"
"${FILESDIR}/${P}-Build-fix-for-GCC-11-invocable-as-const.patch"
)
# attempt at unbundling libbsctools failed
# current libbsctools seems to be too old (missing headers)
# "${FILESDIR}/${PN}-unbundle-libbsctools.patch"
RDEPEND="
app-arch/bzip2
dev-libs/boost:=
sci-libs/ann
!sys-cluster/libbsctools
mpi? ( virtual/mpi )
muster? ( sys-cluster/muster )
treedbscan? (
dev-libs/boost:=[threads(+)]
dev-libs/gmp
dev-libs/mpfr
sci-mathematics/cgal
sys-cluster/synapse
)
"
DEPEND="
${RDEPEND}
${PYTHON_DEPS}
"
BDEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
use muster && PATCHES+=( "${FILESDIR}/${P}-force-muster-discovery.patch" )
rm -r src/libANN || die
# rm -r pcfparser_svn3942 || die
# rm -r src/libParaverTraceParser || die
default
sed -e "s|iterate/lib|iterate/$(get_libdir)|g" -i config/gmp_mpfr.m4 || die
sed -e "s|dir/lib|dir/$(get_libdir)|g" -i config/ax_muster.m4 || die
#from bootstrap
echo "#*********************************************************************" >> configure.ac || die
echo "#'configure.ac.' automatically generated by 'autogen.sh' do not modify" >> configure.ac || die
echo "#*********************************************************************" >> configure.ac || die
echo "" >> configure.ac || die
sed s/@@VERSION_NUMBER@@/${PV}/ < configure.ac.template >> configure.ac || die
AT_M4DIR="config" eautoreconf
}
src_configure() {
local myconf=(
--disable-old-pcfparser
--disable-static
--disable-static-boost
--enable-shared
--with-boost="${EPREFIX}/usr"
--with-pic
)
if use mpi; then
myconf+=( "--with-mpi=${EPREFIX}/usr" )
else
myconf+=( "--without-mpi" )
fi
if use muster; then
myconf+=( "--with-muster=${EPREFIX}/usr" )
else
myconf+=( "--without-muster" )
fi
if use treedbscan; then
myconf+=( "--enable-treedbscan" )
myconf+=( "--with-cgal=${EPREFIX}/usr" )
myconf+=( "--with-gmp=${EPREFIX}/usr" )
myconf+=( "--with-mpfr=${EPREFIX}/usr" )
myconf+=( "--with-synapse=${EPREFIX}/usr" )
else
myconf+=( "--without-cgal" )
myconf+=( "--without-gmp" )
myconf+=( "--without-mpfr" )
myconf+=( "--without-synapse" )
fi
econf "${myconf[@]}" || die
}
src_compile() {
export VARTEXFONTS="${T}/fonts"
if use doc ; then
pushd doc || die
emake build-documentation
popd
fi
default
}
src_install() {
MAKEOPTS="-j1" DESTDIR="${D}" emake install
cd doc || die
dodoc -r *.pdf
rm "${ED}/usr/share/doc/clusteringsuite_manual.pdf" || die
mv "${ED}/usr/share/example" "${ED}/usr/share/doc/${PF}/examples" || die
docompress -x "/usr/share/doc/${PF}/examples"
find "${ED}" -name '*.la' -delete || die
}
|