public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2021-07-20  7:41 Andrew Ammerlaan
  0 siblings, 0 replies; 18+ messages in thread
From: Andrew Ammerlaan @ 2021-07-20  7:41 UTC (permalink / raw
  To: gentoo-commits

commit:     409202e1a974c820588cfcf20985b3e6ad78080d
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 20 07:41:01 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jul 20 07:41:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=409202e1

sci-libs/parmetis: update homepage

Closes: https://bugs.gentoo.org/802987
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r1.ebuild | 2 +-
 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
index 017c930a97f..185d5ebd41d 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
@@ -10,7 +10,7 @@ METISP=metis-${METISPV}
 inherit cmake-utils toolchain-funcs
 
 DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
-HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/parmetis/"
+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 )

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 6d9599fec41..90bfeec2fc1 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -6,7 +6,7 @@ EAPI=7
 inherit cmake toolchain-funcs
 
 DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
-HOMEPAGE="https://www-users.cs.umn.edu/~karypis/metis/parmetis/"
+HOMEPAGE="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview"
 SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz"
 
 LICENSE="all-rights-reserved"


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2023-06-03  9:50 WANG Xuerui
  0 siblings, 0 replies; 18+ messages in thread
From: WANG Xuerui @ 2023-06-03  9:50 UTC (permalink / raw
  To: gentoo-commits

commit:     a26c08b37640406d824d5242793ae82361e9c0ca
Author:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  3 06:08:56 2023 +0000
Commit:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
CommitDate: Sat Jun  3 09:50:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a26c08b3

sci-libs/parmetis: keyword 4.0.3_p20230326-r1 for ~loong

Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
index 9d2a9c346196..e1d14fde942f 100644
--- a/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/ParMETIS-${COMMIT}"
 
 LICENSE="all-rights-reserved"
 SLOT="0"
-KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux"
+KEYWORDS="~amd64 ~loong ~riscv ~x86 ~amd64-linux"
 IUSE="examples openmp pcre"
 RESTRICT="mirror bindist"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2023-05-03 10:55 Jakov Smolić
  0 siblings, 0 replies; 18+ messages in thread
From: Jakov Smolić @ 2023-05-03 10:55 UTC (permalink / raw
  To: gentoo-commits

commit:     356581e77231f8b10a3aab5bac68c750c9911ed1
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 10:54:55 2023 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Wed May  3 10:54:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=356581e7

sci-libs/parmetis: Keyword 4.0.3_p20230326-r1 riscv, #905468

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
index a5b51e0a7e21..9d2a9c346196 100644
--- a/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/ParMETIS-${COMMIT}"
 
 LICENSE="all-rights-reserved"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux"
 IUSE="examples openmp pcre"
 RESTRICT="mirror bindist"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2023-05-03  8:49 Andrew Ammerlaan
  0 siblings, 0 replies; 18+ messages in thread
From: Andrew Ammerlaan @ 2023-05-03  8:49 UTC (permalink / raw
  To: gentoo-commits

commit:     bf207af9976559a6e11ba760fc967f1f6cf0808a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed May  3 08:48:12 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed May  3 08:49:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf207af9

sci-libs/parmetis: fixup pkgconfig file

Newer versions of parmetis no longer have gklib bundled.
For backwards compatibility add gklib to the pkgconfig
file for software that still assumes that gklib is
part of parmetis.

Bug: https://bugs.gentoo.org/905632
Closes: https://bugs.gentoo.org/704348
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 ...etis-4.0.3_p20230326.ebuild => parmetis-4.0.3_p20230326-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
similarity index 96%
rename from sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild
rename to sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
index ab8089bdd3a3..a5b51e0a7e21 100644
--- a/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild
@@ -73,8 +73,8 @@ src_install() {
 		Description: ${DESCRIPTION}
 		Version: ${PV}
 		URL: ${HOMEPAGE}
-		Libs: -L\${libdir} -l${PN}
-		Cflags: -I\${includedir}/${PN}
+		Libs: -L\${libdir} -lparmetis -lGKlib
+		Cflags: -I\${includedir}
 		Requires: metis
 	EOF
 	insinto /usr/$(get_libdir)/pkgconfig


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2023-05-02 17:36 Arthur Zamarin
  0 siblings, 0 replies; 18+ messages in thread
From: Arthur Zamarin @ 2023-05-02 17:36 UTC (permalink / raw
  To: gentoo-commits

commit:     dc2d81c2c7eefeb7493ecf281906b56cdeda7b64
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue May  2 17:36:27 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue May  2 17:36:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2d81c2

sci-libs/parmetis: Keyword 4.0.3_p20230326 x86, #905468

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild b/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild
index 32c0dc0c83d8..ab8089bdd3a3 100644
--- a/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3_p20230326.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/ParMETIS-${COMMIT}"
 
 LICENSE="all-rights-reserved"
 SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
 IUSE="examples openmp pcre"
 RESTRICT="mirror bindist"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2023-03-07  0:18 Yixun Lan
  0 siblings, 0 replies; 18+ messages in thread
From: Yixun Lan @ 2023-03-07  0:18 UTC (permalink / raw
  To: gentoo-commits

commit:     688983872600df30a47bf55530435bef9bfdb3ea
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  6 11:38:10 2023 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Mar  7 00:14:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68898387

sci-libs/parmetis: Keyword 4.0.3-r2 riscv, #881389

Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index f24d1ffbe973..c2563edf4869 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-2022 Gentoo Authors
+# Copyright 1999-2023 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 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="doc examples openmp pcre"
 RESTRICT="mirror bindist"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-05-16  8:12 David Seifert
  0 siblings, 0 replies; 18+ messages in thread
From: David Seifert @ 2022-05-16  8:12 UTC (permalink / raw
  To: gentoo-commits

commit:     04614f988393ef618a03f1ed54918c9e60f96a80
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:23 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04614f98

sci-libs/parmetis: [QA] use tc-check-openmp correctly

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 1f1b3c8b4398..f24d1ffbe973 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -26,10 +26,12 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-4.0.3-02-unbundle-metis.patch
 )
 
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-	if [[ ${MERGE_TYPE} != binary ]]; then
-		use openmp && tc-check-openmp
-	fi
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-03-07  4:51 Sam James
  0 siblings, 0 replies; 18+ messages in thread
From: Sam James @ 2022-03-07  4:51 UTC (permalink / raw
  To: gentoo-commits

commit:     3b245950a6e7a2da26ee2bf6ac321d6ec6ad9c61
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  7 04:29:29 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  7 04:51:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b245950

sci-libs/parmetis: drop 4.0.3-r1

Closes: https://bugs.gentoo.org/816579
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/parmetis/Manifest                 |   1 -
 sci-libs/parmetis/metadata.xml             |   4 -
 sci-libs/parmetis/parmetis-4.0.3-r1.ebuild | 155 -----------------------------
 3 files changed, 160 deletions(-)

diff --git a/sci-libs/parmetis/Manifest b/sci-libs/parmetis/Manifest
index bab1f34b3d8a..f51deaae9a5a 100644
--- a/sci-libs/parmetis/Manifest
+++ b/sci-libs/parmetis/Manifest
@@ -1,2 +1 @@
-DIST metis-5.1.0.tar.gz 4984968 BLAKE2B c5f8ff552fce7e7cc02740e6197c9deb5e05e8bc2e2e56cad0cba85705eec6990b511182930c8758fd16a18015f54c8a4827038039bc3c58ee41df468ea175bc SHA512 deea47749d13bd06fbeaf98a53c6c0b61603ddc17a43dae81d72c8015576f6495fd83c11b0ef68d024879ed5415c14ebdbd87ce49c181bdac680573bea8bdb25
 DIST parmetis-4.0.3.tar.gz 5567670 BLAKE2B 69a44ea8e50d8fd78046a342807b994220d03da3ab1695533d92772b1840302917a7d5d6f9eb020d9ff8ab7e5372bff0386d6354b662f58495b74f8f596c45f9 SHA512 454a91921ca35c981df11c9846a11963ff8fd8407a25179453af33f8fe69493f6dd7f2a0b8feed9a7d3f121e45b715749dd7a94873eaac2bae4cad1e535ca132

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 991ac87315bf..000000000000
--- a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# Copyright 1999-2022 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
-		docinto examples/metis
-		dodoc -r "${WORKDIR}/${METISP}"/{programs,graphs}/.
-		docompress -x /usr/share/doc/${PF}/examples/metis
-	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
-			docinto examples/${PN}
-			dodoc -r {programs,Graphs}/.
-			docompress -x /usr/share/doc/${PF}/examples/${PN}
-		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
-}


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-03-07  4:29 Sam James
  0 siblings, 0 replies; 18+ messages in thread
From: Sam James @ 2022-03-07  4:29 UTC (permalink / raw
  To: gentoo-commits

commit:     01457239920dd74672d3aedb85bca902f8ddfda1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  7 04:28:59 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  7 04:28:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01457239

sci-libs/parmetis: Stabilize 4.0.3-r2 arm64, #816579

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 34d10e448f8b..1f1b3c8b4398 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -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"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-02-13 23:09 Jakov Smolić
  0 siblings, 0 replies; 18+ messages in thread
From: Jakov Smolić @ 2022-02-13 23:09 UTC (permalink / raw
  To: gentoo-commits

commit:     5b6abfa25e373e469141a6e657c6c6b34ba54bba
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 13 23:09:32 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sun Feb 13 23:09:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b6abfa2

sci-libs/parmetis: Stabilize 4.0.3-r2 x86, #816579

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 866a15487754..34d10e448f8b 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -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"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-02-13 21:08 Conrad Kostecki
  0 siblings, 0 replies; 18+ messages in thread
From: Conrad Kostecki @ 2022-02-13 21:08 UTC (permalink / raw
  To: gentoo-commits

commit:     75d22e0da0dec42c59376e2ff95d494653f06c4a
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 13 00:15:19 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Feb 13 21:07:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d22e0d

sci-libs/parmetis: fix DeprecatedInsinto

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r1.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
index 185d5ebd41da..991ac87315bf 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r1.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=6
@@ -103,8 +103,9 @@ src_install() {
 	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}/*
+		docinto examples/metis
+		dodoc -r "${WORKDIR}/${METISP}"/{programs,graphs}/.
+		docompress -x /usr/share/doc/${PF}/examples/metis
 	fi
 	# alternative stuff
 	cat > metis.pc <<-EOF
@@ -128,8 +129,9 @@ src_install() {
 		dodoc Changelog
 		use doc && dodoc manual/manual.pdf
 		if use examples; then
-			insinto /usr/share/doc/${PF}/examples/${PN}
-			doins {programs,Graphs}/*
+			docinto examples/${PN}
+			dodoc -r {programs,Graphs}/.
+			docompress -x /usr/share/doc/${PF}/examples/${PN}
 		fi
 		# alternative stuff
 		cat > ${PN}.pc <<-EOF


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2022-02-02  5:30 Sam James
  0 siblings, 0 replies; 18+ messages in thread
From: Sam James @ 2022-02-02  5:30 UTC (permalink / raw
  To: gentoo-commits

commit:     09d1d28bbd78efd378dc0367722a60d65b03a050
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  2 05:30:20 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb  2 05:30:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d1d28b

sci-libs/parmetis: Stabilize 4.0.3-r2 amd64, #816579

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 90bfeec2fc17..866a15487754 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"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2020-01-11 16:33 Ulrich Müller
  0 siblings, 0 replies; 18+ messages in thread
From: Ulrich Müller @ 2020-01-11 16:33 UTC (permalink / raw
  To: gentoo-commits

commit:     e122936febee9352da34e680d7e35d876e457445
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 16:31:28 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jan 11 16:32:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e122936f

sci-libs/parmetis: Fix LICENSE, add mirror and bindist restrictions.

Closes: https://bugs.gentoo.org/702362
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 .../parmetis/{parmetis-4.0.3.ebuild => parmetis-4.0.3-r1.ebuild}     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
similarity index 97%
rename from sci-libs/parmetis/parmetis-4.0.3.ebuild
rename to sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
index 0351c921efe..4bcc0ab1385 100644
--- a/sci-libs/parmetis/parmetis-4.0.3.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -16,10 +16,11 @@ SRC_URI="
 	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"
-LICENSE="free-noncomm"
 IUSE="doc double-precision examples int64 mpi openmp pcre static-libs"
+RESTRICT="mirror bindist"
 
 DEPEND="mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2019-05-21 20:30 Aaron Bauman
  0 siblings, 0 replies; 18+ messages in thread
From: Aaron Bauman @ 2019-05-21 20:30 UTC (permalink / raw
  To: gentoo-commits

commit:     4a48dc7705ae828c0c41e5c498193b9b4816593a
Author:     Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 20:29:24 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Tue May 21 20:29:24 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a48dc77

sci-libs/parmetis: arm64 stable

Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.12
RepoMan-Options: --include-arches="arm64"

 sci-libs/parmetis/parmetis-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild
index 5fbc940345e..0351c921efe 100644
--- a/sci-libs/parmetis/parmetis-4.0.3.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild
@@ -17,7 +17,7 @@ SRC_URI="
 	examples? ( http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/${METISP}.tar.gz )"
 
 SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm64 x86 ~amd64-linux ~x86-linux"
 LICENSE="free-noncomm"
 IUSE="doc double-precision examples int64 mpi openmp pcre static-libs"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2019-03-09 19:18 Thomas Deutschmann
  0 siblings, 0 replies; 18+ messages in thread
From: Thomas Deutschmann @ 2019-03-09 19:18 UTC (permalink / raw
  To: gentoo-commits

commit:     50e09c2c5e84fe937dd6fa235457f4eb001fafba
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  9 19:13:33 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Mar  9 19:18:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50e09c2c

sci-libs/parmetis: x86 stable (bug #677116)

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild
index bb48b4e600f..36c00673650 100644
--- a/sci-libs/parmetis/parmetis-4.0.3.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -17,7 +17,7 @@ SRC_URI="
 	examples? ( http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/${METISP}.tar.gz )"
 
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
 LICENSE="free-noncomm"
 IUSE="doc double-precision examples int64 mpi openmp pcre static-libs"
 


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2018-12-31 21:14 Andreas Sturmlechner
  0 siblings, 0 replies; 18+ messages in thread
From: Andreas Sturmlechner @ 2018-12-31 21:14 UTC (permalink / raw
  To: gentoo-commits

commit:     94f78f5e128ea5037e73116527fe9225fde0f77a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 31 20:54:57 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 31 21:13:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f78f5e

sci-libs/parmetis: missing || die

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild
index 71ee81fcbc9..0df1f3da634 100644
--- a/sci-libs/parmetis/parmetis-4.0.3.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild
@@ -47,7 +47,9 @@ src_prepare() {
 	sed -i \
 		-e '/programs/d' \
 		CMakeLists.txt metis/CMakeLists.txt || die
-	use static-libs && mkdir "${WORKDIR}/${PN}_static"
+	if use static-libs; then
+		mkdir "${WORKDIR}/${PN}_static" || die
+	fi
 
 	if use mpi; then
 		export CC=mpicc CXX=mpicxx
@@ -59,11 +61,13 @@ src_prepare() {
 
 	fi
 
-	use int64 && \
-		sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h
+	if use int64; then
+		sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h || die
+	fi
 
-	use double-precision && \
-		sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h
+	if use double-precision; then
+		sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h || die
+	fi
 }
 
 src_configure() {
@@ -80,9 +84,10 @@ src_configure() {
 		cmake-utils_src_configure
 	}
 	parmetis_configure -DSHARED=ON
-	use static-libs && \
-		sed -i -e '/fPIC/d' metis/GKlib/GKlibSystem.cmake && \
+	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() {


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2018-12-31 21:14 Andreas Sturmlechner
  0 siblings, 0 replies; 18+ messages in thread
From: Andreas Sturmlechner @ 2018-12-31 21:14 UTC (permalink / raw
  To: gentoo-commits

commit:     475e43d7365b80a6fa40226ff49c863bcfe0dae5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 31 20:58:43 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 31 21:13:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=475e43d7

sci-libs/parmetis: EAPI-6 bump, add missing cmake-utils_src_prepare

Closes: https://bugs.gentoo.org/671994
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-libs/parmetis/parmetis-4.0.3.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild
index 0df1f3da634..bb48b4e600f 100644
--- a/sci-libs/parmetis/parmetis-4.0.3.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild
@@ -1,14 +1,13 @@
 # Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-inherit eutils cmake-utils toolchain-funcs
+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://www-users.cs.umn.edu/~karypis/metis/parmetis/"
@@ -36,6 +35,8 @@ pkg_setup() {
 }
 
 src_prepare() {
+	cmake-utils_src_prepare
+
 	# libdir love
 	sed -i \
 		-e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \
@@ -58,7 +59,6 @@ src_prepare() {
 			-e '/add_subdirectory(include/d' \
 			-e '/add_subdirectory(libparmetis/d' \
 			CMakeLists.txt || die
-
 	fi
 
 	if use int64; then
@@ -77,8 +77,8 @@ src_configure() {
 			-DMETIS_PATH="${S}/metis"
 			-DGKRAND=ON
 			-DMETIS_INSTALL=ON
-			$(cmake-utils_use openmp OPENMP)
-			$(cmake-utils_use pcre PCRE)
+			-DOPENMP=$(usex openmp)
+			-DPCRE=$(usex pcre)
 			$@
 		)
 		cmake-utils_src_configure


^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/
@ 2018-11-26  0:31 Matthias Maier
  0 siblings, 0 replies; 18+ messages in thread
From: Matthias Maier @ 2018-11-26  0:31 UTC (permalink / raw
  To: gentoo-commits

commit:     ab4d464bab7521e8b644305e47964185d0e0b7f3
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 26 00:05:07 2018 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Mon Nov 26 00:28:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab4d464b

sci-libs/parmetis: move parmetis to main repository

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sci-libs/parmetis/Manifest              |   2 +
 sci-libs/parmetis/metadata.xml          |  26 +++---
 sci-libs/parmetis/parmetis-4.0.3.ebuild | 151 ++++++++++++++++++++++++++++++++
 3 files changed, 168 insertions(+), 11 deletions(-)

diff --git a/sci-libs/parmetis/Manifest b/sci-libs/parmetis/Manifest
index d0d2f374193..a8a041b62e7 100644
--- a/sci-libs/parmetis/Manifest
+++ b/sci-libs/parmetis/Manifest
@@ -1 +1,3 @@
 DIST ParMetis-3.2.0.tar.gz 5291841 BLAKE2B f18b5144f2814a83c3a0b945b1bdbad812cce204e61e762498a98f380d33d79bdb6a4c58f25ebbd44401c7f76edbac602899d4fe8c05ca92f22a91d98f8f7607 SHA512 be7e5affa6ed687c7e8cbef51c5f4838e6302aa7632796f337ed079f15361569d77aa73fc61b876b5c9973e974575571fd1e3e6c73505480b1ecdb7cf801a0d0
+DIST metis-5.1.0.tar.gz 4984968 BLAKE2B c5f8ff552fce7e7cc02740e6197c9deb5e05e8bc2e2e56cad0cba85705eec6990b511182930c8758fd16a18015f54c8a4827038039bc3c58ee41df468ea175bc SHA512 deea47749d13bd06fbeaf98a53c6c0b61603ddc17a43dae81d72c8015576f6495fd83c11b0ef68d024879ed5415c14ebdbd87ce49c181bdac680573bea8bdb25
+DIST parmetis-4.0.3.tar.gz 5567670 BLAKE2B 69a44ea8e50d8fd78046a342807b994220d03da3ab1695533d92772b1840302917a7d5d6f9eb020d9ff8ab7e5372bff0386d6354b662f58495b74f8f596c45f9 SHA512 454a91921ca35c981df11c9846a11963ff8fd8407a25179453af33f8fe69493f6dd7f2a0b8feed9a7d3f121e45b715749dd7a94873eaac2bae4cad1e535ca132

diff --git a/sci-libs/parmetis/metadata.xml b/sci-libs/parmetis/metadata.xml
index 744c4ff57d0..cf1b66e8126 100644
--- a/sci-libs/parmetis/metadata.xml
+++ b/sci-libs/parmetis/metadata.xml
@@ -1,16 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <maintainer type="project">
-    <email>sci@gentoo.org</email>
-    <name>Gentoo Science Project</name>
-  </maintainer>
-  <longdescription lang="en">
-  ParMETIS is an MPI-based parallel library that implements a variety
-  of algorithms for partitioning unstructured graphs and for computing
-  fill-reducing orderings of sparse matrices. ParMETIS extends the
-  functionality provided by METIS and includes routines that are
-  especially suited for parallel AMR computations and large scale
-  numerical simulations.
+	<maintainer type="project">
+		<email>sci@gentoo.org</email>
+		<name>Gentoo Science Project</name>
+	</maintainer>
+	<longdescription lang="en">
+ParMETIS is an MPI-based parallel library that implements a variety
+of algorithms for partitioning unstructured graphs and for computing
+fill-reducing orderings of sparse matrices. ParMETIS extends the
+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.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild
new file mode 100644
index 00000000000..71ee81fcbc9
--- /dev/null
+++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils cmake-utils toolchain-funcs
+
+# Check metis version bundled in parmetis tar ball
+# by diff of metis and parmetis tar ball
+METISPV=5.1.0
+METISP=metis-${METISPV}
+
+DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/parmetis/"
+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 )"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="free-noncomm"
+IUSE="doc double-precision examples int64 mpi openmp pcre static-libs"
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}
+	!<sci-libs/metis-5"
+
+pkg_setup() {
+	if use openmp; then
+		if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
+			ewarn "You are using gcc but openmp is not available"
+			die "Need an OpenMP capable compiler"
+		fi
+	fi
+}
+
+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
+	use static-libs && mkdir "${WORKDIR}/${PN}_static"
+
+	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
+
+	use int64 && \
+		sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h
+
+	use double-precision && \
+		sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h
+}
+
+src_configure() {
+	parmetis_configure() {
+		local mycmakeargs=(
+			-DGKLIB_PATH="${S}/metis/GKlib"
+			-DMETIS_PATH="${S}/metis"
+			-DGKRAND=ON
+			-DMETIS_INSTALL=ON
+			$(cmake-utils_use openmp OPENMP)
+			$(cmake-utils_use pcre PCRE)
+			$@
+		)
+		cmake-utils_src_configure
+	}
+	parmetis_configure -DSHARED=ON
+	use static-libs && \
+		sed -i -e '/fPIC/d' metis/GKlib/GKlibSystem.cmake && \
+		BUILD_DIR="${WORKDIR}/${PN}_static" parmetis_configure
+}
+
+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
+}


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-06-03  9:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-20  7:41 [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2023-06-03  9:50 WANG Xuerui
2023-05-03 10:55 Jakov Smolić
2023-05-03  8:49 Andrew Ammerlaan
2023-05-02 17:36 Arthur Zamarin
2023-03-07  0:18 Yixun Lan
2022-05-16  8:12 David Seifert
2022-03-07  4:51 Sam James
2022-03-07  4:29 Sam James
2022-02-13 23:09 Jakov Smolić
2022-02-13 21:08 Conrad Kostecki
2022-02-02  5:30 Sam James
2020-01-11 16:33 Ulrich Müller
2019-05-21 20:30 Aaron Bauman
2019-03-09 19:18 Thomas Deutschmann
2018-12-31 21:14 Andreas Sturmlechner
2018-12-31 21:14 Andreas Sturmlechner
2018-11-26  0:31 Matthias Maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox