mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 18:13:10 -04:00
sys-cluster/clusteringsuite: update EAPI 7 -> 8
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
109
sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r1.ebuild
Normal file
109
sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r1.ebuild
Normal file
@@ -0,0 +1,109 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||
|
||||
inherit 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://ftp.tools.bsc.es/clusteringsuite/clusteringsuite-${PV}-src.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc mpi"
|
||||
#TODO: muster treedbscan
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-unbundle-libANN.patch" )
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost:=
|
||||
sci-libs/ann
|
||||
sys-cluster/libbsctools
|
||||
mpi? ( virtual/mpi )
|
||||
"
|
||||
# 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() {
|
||||
rm -r src/libANN || die
|
||||
# rm -r pcfparser_svn3942 || die
|
||||
default
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user