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/givaro/
Date: Wed, 01 Jan 2020 19:36:03
Message-Id: 1577906936.f55ae9efddb800bf890f4b52ff0e0e11a118d8a5.mjo@gentoo
1 commit: f55ae9efddb800bf890f4b52ff0e0e11a118d8a5
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 1 15:08:14 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 19:28:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55ae9ef
7
8 sci-libs/givaro: new C++ library for arithmetic/algebraic computing.
9
10 The latest version givaro-4.1.1 was imported from the sage-on-gentoo
11 overlay with the following changes:
12
13 * The homepage (which was redirecting) was updated.
14 * The obsolete "bindist" flag was dropped.
15 * The test suite was enabled; it passes without incident for me.
16 * Support for the sse/sse2 CPU flags was added.
17 * USE=doc will now build the API documentation.
18
19 The SageMath project can detect and use the system copy of givaro, so having
20 this installed will help Gentoo users avoid pointless rebuilds of givaro.
21
22 Closes: https://bugs.gentoo.org/704458
23 Package-Manager: Portage-2.3.79, Repoman-2.3.16
24 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
25
26 sci-libs/givaro/Manifest | 1 +
27 sci-libs/givaro/givaro-4.1.1.ebuild | 45 +++++++++++++++++++++++++++++++++++++
28 sci-libs/givaro/metadata.xml | 24 ++++++++++++++++++++
29 3 files changed, 70 insertions(+)
30
31 diff --git a/sci-libs/givaro/Manifest b/sci-libs/givaro/Manifest
32 new file mode 100644
33 index 00000000000..6682189b6b2
34 --- /dev/null
35 +++ b/sci-libs/givaro/Manifest
36 @@ -0,0 +1 @@
37 +DIST givaro-4.1.1.tar.gz 1008358 BLAKE2B 246fd1a263174f58d96dd66fa79e6113368b6c318c33d68858a339bd9cb778dfda84636c683ee9d02f2ac72ccff8ac22d395b92741448a8ed2ce08c041ac8ba9 SHA512 7ad15ac24f55ad65c9c5d0d48ff4388d0494e75dc7b66d1e139195cd086ff2371259bdb5df940fead1db2fd378bb76289f2327a8d6f41575d99d424a74cf644c
38
39 diff --git a/sci-libs/givaro/givaro-4.1.1.ebuild b/sci-libs/givaro/givaro-4.1.1.ebuild
40 new file mode 100644
41 index 00000000000..68976e9c194
42 --- /dev/null
43 +++ b/sci-libs/givaro/givaro-4.1.1.ebuild
44 @@ -0,0 +1,45 @@
45 +# Copyright 1999-2020 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +DESCRIPTION="C++ library for arithmetic and algebraic computations"
51 +HOMEPAGE="https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/"
52 +SRC_URI="https://github.com/linbox-team/givaro/releases/download/v${PV}/${P}.tar.gz"
53 +
54 +LICENSE="CeCILL-B"
55 +SLOT="0/9"
56 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
57 +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"
58 +RESTRICT="!test? ( test )"
59 +
60 +BDEPEND="doc? ( app-doc/doxygen[dot,latex] )"
61 +DEPEND="dev-libs/gmp:0[cxx]"
62 +RDEPEND="${DEPEND}"
63 +
64 +DOCS=( AUTHORS ChangeLog README.md )
65 +
66 +src_configure(){
67 + # Passing "--disable-doc" also accidentally enables building
68 + # the documentation, so we can't just $(use_enable doc) here.
69 + # https://github.com/linbox-team/givaro/issues/148
70 + econf \
71 + $(usex doc --enable-doc "" "" "") \
72 + --with-docdir="/usr/share/doc/${PF}/html" \
73 + $(use_enable static-libs static) \
74 + $(use_enable cpu_flags_x86_fma3 fma) \
75 + $(use_enable cpu_flags_x86_fma4 fma4) \
76 + $(use_enable cpu_flags_x86_sse sse) \
77 + $(use_enable cpu_flags_x86_sse2 sse2) \
78 + $(use_enable cpu_flags_x86_sse3 sse3) \
79 + $(use_enable cpu_flags_x86_ssse3 ssse3) \
80 + $(use_enable cpu_flags_x86_sse4_1 sse41) \
81 + $(use_enable cpu_flags_x86_sse4_2 sse42) \
82 + $(use_enable cpu_flags_x86_avx avx) \
83 + $(use_enable cpu_flags_x86_avx2 avx2)
84 +}
85 +
86 +src_install(){
87 + default
88 + find "${ED}" -name '*.la' -delete || die
89 +}
90
91 diff --git a/sci-libs/givaro/metadata.xml b/sci-libs/givaro/metadata.xml
92 new file mode 100644
93 index 00000000000..e1c0c3cbd9c
94 --- /dev/null
95 +++ b/sci-libs/givaro/metadata.xml
96 @@ -0,0 +1,24 @@
97 +<?xml version="1.0" encoding="UTF-8"?>
98 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<pkgmetadata>
100 + <maintainer type="person">
101 + <email>mjo@g.o</email>
102 + </maintainer>
103 + <!--
104 + mjo: François maintained this package in the sage-on-gentoo overlay
105 + long before I moved it into ::gentoo. You don't need an ACK from me
106 + to merge his changes.
107 + -->
108 + <maintainer type="person">
109 + <email>frp.bissey@×××××.com</email>
110 + <name>François Bissey</name>
111 + </maintainer>
112 + <maintainer type="project">
113 + <email>proxy-maint@g.o</email>
114 + <name>Proxy Maintainers</name>
115 + </maintainer>
116 +
117 + <upstream>
118 + <remote-id type="github">linbox-team/givaro</remote-id>
119 + </upstream>
120 +</pkgmetadata>