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/m4ri/
Date: Thu, 02 Jan 2020 14:31:00
Message-Id: 1577974823.60bdaa57a2569f7b1a3167d17aa005b01d1450fa.mjo@gentoo
1 commit: 60bdaa57a2569f7b1a3167d17aa005b01d1450fa
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 1 20:46:18 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 14:20:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60bdaa57
7
8 sci-libs/m4ri: new package for dense matrix computations over F2.
9
10 This package was imported from the sage-on-gentoo overlay with only a
11 few changes:
12
13 * Updated from EAPI=6 to EAPI=7, and subsequently moved
14 virtual/pkgconfig to BDEPEND.
15 * Put the --enable-png flag behind USE=png.
16 * Enabled the test suite, which passes out-of-the-box for me.
17 * Update the HOMEPAGE to point to bitbucket; it was redirecting.
18 * Updated LICENSE to GPL-2+ from GPL-2 (based on file headers).
19
20 The SageMath package can detect and use the system copy of m4ri, which
21 means that this package should eliminate pointless rebuilds of m4ri
22 for users of SageMath on Gentoo.
23
24 Closes: https://bugs.gentoo.org/704500
25 Package-Manager: Portage-2.3.79, Repoman-2.3.16
26 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
27
28 sci-libs/m4ri/Manifest | 1 +
29 sci-libs/m4ri/m4ri-20140914.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
30 sci-libs/m4ri/metadata.xml | 33 +++++++++++++++++++++++
31 3 files changed, 88 insertions(+)
32
33 diff --git a/sci-libs/m4ri/Manifest b/sci-libs/m4ri/Manifest
34 new file mode 100644
35 index 00000000000..b9e9242c6b5
36 --- /dev/null
37 +++ b/sci-libs/m4ri/Manifest
38 @@ -0,0 +1 @@
39 +DIST m4ri-20140914.tar.gz 457978 BLAKE2B eadba6d1a751cb49cef25cc7726d87aa5746b23ad0a3b9bd274735a71da43ec4751fb655f91f3748f082369875508db365595f8443d77ae9645b3e4199d4f204 SHA512 efdd4ffa194d2d2b64a23a833420926613e74072ce62b2b06d768d157e134a615d88b93ed08d9f51f0fd14d686fd068523d1dc2c7cd9fb87108c96a4a11f4643
40
41 diff --git a/sci-libs/m4ri/m4ri-20140914.ebuild b/sci-libs/m4ri/m4ri-20140914.ebuild
42 new file mode 100644
43 index 00000000000..8fa18bf333d
44 --- /dev/null
45 +++ b/sci-libs/m4ri/m4ri-20140914.ebuild
46 @@ -0,0 +1,54 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit flag-o-matic toolchain-funcs
53 +
54 +DESCRIPTION="Method of four russian for inversion (M4RI)"
55 +HOMEPAGE="https://bitbucket.org/malb/m4ri"
56 +
57 +# We use the SageMath tarball instead of the one from bitbucket because
58 +# the bitbucket releases don't contain the "make dist" stuff and we
59 +# would need autotools.eclass to generate it.
60 +SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
61 +
62 +LICENSE="GPL-2+"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
65 +IUSE="debug openmp cpu_flags_x86_sse2 png static-libs test"
66 +RESTRICT="!test? ( test )"
67 +
68 +BDEPEND="virtual/pkgconfig"
69 +DEPEND="png? ( media-libs/libpng:= )"
70 +RDEPEND="${DEPEND}"
71 +
72 +# NEWS and ChangeLog are empty as of 2020-01-01, and README.md
73 +# didn't make it into the release tarball.
74 +DOCS=( AUTHORS )
75 +
76 +pkg_pretend() {
77 + if use openmp ; then
78 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
79 + fi
80 +}
81 +
82 +src_configure() {
83 + # when using openmp and -O0 the testsuite fails
84 + # https://github.com/cschwan/sage-on-gentoo/issues/475
85 + use openmp && replace-flags -O0 -O1
86 +
87 + # kiwifb: cachetune option is not available, because it kills (at
88 + # least my) X when I switch from yakuake to desktop
89 + econf \
90 + $(use_enable debug) \
91 + $(use_enable openmp) \
92 + $(use_enable png) \
93 + $(use_enable cpu_flags_x86_sse2 sse2) \
94 + $(use_enable static-libs static)
95 +}
96 +
97 +src_install(){
98 + default
99 + find "${ED}" -name '*.la' -delete || die
100 +}
101
102 diff --git a/sci-libs/m4ri/metadata.xml b/sci-libs/m4ri/metadata.xml
103 new file mode 100644
104 index 00000000000..9807bfb0055
105 --- /dev/null
106 +++ b/sci-libs/m4ri/metadata.xml
107 @@ -0,0 +1,33 @@
108 +<?xml version="1.0" encoding="UTF-8"?>
109 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
110 +<pkgmetadata>
111 + <maintainer type="person">
112 + <email>mjo@g.o</email>
113 + </maintainer>
114 + <!--
115 + mjo: François maintained this package in the sage-on-gentoo overlay
116 + long before I moved it into ::gentoo. You don't need an ACK from me
117 + to merge his changes.
118 + -->
119 + <maintainer type="person">
120 + <email>frp.bissey@×××××.com</email>
121 + <name>François Bissey</name>
122 + </maintainer>
123 + <maintainer type="project">
124 + <email>proxy-maint@g.o</email>
125 + <name>Proxy Maintainers</name>
126 + </maintainer>
127 +
128 + <longdescription>
129 + M4RI is a library for fast arithmetic with dense matrices over
130 + F2. The name M4RI comes from the first implemented algorithm: The
131 + "Method of the Four Russians" inversion algorithm published by
132 + Gregory Bard. This algorithm in turn is named after the 'Method of
133 + the Four Russians' multiplication algorithm which is probably
134 + better referred to as Kronrod's method.
135 + </longdescription>
136 +
137 + <upstream>
138 + <remote-id type="bitbucket">malb/m4ri</remote-id>
139 + </upstream>
140 +</pkgmetadata>