1 |
commit: 59700e9c437870c74b498e5f214571c4be5ea3a6 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 24 00:51:27 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 24 13:05:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59700e9c |
7 |
|
8 |
sci-mathematics/primecount: new fast CLI/library to count primes. |
9 |
|
10 |
This is a new dependency of SageMath. The SageMath ./configure script |
11 |
will detect primecount on the system and use it (rather than |
12 |
rebuilding a bundled copy) if installed. Based on the sage-on-gentoo |
13 |
ebuild contributed by François Bissey. |
14 |
|
15 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
16 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
17 |
|
18 |
sci-mathematics/primecount/Manifest | 1 + |
19 |
sci-mathematics/primecount/metadata.xml | 24 ++++++++++++ |
20 |
sci-mathematics/primecount/primecount-7.2.ebuild | 48 ++++++++++++++++++++++++ |
21 |
3 files changed, 73 insertions(+) |
22 |
|
23 |
diff --git a/sci-mathematics/primecount/Manifest b/sci-mathematics/primecount/Manifest |
24 |
new file mode 100644 |
25 |
index 000000000000..f723765658e3 |
26 |
--- /dev/null |
27 |
+++ b/sci-mathematics/primecount/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST primecount-7.2.tar.gz 340799 BLAKE2B 5ce3661e322be363e2fe79de1dd134b5c3009269cbb10d36dc69bee4c23c9f41d2117b3ed7aa4c5f852e494832573c84a8d9c37cbe92cf80a5024bdec9b22c69 SHA512 df14929012434eddfab94410ba9165642094327f8abd139a6a1ba87e508bba56df91cb0dc9411e873e90a9aa4aa3ba4007396c930d593f5954be8c715fa26e84 |
30 |
|
31 |
diff --git a/sci-mathematics/primecount/metadata.xml b/sci-mathematics/primecount/metadata.xml |
32 |
new file mode 100644 |
33 |
index 000000000000..524d8bf2ac66 |
34 |
--- /dev/null |
35 |
+++ b/sci-mathematics/primecount/metadata.xml |
36 |
@@ -0,0 +1,24 @@ |
37 |
+<?xml version="1.0" encoding="UTF-8"?> |
38 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
39 |
+<pkgmetadata> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>mjo@g.o</email> |
42 |
+ </maintainer> |
43 |
+ |
44 |
+ <maintainer type="person" proxied="yes"> |
45 |
+ <email>frp.bissey@×××××.com</email> |
46 |
+ <name>François Bissey</name> |
47 |
+ </maintainer> |
48 |
+ <maintainer type="project" proxied="proxy"> |
49 |
+ <email>proxy-maint@g.o</email> |
50 |
+ <name>Proxy Maintainers</name> |
51 |
+ </maintainer> |
52 |
+ |
53 |
+ <use> |
54 |
+ <flag name="executable">Build the primecount CLI executable</flag> |
55 |
+ </use> |
56 |
+ |
57 |
+ <upstream> |
58 |
+ <remote-id type="github">kimwalisch/primecount</remote-id> |
59 |
+ </upstream> |
60 |
+</pkgmetadata> |
61 |
|
62 |
diff --git a/sci-mathematics/primecount/primecount-7.2.ebuild b/sci-mathematics/primecount/primecount-7.2.ebuild |
63 |
new file mode 100644 |
64 |
index 000000000000..1e394a48459e |
65 |
--- /dev/null |
66 |
+++ b/sci-mathematics/primecount/primecount-7.2.ebuild |
67 |
@@ -0,0 +1,48 @@ |
68 |
+# Copyright 1999-2021 Gentoo Authors |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=8 |
72 |
+ |
73 |
+inherit cmake toolchain-funcs |
74 |
+ |
75 |
+DESCRIPTION="Highly optimized CLI and library to count primes" |
76 |
+HOMEPAGE="https://github.com/kimwalisch/primecount" |
77 |
+SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+LICENSE="BSD-2" |
79 |
+SLOT="0/7" # subslot is first component of libprimecount.so version |
80 |
+KEYWORDS="~amd64" |
81 |
+IUSE="+executable openmp test" |
82 |
+RESTRICT="!test? ( test )" |
83 |
+ |
84 |
+DEPEND="sci-mathematics/primesieve:=" |
85 |
+RDEPEND="${DEPEND}" |
86 |
+ |
87 |
+DOCS=( |
88 |
+ ChangeLog |
89 |
+ README.md |
90 |
+ doc/Credits.md |
91 |
+ doc/Easy-Special-Leaves.md |
92 |
+ doc/Hard-Special-Leaves.md |
93 |
+ doc/Records.md |
94 |
+ doc/References.md |
95 |
+ doc/alpha-factor-dr.pdf |
96 |
+ doc/alpha-factor-gourdon.pdf |
97 |
+ doc/alpha-factor-lmo.pdf |
98 |
+ doc/libprimecount.md |
99 |
+) |
100 |
+ |
101 |
+pkg_pretend() { |
102 |
+ use openmp && tc-check-openmp |
103 |
+} |
104 |
+ |
105 |
+src_configure() { |
106 |
+ local mycmakeargs=( |
107 |
+ -DBUILD_LIBPRIMESIEVE="OFF" |
108 |
+ -DBUILD_PRIMECOUNT="$(usex executable)" |
109 |
+ -DBUILD_STATIC_LIBS="OFF" |
110 |
+ -DBUILD_TESTS="$(usex test)" |
111 |
+ -DWITH_OPENMP="$(usex openmp)" |
112 |
+ ) |
113 |
+ |
114 |
+ cmake_src_configure |
115 |
+} |