public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/
@ 2020-03-30 12:48 Michael Orlitzky
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2020-03-30 12:48 UTC (permalink / raw
  To: gentoo-commits

commit:     1e6e5e555c6c6436d130ecab77dbda167ef8f897
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 27 19:38:30 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Mar 30 12:46:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e6e5e55

sci-mathematics/flintqs: new package for quadratic sieve factoring.

A straightforward import of the ebuild that François Bissey has
been maintaining in the sage-on-gentoo overlay. I added a test
suite that factors a large composite number based on the doctests
for qsieve() in SageMath.

Closes: https://bugs.gentoo.org/715090
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/flintqs/Manifest           |  1 +
 sci-mathematics/flintqs/flintqs-1.0.ebuild | 39 ++++++++++++++++++++++++++++++
 sci-mathematics/flintqs/metadata.xml       | 24 ++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/sci-mathematics/flintqs/Manifest b/sci-mathematics/flintqs/Manifest
new file mode 100644
index 00000000000..ca567617150
--- /dev/null
+++ b/sci-mathematics/flintqs/Manifest
@@ -0,0 +1 @@
+DIST flintqs-1.0.tar.gz 151535 BLAKE2B c05761767af65ed5e5c42e75640c0736a26de76126907a91914083791ce0fa3659fb6f9fcdddb0b7aaaf2200010d826a18e7fcbdad0ffc6f861d4bcd941caabb SHA512 8391bb13bcc91f4ea68c972f0f6eaf9aa37bedc4c8694d039a21fd5153b203d561364ae545478d34013001354c4e8a013b2e5a5cb947b6e7f453c6f0f392f8be

diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
new file mode 100644
index 00000000000..676e751c8bd
--- /dev/null
+++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Multi-polynomial quadratic sieve for integer factorization"
+HOMEPAGE="https://github.com/sagemath/FlintQS"
+# The github tarball is missing the autotools stuff.
+SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+DEPEND="dev-libs/gmp:="
+RDEPEND="${DEPEND}"
+
+src_test() {
+	# Factor,
+	#
+	#   1000000000000000005490000000000000001989
+	#
+	# to get
+	#
+	#   10000000000000000051 * 100000000000000000039.
+	#
+	# The sed command deletes all lines up to the pattern match.
+	#
+	ACTUAL=$(echo 1000000000000000005490000000000000001989 | \
+				 QuadraticSieve | \
+				 sed '0,/FACTORS:/d' | \
+				 sort --numeric | \
+				 uniq |
+				 tr '\n' ' ')
+	EXPECTED="10000000000000000051 100000000000000000039 "
+
+	[[ "${ACTUAL}" == "${EXPECTED}" ]] || die "test factorization failed"
+}

diff --git a/sci-mathematics/flintqs/metadata.xml b/sci-mathematics/flintqs/metadata.xml
new file mode 100644
index 00000000000..5fa38751016
--- /dev/null
+++ b/sci-mathematics/flintqs/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>mjo@gentoo.org</email>
+  </maintainer>
+  <!--
+      mjo: François maintained this package in the sage-on-gentoo overlay
+      long before I moved it into ::gentoo. You don't need an ACK from me
+      to merge his changes.
+  -->
+  <maintainer type="person">
+    <email>frp.bissey@gmail.com</email>
+    <name>François Bissey</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
+
+  <upstream>
+    <remote-id type="github">sagemath/FlintQS</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/
@ 2020-04-18 11:55 Michael Orlitzky
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2020-04-18 11:55 UTC (permalink / raw
  To: gentoo-commits

commit:     19ae7cd2976370ceb11cad79dd39520b51499523
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 11:38:03 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Apr 18 11:38:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19ae7cd2

sci-mathematics/flintqs: fix the test suite.

I accidentally tested the installed version of QuadraticSieve
(which may not exist) instead of the one we just built. Thanks
to François Bissey who figured out what I did wrong.

Closes: https://bugs.gentoo.org/718006
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/flintqs/flintqs-1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
index 676e751c8bd..cf8353473ff 100644
--- a/sci-mathematics/flintqs/flintqs-1.0.ebuild
+++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
@@ -28,7 +28,7 @@ src_test() {
 	# The sed command deletes all lines up to the pattern match.
 	#
 	ACTUAL=$(echo 1000000000000000005490000000000000001989 | \
-				 QuadraticSieve | \
+				 "${S}"/src/QuadraticSieve | \
 				 sed '0,/FACTORS:/d' | \
 				 sort --numeric | \
 				 uniq |


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/
@ 2020-04-19 12:16 Agostino Sarubbo
  0 siblings, 0 replies; 5+ messages in thread
From: Agostino Sarubbo @ 2020-04-19 12:16 UTC (permalink / raw
  To: gentoo-commits

commit:     ef2d439f68954de5e293c68ff781b3cebb90bd64
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 12:16:08 2020 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 12:16:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef2d439f

sci-mathematics/flintqs: x86 stable wrt bug #717958

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 sci-mathematics/flintqs/flintqs-1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
index cf8353473ff..b394fb54baa 100644
--- a/sci-mathematics/flintqs/flintqs-1.0.ebuild
+++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
 IUSE=""
 
 DEPEND="dev-libs/gmp:="


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/
@ 2020-04-19 18:23 Agostino Sarubbo
  0 siblings, 0 replies; 5+ messages in thread
From: Agostino Sarubbo @ 2020-04-19 18:23 UTC (permalink / raw
  To: gentoo-commits

commit:     737b330ec6c19df21808b680e7586d98f46e959a
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 18:22:18 2020 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 18:22:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737b330e

sci-mathematics/flintqs: amd64 stable wrt bug #717958

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 sci-mathematics/flintqs/flintqs-1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
index b394fb54baa..5914bbbd502 100644
--- a/sci-mathematics/flintqs/flintqs-1.0.ebuild
+++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
 IUSE=""
 
 DEPEND="dev-libs/gmp:="


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/
@ 2021-01-06 15:19 Fabian Groffen
  0 siblings, 0 replies; 5+ messages in thread
From: Fabian Groffen @ 2021-01-06 15:19 UTC (permalink / raw
  To: gentoo-commits

commit:     5499d28cd78477b9b29258705ff0dbf4b55e10b3
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  6 15:18:16 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jan  6 15:19:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5499d28c

sci-mathematics/flintqs: drop x86-macos

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sci-mathematics/flintqs/flintqs-1.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/flintqs/flintqs-1.0.ebuild b/sci-mathematics/flintqs/flintqs-1.0.ebuild
index 5914bbbd502..97d6af6c68b 100644
--- a/sci-mathematics/flintqs/flintqs-1.0.ebuild
+++ b/sci-mathematics/flintqs/flintqs-1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -10,7 +10,7 @@ SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos"
 IUSE=""
 
 DEPEND="dev-libs/gmp:="


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-06 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 12:48 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flintqs/ Michael Orlitzky
  -- strict thread matches above, loose matches on Subject: below --
2020-04-18 11:55 Michael Orlitzky
2020-04-19 12:16 Agostino Sarubbo
2020-04-19 18:23 Agostino Sarubbo
2021-01-06 15:19 Fabian Groffen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox