[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/clusteringsuite/files/, sys-cluster/clusteringsuite/
commit: bf5441f65964490eb32ea360af29fdcba3e15e0d Author: Alessandro Barbieri gmail com> AuthorDate: Sun Jul 11 04:13:53 2021 + Commit: Alessandro Barbieri gmail com> CommitDate: Sun Jul 11 04:13:53 2021 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bf5441f6 sys-cluster/clusteringsuite: update EAPI 7 -> 8 Signed-off-by: Alessandro Barbieri gmail.com> .../clusteringsuite-2.6.9-r1.ebuild| 109 .../clusteringsuite-2.6.9-unbundle-libANN.patch| 193 + 2 files changed, 302 insertions(+) diff --git a/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r1.ebuild b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r1.ebuild new file mode 100644 index 0..cf6723918 --- /dev/null +++ b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r1.ebuild @@ -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 +} diff --git a/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-unbundle-libANN.patch b/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-unbundle-libANN.patch new file mode 100644 index 0..fd6e15517 --- /dev/null +++ b/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-unbundle-libANN.patch @@ -0,0 +1,193 @@ +--- a/configure b/configure +@@ -19970,7 +19970,7 @@ + + + +-ac_config_files="$ac_config_files Makefile include/Makefile common_utilities/Makefile pcfparser_svn3942/Makefile src/Makefile src/BasicClasses/Makefile src/libParaverTraceParser/Makefile src/libSharedComponents/Makefile src/libSharedComponents/kalign2/Makefile src/libANN/Makefile src/libClustering/gmeans/Makefile src/libClustering/Makefile src/libTraceClustering/Makefile src/DBSCANParametersApproximation/Makefile src/BurstClustering/Makefile src/ClusteringDataExtractor/Makefile src/ClustersDiff/Makefile src/ClustersSequenceScore/Makefile scripts/Makefile src/MusterDistributedClustering/Makefile src/libDistributedClustering/Makefile src/TreeDBSCAN/Makefile src/TreeDBSCAN/scripts/Makefile doc/Makefile" ++ac_config_files="$ac_config_files Makefile include/Makefile common_utilities/Makefile
[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/clusteringsuite/files/, sys-cluster/clusteringsuite/
commit: 0534a9029203626c10275cf85db98df67a036c2b Author: Alessandro Barbieri gmail com> AuthorDate: Mon Apr 26 07:14:55 2021 + Commit: Alessandro Barbieri gmail com> CommitDate: Mon Apr 26 07:14:55 2021 + URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0534a902 sys-cluster/clusteringsuite: new package Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> sys-cluster/clusteringsuite/Manifest | 1 + .../clusteringsuite/clusteringsuite-2.6.9.ebuild | 103 .../clusteringsuite/files/respect-flags.patch | 134 + sys-cluster/clusteringsuite/metadata.xml | 19 +++ 4 files changed, 257 insertions(+) diff --git a/sys-cluster/clusteringsuite/Manifest b/sys-cluster/clusteringsuite/Manifest new file mode 100644 index 0..fa6804d47 --- /dev/null +++ b/sys-cluster/clusteringsuite/Manifest @@ -0,0 +1 @@ +DIST clusteringsuite-2.6.9-src.tar.bz2 8081023 BLAKE2B d53e08a51e0a5a2d487bc4413c19d802804b7ae79b5f1e7c466ba2c37e36d90864a4629f51a98ca5caa83f4cc0a3ca8c74f5652c044c08591c65f3b50acf13d2 SHA512 80903e3d2c018e8ed23874715f7ffc1706ac5d9dcd0826c75bb07c973c28fa9755d4c130021abd6e969e983fbe23463be7361bb29b6d1ab04596ba4f987b1b6a diff --git a/sys-cluster/clusteringsuite/clusteringsuite-2.6.9.ebuild b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9.ebuild new file mode 100644 index 0..bb11cf591 --- /dev/null +++ b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9.ebuild @@ -0,0 +1,103 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7,8,9} ) +inherit python-any-r1 + +DESCRIPTION="Automatically 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 old-pcfparser" +#TODO: muster treedbscan +#TODO: unbundle ANN + +#PATCHES=( "${FILESDIR}/respect-flags.patch" ) + +RDEPEND=" + dev-libs/boost:= + sci-libs/ann + 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_configure() { + + local myconf=( + --disable-static + --disable-static-boost + --enable-shared + --with-boost="${EPREFIX}/usr" + --with-pic + + $(use_enable old-pcfparser) + ) + + 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 +} diff --git a/sys-cluster/clusteringsuite/files/respect-flags.patch b/sys-cluster/clusteringsuite/files/respect-flags.patch new file mode 100644 index 0..9ff5bd384 --- /dev/null +++ b/sys-cluster/clusteringsuite/files/respect-flags.patch @@ -0,0 +1,134 @@ +diff '--color=auto' -ru a/config/determine-cc.sh b/config/determine-cc.sh +--- a/config/determine-cc.sh 2021-04-25 01:09:35.175990108 +0200 b/config/determine-cc.sh 2021-04-25 01:10:02.876433713 +0200 +@@ -1,7 +1,6 @@ + #!/bin/sh + # determine what compiler is behind "cc" (and presumably "CC" and "ftn") wrapper + +-CC=`which cc 2>/dev/null` + COMP= + if [