1 |
commit: f6bc01c6dc39ae282df30c969c06e39b5751db32 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 11:06:36 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 11:09:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6bc01c6 |
7 |
|
8 |
sci-libs/givaro: 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/862753 |
13 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
14 |
|
15 |
.../givaro/files/givaro-4.1.1-fix-pc-libdir.patch | 21 ++++++++ |
16 |
sci-libs/givaro/givaro-4.1.1-r3.ebuild | 59 ++++++++++++++++++++++ |
17 |
2 files changed, 80 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/givaro/files/givaro-4.1.1-fix-pc-libdir.patch b/sci-libs/givaro/files/givaro-4.1.1-fix-pc-libdir.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..35a536c04ad8 |
22 |
--- /dev/null |
23 |
+++ b/sci-libs/givaro/files/givaro-4.1.1-fix-pc-libdir.patch |
24 |
@@ -0,0 +1,21 @@ |
25 |
+From f5cbcebd7fcc2b68d6e1e9f1ba3aa53b9ed17b56 Mon Sep 17 00:00:00 2001 |
26 |
+From: =?UTF-8?q?Fran=C3=A7ois=20Bissey?= <frp.bissey@×××××.com> |
27 |
+Date: Sun, 7 Aug 2022 13:25:24 +1200 |
28 |
+Subject: [PATCH] Fix givaro.pc.in file for issue #200 |
29 |
+ |
30 |
+--- |
31 |
+ givaro.pc.in | 2 +- |
32 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/givaro.pc.in b/givaro.pc.in |
35 |
+index a4805555..9487ef8c 100644 |
36 |
+--- a/givaro.pc.in |
37 |
++++ b/givaro.pc.in |
38 |
+@@ -1,6 +1,6 @@ |
39 |
+ prefix=@prefix@ |
40 |
+ exec_prefix=@prefix@ |
41 |
+-libdir=@prefix@/lib |
42 |
++libdir=@libdir@ |
43 |
+ includedir=@prefix@/include |
44 |
+ |
45 |
+ Name: Givaro |
46 |
|
47 |
diff --git a/sci-libs/givaro/givaro-4.1.1-r3.ebuild b/sci-libs/givaro/givaro-4.1.1-r3.ebuild |
48 |
new file mode 100644 |
49 |
index 000000000000..f1ac1cd50f83 |
50 |
--- /dev/null |
51 |
+++ b/sci-libs/givaro/givaro-4.1.1-r3.ebuild |
52 |
@@ -0,0 +1,59 @@ |
53 |
+# Copyright 1999-2022 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=8 |
57 |
+ |
58 |
+DESCRIPTION="C++ library for arithmetic and algebraic computations" |
59 |
+HOMEPAGE="https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/" |
60 |
+SRC_URI="https://github.com/linbox-team/givaro/releases/download/v${PV}/${P}.tar.gz" |
61 |
+ |
62 |
+LICENSE="CeCILL-B" |
63 |
+SLOT="0/9" |
64 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
65 |
+IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 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 doc static-libs test" |
66 |
+RESTRICT="!test? ( test )" |
67 |
+ |
68 |
+BDEPEND=" |
69 |
+ doc? ( |
70 |
+ app-doc/doxygen[dot] |
71 |
+ dev-texlive/texlive-bibtexextra |
72 |
+ dev-texlive/texlive-fontsextra |
73 |
+ dev-texlive/texlive-fontutils |
74 |
+ dev-texlive/texlive-latex |
75 |
+ dev-texlive/texlive-latexextra |
76 |
+ ) |
77 |
+" |
78 |
+DEPEND="dev-libs/gmp:0[cxx(+)]" |
79 |
+RDEPEND="${DEPEND}" |
80 |
+ |
81 |
+DOCS=( AUTHORS ChangeLog README.md ) |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}/givaro-4.1.1-gcc-10.patch" |
85 |
+ "${FILESDIR}/givaro-4.1.1-fix-pc-libdir.patch" |
86 |
+) |
87 |
+ |
88 |
+src_configure() { |
89 |
+ # Passing "--disable-doc" also accidentally enables building |
90 |
+ # the documentation, so we can't just $(use_enable doc) here. |
91 |
+ # https://github.com/linbox-team/givaro/issues/148 |
92 |
+ econf \ |
93 |
+ $(usex doc --enable-doc "" "" "") \ |
94 |
+ --with-docdir="/usr/share/doc/${PF}/html" \ |
95 |
+ $(use_enable static-libs static) \ |
96 |
+ $(use_enable cpu_flags_x86_fma3 fma) \ |
97 |
+ $(use_enable cpu_flags_x86_fma4 fma4) \ |
98 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
99 |
+ $(use_enable cpu_flags_x86_sse2 sse2) \ |
100 |
+ $(use_enable cpu_flags_x86_sse3 sse3) \ |
101 |
+ $(use_enable cpu_flags_x86_ssse3 ssse3) \ |
102 |
+ $(use_enable cpu_flags_x86_sse4_1 sse41) \ |
103 |
+ $(use_enable cpu_flags_x86_sse4_2 sse42) \ |
104 |
+ $(use_enable cpu_flags_x86_avx avx) \ |
105 |
+ $(use_enable cpu_flags_x86_avx2 avx2) |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ default |
110 |
+ find "${ED}" -name '*.la' -delete || die |
111 |
+} |