Diff m4ri-20200125 with a m4ri-20240729

/usr/portage/sci-libs/m4ri/m4ri-20240729.ebuild 2025-02-03 17:39:35.918677951 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 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
inherit flag-o-matic toolchain-funcs
6
inherit autotools flag-o-matic toolchain-funcs
7 7

  
8 8
DESCRIPTION="Method of four russian for inversion (M4RI)"
9 9
HOMEPAGE="https://github.com/malb/m4ri"
10
SRC_URI="https://bitbucket.org/malb/${PN}/downloads/${P}.tar.gz"
10
SRC_URI="https://github.com/malb/${PN}/archive/refs/tags/release-${PV}.tar.gz"
11

  
12
S="${WORKDIR}/${PN}-release-${PV}"
11 13

  
12 14
LICENSE="GPL-2+"
13 15
SLOT="0"
14
KEYWORDS="amd64 ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
15
IUSE="debug openmp cpu_flags_x86_sse2 png static-libs"
16
KEYWORDS="~amd64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
17
IUSE="debug openmp cpu_flags_x86_sse2 png"
16 18

  
17 19
BDEPEND="virtual/pkgconfig"
18 20
DEPEND="png? ( media-libs/libpng:= )"
19 21
RDEPEND="${DEPEND}"
20 22

  
21
PATCHES=( "${FILESDIR}/${P}-testfix.patch" )
23
PATCHES=( "${FILESDIR}/${P}-pkgconfig.patch" )
22 24

  
23
# NEWS and ChangeLog are empty as of 2020-01-01, and README.md
24
# didn't make it into the release tarball.
25
DOCS=( AUTHORS )
25
# NEWS and ChangeLog are empty as of 2025-01-20.
26
DOCS=( AUTHORS README.md )
26 27

  
27 28
pkg_pretend() {
28 29
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
......
32 33
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
33 34
}
34 35

  
36
src_prepare() {
37
	default
38
	eautoreconf
39
}
40

  
35 41
src_configure() {
36 42
	# when using openmp and -O0 the testsuite fails
37 43
	# https://github.com/cschwan/sage-on-gentoo/issues/475
......
42 48
		$(use_enable debug) \
43 49
		$(use_enable openmp) \
44 50
		$(use_enable png) \
45
		$(use_enable cpu_flags_x86_sse2 sse2) \
46
		$(use_enable static-libs static)
51
		$(use_enable cpu_flags_x86_sse2 sse2)
47 52
}
48 53

  
49 54
src_install() {
Thank you!