Diff parmetis-4.0.3-r2 with a parmetis-4.0.3_p20230326-r1

/usr/portage/sci-libs/parmetis/parmetis-4.0.3_p20230326-r1.ebuild 2023-10-09 14:52:35.092368491 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit cmake toolchain-funcs
7 7

  
8
COMMIT="8ee6a372ca703836f593e3c450ca903f04be14df"
9

  
8 10
DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
9
HOMEPAGE="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview"
10
SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz"
11
HOMEPAGE="https://github.com/KarypisLab/ParMETIS"
12
SRC_URI="https://github.com/KarypisLab/ParMETIS/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/ParMETIS-${COMMIT}"
11 14

  
12 15
LICENSE="all-rights-reserved"
13 16
SLOT="0"
14
KEYWORDS="amd64 arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
15
IUSE="doc examples openmp pcre"
17
KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86 ~amd64-linux"
18
IUSE="examples openmp pcre"
16 19
RESTRICT="mirror bindist"
17 20

  
18
DEPEND=">=sci-libs/metis-5.1.0-r5
21
DEPEND="
22
	sci-libs/gklib
23
	>=sci-libs/metis-5.1.0-r5
19 24
	virtual/mpi[fortran]
20
	pcre? ( dev-libs/libpcre:= )"
21
RDEPEND="${DEPEND}
22
	!<sci-libs/metis-5.1.0-r5"
25
	pcre? ( dev-libs/libpcre:= )
26
"
27
RDEPEND="${DEPEND}"
23 28

  
24 29
PATCHES=(
25
	"${FILESDIR}"/${PN}-4.0.3-01-cmake-paths.patch
26
	"${FILESDIR}"/${PN}-4.0.3-02-unbundle-metis.patch
30
	"${FILESDIR}"/${P}-respect-user-flags.patch
31
	"${FILESDIR}"/${P}-multilib.patch
27 32
)
28 33

  
29 34
pkg_pretend() {
......
41 46

  
42 47
src_configure() {
43 48
	local mycmakeargs=(
44
		-DGKLIB_PATH="${S}/metis/GKlib"
45 49
		-DGKRAND=ON
46 50
		-DMETIS_PATH="${EPREFIX}/usr"
47 51
		-DOPENMP=$(usex openmp)
......
55 59
	cmake_src_install
56 60

  
57 61
	dodoc Changelog
58
	use doc && dodoc manual/manual.pdf
62
	dodoc manual/manual.pdf
59 63
	if use examples; then
60 64
		docinto examples
61 65
		dodoc -r Graphs programs
......
69 73
		Description: ${DESCRIPTION}
70 74
		Version: ${PV}
71 75
		URL: ${HOMEPAGE}
72
		Libs: -L\${libdir} -l${PN}
73
		Cflags: -I\${includedir}/${PN}
76
		Libs: -L\${libdir} -lparmetis -lGKlib
77
		Cflags: -I\${includedir}
74 78
		Requires: metis
75 79
	EOF
76 80
	insinto /usr/$(get_libdir)/pkgconfig
Thank you!