summaryrefslogtreecommitdiff
path: root/sci-libs/parmetis
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/parmetis')
-rw-r--r--sci-libs/parmetis/Manifest6
-rw-r--r--sci-libs/parmetis/metadata.xml4
-rw-r--r--sci-libs/parmetis/parmetis-4.0.3-r1.ebuild153
-rw-r--r--sci-libs/parmetis/parmetis-4.0.3-r2.ebuild4
4 files changed, 4 insertions, 163 deletions
diff --git a/sci-libs/parmetis/Manifest b/sci-libs/parmetis/Manifest
index 160199117fb9..c2f1face46f5 100644
--- a/sci-libs/parmetis/Manifest
+++ b/sci-libs/parmetis/Manifest
@@ -1,7 +1,5 @@
AUX parmetis-4.0.3-01-cmake-paths.patch 1145 BLAKE2B 68b601d3421e88114a4cf3c6e580f92a9b5efa301e4480b55e820cfb18f75b1062b8ddec6e3aab0e49f97cbe0e8e8ac42d1db6f7f99f8f4d4bcdd2dad4ce8d2c SHA512 96892b7e8e8e4779233dfbc5737506a80454447eac0f0cbf07fa76aecc37dfe61bc16e5638bc36bc4f99ee89b259bd5f13a5fe4c5218b076810a498387ee01cf
AUX parmetis-4.0.3-02-unbundle-metis.patch 300 BLAKE2B 4baa2ef83d09746ec74e058eb4aba8e5bf6cbdf1f1ed44bf2b5d7a858afc677ac639a605cdb060960d646f2effa6c6eb6b173ebc78a09253046c1fffef7bbe32 SHA512 9f242db228d02c57d93c710be4f1cf8535012d13134064ea21588faa884f689ceac8deab9cee1f00a7192d64601753121a906622dbc900c6efc7e86d0e857744
-DIST metis-5.1.0.tar.gz 4984968 BLAKE2B c5f8ff552fce7e7cc02740e6197c9deb5e05e8bc2e2e56cad0cba85705eec6990b511182930c8758fd16a18015f54c8a4827038039bc3c58ee41df468ea175bc SHA512 deea47749d13bd06fbeaf98a53c6c0b61603ddc17a43dae81d72c8015576f6495fd83c11b0ef68d024879ed5415c14ebdbd87ce49c181bdac680573bea8bdb25
DIST parmetis-4.0.3.tar.gz 5567670 BLAKE2B 69a44ea8e50d8fd78046a342807b994220d03da3ab1695533d92772b1840302917a7d5d6f9eb020d9ff8ab7e5372bff0386d6354b662f58495b74f8f596c45f9 SHA512 454a91921ca35c981df11c9846a11963ff8fd8407a25179453af33f8fe69493f6dd7f2a0b8feed9a7d3f121e45b715749dd7a94873eaac2bae4cad1e535ca132
-EBUILD parmetis-4.0.3-r1.ebuild 4032 BLAKE2B 3901fd54c46582035071e7f588a9f3a7236932dfa21abbf33ce4bfa0ff6d161a18711dfc437ef2dd0c0ae27d5804c830a569e7eb246240fdbe1c4348e9891943 SHA512 50c5bb942c7862fef87ada2f5e056c090f25d73c9e77d378b6c50a063eeec2afdcaa604579ca74ac99d314db53fc6abcffc112081bb96957b65c99319904dfeb
-EBUILD parmetis-4.0.3-r2.ebuild 1615 BLAKE2B a964cc0c14643b2e0663c2309bf8e7a28cd9f35be63fa9ba79c0291d3d6b80d1a3d3b6674d63456de8625d6b4df8d22fa2115b5fbef094778396a3b1c92880b5 SHA512 14fc8f863b55404f5b63bf928842abfb80c8a95904433ac274475661a92084587e1816c95f28f9ad310073b91b41a9debf84b9cef9b138665e25546b485aabb2
-MISC metadata.xml 852 BLAKE2B d4b33ac1a216c88ef2cbbc614631c98d67d4ac4b2dda97e258837b405d79509ec19d06a4514b1d225d59bed91c34d60ea5d1e1e1d0b00fbfbbf1fdd892d50880 SHA512 7615c1bc66910833ef521c7781403511e2eeeba0c015ef1b42d71bb4a9f27126c2ba27a4d8323472784eebf1b5a1dbd5b69517757c38d0ab60abc401b0b740c2
+EBUILD parmetis-4.0.3-r2.ebuild 1612 BLAKE2B b0fd4084d4a2c4f981440739318c06633a958c7e2552f4430beb15c2c7a813ff38f0779f700a90eab428524557c9e404bd06796e8f69796fe1752bf79aabf36c SHA512 fcf695d2eff2c523f8e45e59a4195b3b4cb68c686dd8f61db00dde57f8ec64a1d6d79efb62f90a44125de32fb4e8be6b35fff25ab9d4119261756e72701a9781
+MISC metadata.xml 654 BLAKE2B 563c44ef3f6bbc67b9adcd611c85446048756f2fedfefd65436f7a0c4926393616b4deedf3994e74ed5f7fc7045a1810c7cdf69f8cad58c03327f6f231cea1d6 SHA512 f5572f73d3f62fe18efb7291595bde01df63ccffdf45f211cd41bf9c0c347391c8d22cd43a53f404467db68a56eebea4d992ad77d4e45e2f67a8cda0c21082b7
diff --git a/sci-libs/parmetis/metadata.xml b/sci-libs/parmetis/metadata.xml
index 62de4c03afb6..67e8ddda1e5f 100644
--- a/sci-libs/parmetis/metadata.xml
+++ b/sci-libs/parmetis/metadata.xml
@@ -13,8 +13,4 @@ functionality provided by METIS and includes routines that are
especially suited for parallel AMR computations and large scale
numerical simulations.
</longdescription>
- <use>
- <flag name="int64">Build the 64 bits integer library (needed for &gt; 2^31 vertices)</flag>
- <flag name="double-precision">Floating-point operation done as double precision</flag>
- </use>
</pkgmetadata>
diff --git a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
deleted file mode 100644
index 185d5ebd41da..000000000000
--- a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
+++ /dev/null
@@ -1,153 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-# Check metis version bundled in parmetis tar ball
-# by diff of metis and parmetis tar ball
-METISPV=5.1.0
-METISP=metis-${METISPV}
-inherit cmake-utils toolchain-funcs
-
-DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
-HOMEPAGE="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview"
-SRC_URI="
- http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz
- doc? ( http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/${METISP}.tar.gz )
- examples? ( http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/${METISP}.tar.gz )"
-
-LICENSE="all-rights-reserved"
-SLOT="0"
-KEYWORDS="amd64 arm64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc double-precision examples int64 mpi openmp pcre static-libs"
-RESTRICT="mirror bindist"
-
-DEPEND="mpi? ( virtual/mpi )
- pcre? ( dev-libs/libpcre:= )"
-RDEPEND="${DEPEND}
- !<sci-libs/metis-5"
-
-pkg_setup() {
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_prepare() {
- cmake-utils_src_prepare
-
- # libdir love
- sed -i \
- -e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \
- libparmetis/CMakeLists.txt metis/libmetis/CMakeLists.txt || die
- # set metis as separate shared lib
- sed -i \
- -e 's/METIS_LIB/ParMETIS_LIB/g' \
- metis/libmetis/CMakeLists.txt || die
- sed -i \
- -e '/programs/d' \
- CMakeLists.txt metis/CMakeLists.txt || die
- if use static-libs; then
- mkdir "${WORKDIR}/${PN}_static" || die
- fi
-
- if use mpi; then
- export CC=mpicc CXX=mpicxx
- else
- sed -i \
- -e '/add_subdirectory(include/d' \
- -e '/add_subdirectory(libparmetis/d' \
- CMakeLists.txt || die
- fi
-
- if use int64; then
- sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h || die
- fi
-
- if use double-precision; then
- sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h || die
- fi
-}
-
-src_configure() {
- parmetis_configure() {
- local mycmakeargs=(
- -DGKLIB_PATH="${S}/metis/GKlib"
- -DMETIS_PATH="${S}/metis"
- -DGKRAND=ON
- -DMETIS_INSTALL=ON
- -DOPENMP=$(usex openmp)
- -DPCRE=$(usex pcre)
- $@
- )
- cmake-utils_src_configure
- }
- parmetis_configure -DSHARED=ON
- if use static-libs; then
- sed -i -e '/fPIC/d' metis/GKlib/GKlibSystem.cmake || die
- BUILD_DIR="${WORKDIR}/${PN}_static" parmetis_configure
- fi
-}
-
-src_compile() {
- cmake-utils_src_compile
- use static-libs && \
- BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile
-}
-
-src_install() {
- cmake-utils_src_install
- use static-libs && \
- BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install
- insinto /usr/include
- doins metis/include/metis.h
-
- newdoc metis/Changelog Changelog.metis}
- use doc && dodoc "${WORKDIR}/${METISP}"/manual/manual.pdf
- if use examples; then
- insinto /usr/share/doc/${PF}/examples/metis
- doins "${WORKDIR}/${METISP}"/{programs,graphs}/*
- fi
- # alternative stuff
- cat > metis.pc <<-EOF
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: metis
- Description: Unstructured graph partitioning library
- Version: ${METISPV}
- URL: ${HOMEPAGE/parmetis/metis}
- Libs: -L\${libdir} -lmetis
- Cflags: -I\${includedir}/metis
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins metis.pc
- # change if scotch is actually an alternative to metis
- #alternatives_for metis metis 0 \
- # /usr/$(get_libdir)/pkgconfig/metis.pc refmetis.pc
-
- if use mpi; then
- dodoc Changelog
- use doc && dodoc manual/manual.pdf
- if use examples; then
- insinto /usr/share/doc/${PF}/examples/${PN}
- doins {programs,Graphs}/*
- fi
- # alternative stuff
- cat > ${PN}.pc <<-EOF
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${PN}
- Description: ${DESCRIPTION}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${PN}
- Cflags: -I\${includedir}/${PN}
- Requires: metis
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${PN}.pc
- # change if scotch is actually an alternative to parmetis
- #alternatives_for metis-mpi ${PN} 0 \
- # /usr/$(get_libdir)/pkgconfig/metis-mpi.pc ${PN}.pc
- fi
-}
diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 90bfeec2fc17..1f1b3c8b4398 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -11,7 +11,7 @@ SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples openmp pcre"
RESTRICT="mirror bindist"