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-mathematics/eclib/
Date: Mon, 30 Dec 2019 14:36:01
Message-Id: 1577716439.1a3933ff7eed77e5b91f3dc47cc1164316d09984.mjo@gentoo
1 commit: 1a3933ff7eed77e5b91f3dc47cc1164316d09984
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 14:09:52 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 14:33:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a3933ff
7
8 sci-mathematics/eclib: new package for rational elliptic curves.
9
10 This commit imports eclib-20190909 from the sage-on-gentoo overlay
11 where François Bissey has been maintaining it for use with SageMath.
12 I've made a few changes on top of the overlay version:
13
14 * Enabled the test suite (it passes for me).
15 * Put the "--disable-allprogs" configure flag behind USE=minimal.
16 * Put the "--with-boost" configure flag behind USE=boost.
17 * Inlined the SRC_URI which was using a custom thirdpartymirror.
18 * Dropped obsolete autotools.eclass and RESTRICT=mirror.
19
20 The SageMath build system can detect eclib on the system now, so having
21 this package installed will save users time when rebuilding SageMath.
22
23 Closes: https://bugs.gentoo.org/704096
24 Package-Manager: Portage-2.3.79, Repoman-2.3.16
25 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
26
27 sci-mathematics/eclib/Manifest | 1 +
28 sci-mathematics/eclib/eclib-20190909.ebuild | 37 +++++++++++++++++++++++++++
29 sci-mathematics/eclib/metadata.xml | 39 +++++++++++++++++++++++++++++
30 3 files changed, 77 insertions(+)
31
32 diff --git a/sci-mathematics/eclib/Manifest b/sci-mathematics/eclib/Manifest
33 new file mode 100644
34 index 00000000000..176b940896e
35 --- /dev/null
36 +++ b/sci-mathematics/eclib/Manifest
37 @@ -0,0 +1 @@
38 +DIST eclib-20190909.tar.bz2 914900 BLAKE2B df57972792f96e65b25db5a2ab1063d5a8f1ad05edbed77d9ca2632ddfb4af2cb8586e572155beec09cc0c03472300d1e6fcbdda3527c36e9106006239f50600 SHA512 df829b10c353f528f2040b55d6198e3a48eba179b9a80e71794e4c6d46ee9bb13b3eccec15c7d286ec5d8252e6ba91157c2a08ac4e2da86969a4158450a41960
39
40 diff --git a/sci-mathematics/eclib/eclib-20190909.ebuild b/sci-mathematics/eclib/eclib-20190909.ebuild
41 new file mode 100644
42 index 00000000000..e30f083b999
43 --- /dev/null
44 +++ b/sci-mathematics/eclib/eclib-20190909.ebuild
45 @@ -0,0 +1,37 @@
46 +# Copyright 1999-2019 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=7
50 +
51 +DESCRIPTION="Programs for elliptic curves defined over the rational numbers"
52 +HOMEPAGE="https://www.warwick.ac.uk/~masgaj/mwrank/index.html"
53 +
54 +# We use the SageMath tarball instead of the one from github because
55 +# the github releases don't contain the "make dist" stuff and we would
56 +# need autotools.eclass to generate it.
57 +SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.bz2"
58 +
59 +LICENSE="GPL-2"
60 +SLOT="0/6"
61 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
62 +IUSE="boost flint minimal static-libs test"
63 +RESTRICT="!test? ( test )"
64 +
65 +RDEPEND="sci-mathematics/pari:=
66 + dev-libs/ntl:=
67 + boost? ( dev-libs/boost:= )
68 + flint? ( sci-mathematics/flint:= )"
69 +DEPEND="${RDEPEND}"
70 +
71 +src_configure() {
72 + econf \
73 + $(usex minimal --disable-allprogs "" "" "") \
74 + $(use_with boost) \
75 + $(use_with flint) \
76 + $(use_enable static-libs static)
77 +}
78 +
79 +src_install(){
80 + default
81 + find "${ED}" -name '*.la' -delete || die
82 +}
83
84 diff --git a/sci-mathematics/eclib/metadata.xml b/sci-mathematics/eclib/metadata.xml
85 new file mode 100644
86 index 00000000000..9561ac3f61e
87 --- /dev/null
88 +++ b/sci-mathematics/eclib/metadata.xml
89 @@ -0,0 +1,39 @@
90 +<?xml version="1.0" encoding="UTF-8"?>
91 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
92 +<pkgmetadata>
93 + <maintainer type="person">
94 + <email>mjo@g.o</email>
95 + </maintainer>
96 + <!--
97 + mjo: François maintained this package in the sage-on-gentoo overlay
98 + long before I moved it into ::gentoo. You don't need an ACK from me
99 + to merge his changes.
100 + -->
101 + <maintainer type="person">
102 + <email>frp.bissey@×××××.com</email>
103 + <name>François Bissey</name>
104 + </maintainer>
105 + <maintainer type="project">
106 + <email>proxy-maint@g.o</email>
107 + <name>Proxy Maintainers</name>
108 + </maintainer>
109 +
110 + <use>
111 + <flag name="boost">
112 + Add parallel capabilities using <pkg>dev-libs/boost</pkg>.
113 + </flag>
114 +
115 + <flag name="flint">
116 + Enable the use of <pkg>sci-mathematics/flint</pkg> for certain
117 + operations.
118 + </flag>
119 +
120 + <flag name="minimal">
121 + Build only the "mwrank" program.
122 + </flag>
123 + </use>
124 +
125 + <upstream>
126 + <remote-id type="github">JohnCremona/eclib</remote-id>
127 + </upstream>
128 +</pkgmetadata>