Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/fflas-ffpack/, sci-libs/fflas-ffpack/files/
Date: Fri, 02 Sep 2022 11:28:59
Message-Id: 1662118087.d6e742b3835750d6992128d07b34165f65a57818.mjo@gentoo
1 commit: d6e742b3835750d6992128d07b34165f65a57818
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 11:17:53 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 11:28:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6e742b3
7
8 sci-libs/fflas-ffpack: fix pkg-config libdir, update EAPI 7 -> 8
9
10 Apply François Bissey's upstream patch in a new revision.
11
12 Closes: https://bugs.gentoo.org/862747
13 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
14
15 sci-libs/fflas-ffpack/fflas-ffpack-2.4.3-r3.ebuild | 75 ++++++++++++++++++++++
16 .../files/fflas-ffpack-2.4.3-fix-pc-libdir.patch | 21 ++++++
17 2 files changed, 96 insertions(+)
18
19 diff --git a/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3-r3.ebuild b/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3-r3.ebuild
20 new file mode 100644
21 index 000000000000..87c452d6e355
22 --- /dev/null
23 +++ b/sci-libs/fflas-ffpack/fflas-ffpack-2.4.3-r3.ebuild
24 @@ -0,0 +1,75 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +
30 +inherit autotools toolchain-funcs
31 +
32 +DESCRIPTION="Library for dense linear algebra over word-size finite fields"
33 +HOMEPAGE="https://linbox-team.github.io/fflas-ffpack/"
34 +SRC_URI="https://github.com/linbox-team/${PN}/releases/download/v${PV}/${P}.tar.gz"
35 +
36 +LICENSE="LGPL-2.1+"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
39 +IUSE="openmp cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_x86_avx512dq cpu_flags_x86_avx512vl"
40 +
41 +# Our autotools patch hacks in PKG_CHECK_MODULES calls.
42 +BDEPEND="virtual/pkgconfig"
43 +DEPEND="virtual/cblas
44 + virtual/blas
45 + virtual/lapack
46 + dev-libs/gmp[cxx(+)]
47 + =sci-libs/givaro-4.1*"
48 +RDEPEND="${DEPEND}"
49 +
50 +# The no-test-echelon patch works around a test failure that may
51 +# eventually be fixed upstream. Gentoo bug 725446 and upstream
52 +# Github issue 282. Same for test-fgesv (bug 807100).
53 +PATCHES=(
54 + "${FILESDIR}/${PN}-2.3.2-blaslapack.patch"
55 + "${FILESDIR}/${P}-no-test-echelon.patch"
56 + "${FILESDIR}/${P}-no-test-fgesv.patch"
57 + "${FILESDIR}/${P}-fix-internal-linking.patch"
58 + "${FILESDIR}/${P}-no-fabi-version.patch"
59 + "${FILESDIR}/${P}-fix-pc-libdir.patch"
60 +)
61 +
62 +pkg_pretend() {
63 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
64 +}
65 +
66 +pkg_setup() {
67 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
68 +}
69 +
70 +pkg_setup() {
71 + tc-export PKG_CONFIG
72 +}
73 +
74 +src_prepare() {
75 + default
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + econf \
81 + --enable-precompilation \
82 + $(use_enable openmp) \
83 + $(use_enable cpu_flags_x86_fma3 fma) \
84 + $(use_enable cpu_flags_x86_fma4 fma4) \
85 + $(use_enable cpu_flags_x86_sse3 sse3) \
86 + $(use_enable cpu_flags_x86_ssse3 ssse3) \
87 + $(use_enable cpu_flags_x86_sse4_1 sse41) \
88 + $(use_enable cpu_flags_x86_sse4_2 sse42) \
89 + $(use_enable cpu_flags_x86_avx avx) \
90 + $(use_enable cpu_flags_x86_avx2 avx2) \
91 + $(use_enable cpu_flags_x86_avx512f avx512f) \
92 + $(use_enable cpu_flags_x86_avx512dq avx512dq) \
93 + $(use_enable cpu_flags_x86_avx512vl avx512vl)
94 +}
95 +
96 +src_install() {
97 + default
98 + find "${ED}" -type f -name '*.la' -delete || die
99 +}
100
101 diff --git a/sci-libs/fflas-ffpack/files/fflas-ffpack-2.4.3-fix-pc-libdir.patch b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.4.3-fix-pc-libdir.patch
102 new file mode 100644
103 index 000000000000..e397758b5fc5
104 --- /dev/null
105 +++ b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.4.3-fix-pc-libdir.patch
106 @@ -0,0 +1,21 @@
107 +From b1f7cadc105bcf1264da68ab69e0cdc6f8a5aa63 Mon Sep 17 00:00:00 2001
108 +From: =?UTF-8?q?Fran=C3=A7ois=20Bissey?= <frp.bissey@×××××.com>
109 +Date: Sun, 7 Aug 2022 14:15:49 +1200
110 +Subject: [PATCH] Fix fflas-ffpack.pc.in for issue #364
111 +
112 +---
113 + fflas-ffpack.pc.in | 2 +-
114 + 1 file changed, 1 insertion(+), 1 deletion(-)
115 +
116 +diff --git a/fflas-ffpack.pc.in b/fflas-ffpack.pc.in
117 +index b869dd8f..8d6c823a 100644
118 +--- a/fflas-ffpack.pc.in
119 ++++ b/fflas-ffpack.pc.in
120 +@@ -1,6 +1,6 @@
121 + prefix=@prefix@
122 + exec_prefix=@prefix@
123 +-libdir=@prefix@/lib
124 ++libdir=@libdir@
125 + includedir=@prefix@/include
126 +
127 + Name: fflas-ffpack