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/flintqs/
Date: Mon, 30 Mar 2020 12:48:42
Message-Id: 1585572372.1e6e5e555c6c6436d130ecab77dbda167ef8f897.mjo@gentoo
1 commit: 1e6e5e555c6c6436d130ecab77dbda167ef8f897
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 27 19:38:30 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 12:46:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e6e5e55
7
8 sci-mathematics/flintqs: new package for quadratic sieve factoring.
9
10 A straightforward import of the ebuild that François Bissey has
11 been maintaining in the sage-on-gentoo overlay. I added a test
12 suite that factors a large composite number based on the doctests
13 for qsieve() in SageMath.
14
15 Closes: https://bugs.gentoo.org/715090
16 Package-Manager: Portage-2.3.89, Repoman-2.3.20
17 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
18
19 sci-mathematics/flintqs/Manifest | 1 +
20 sci-mathematics/flintqs/flintqs-1.0.ebuild | 39 ++++++++++++++++++++++++++++++
21 sci-mathematics/flintqs/metadata.xml | 24 ++++++++++++++++++
22 3 files changed, 64 insertions(+)
23
24 diff --git a/sci-mathematics/flintqs/Manifest b/sci-mathematics/flintqs/Manifest
25 new file mode 100644
26 index 00000000000..ca567617150
27 --- /dev/null
28 +++ b/sci-mathematics/flintqs/Manifest
29 @@ -0,0 +1 @@
30 +DIST flintqs-1.0.tar.gz 151535 BLAKE2B c05761767af65ed5e5c42e75640c0736a26de76126907a91914083791ce0fa3659fb6f9fcdddb0b7aaaf2200010d826a18e7fcbdad0ffc6f861d4bcd941caabb SHA512 8391bb13bcc91f4ea68c972f0f6eaf9aa37bedc4c8694d039a21fd5153b203d561364ae545478d34013001354c4e8a013b2e5a5cb947b6e7f453c6f0f392f8be
31
32 diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
33 new file mode 100644
34 index 00000000000..676e751c8bd
35 --- /dev/null
36 +++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
37 @@ -0,0 +1,39 @@
38 +# Copyright 1999-2020 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +DESCRIPTION="Multi-polynomial quadratic sieve for integer factorization"
44 +HOMEPAGE="https://github.com/sagemath/FlintQS"
45 +# The github tarball is missing the autotools stuff.
46 +SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-2+"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
51 +IUSE=""
52 +
53 +DEPEND="dev-libs/gmp:="
54 +RDEPEND="${DEPEND}"
55 +
56 +src_test() {
57 + # Factor,
58 + #
59 + # 1000000000000000005490000000000000001989
60 + #
61 + # to get
62 + #
63 + # 10000000000000000051 * 100000000000000000039.
64 + #
65 + # The sed command deletes all lines up to the pattern match.
66 + #
67 + ACTUAL=$(echo 1000000000000000005490000000000000001989 | \
68 + QuadraticSieve | \
69 + sed '0,/FACTORS:/d' | \
70 + sort --numeric | \
71 + uniq |
72 + tr '\n' ' ')
73 + EXPECTED="10000000000000000051 100000000000000000039 "
74 +
75 + [[ "${ACTUAL}" == "${EXPECTED}" ]] || die "test factorization failed"
76 +}
77
78 diff --git a/sci-mathematics/flintqs/metadata.xml b/sci-mathematics/flintqs/metadata.xml
79 new file mode 100644
80 index 00000000000..5fa38751016
81 --- /dev/null
82 +++ b/sci-mathematics/flintqs/metadata.xml
83 @@ -0,0 +1,24 @@
84 +<?xml version="1.0" encoding="UTF-8"?>
85 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
86 +<pkgmetadata>
87 + <maintainer type="person">
88 + <email>mjo@g.o</email>
89 + </maintainer>
90 + <!--
91 + mjo: François maintained this package in the sage-on-gentoo overlay
92 + long before I moved it into ::gentoo. You don't need an ACK from me
93 + to merge his changes.
94 + -->
95 + <maintainer type="person">
96 + <email>frp.bissey@×××××.com</email>
97 + <name>François Bissey</name>
98 + </maintainer>
99 + <maintainer type="project">
100 + <email>proxy-maint@g.o</email>
101 + <name>Proxy Maintainers</name>
102 + </maintainer>
103 +
104 + <upstream>
105 + <remote-id type="github">sagemath/FlintQS</remote-id>
106 + </upstream>
107 +</pkgmetadata>