* [PR PATCH] New package: primesieve + python bindings
@ 2021-06-05 11:15 FollieHiyuki
2021-06-05 11:33 ` [PR PATCH] [Updated] " FollieHiyuki
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: FollieHiyuki @ 2021-06-05 11:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]
There is a new pull request by FollieHiyuki against master on the void-packages repository
https://github.com/FollieHiyuki/void-packages primesieve
https://github.com/void-linux/void-packages/pull/31304
New package: primesieve + python bindings
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
I don't know why the python tests fail. Otherwise the packages work.
A patch file from https://github.com/void-linux/void-packages/pull/31304.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-primesieve-31304.patch --]
[-- Type: text/x-diff, Size: 3970 bytes --]
From 6e2553ef3f0426edff906b30df6da0cf57482ce7 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sat, 5 Jun 2021 13:39:57 +0300
Subject: [PATCH 1/2] New package: primesieve-7.6
---
common/shlibs | 1 +
srcpkgs/libprimesieve | 1 +
srcpkgs/primesieve-devel | 1 +
srcpkgs/primesieve/template | 36 ++++++++++++++++++++++++++++++++++++
4 files changed, 39 insertions(+)
create mode 120000 srcpkgs/libprimesieve
create mode 120000 srcpkgs/primesieve-devel
create mode 100644 srcpkgs/primesieve/template
diff --git a/common/shlibs b/common/shlibs
index ba589537b1f3..26b416d7168d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3963,6 +3963,7 @@ libsamba-hostconfig.so.0 samba-libs-4.13.2_1
libsamba-passdb.so.0 samba-libs-4.13.2_1
libsamba-util.so.0 samba-libs-4.13.2_1
libsamdb.so.0 samba-libs-4.13.2_1
+libprimesieve.so.9 libprimesieve-7.6_1
libsmbclient.so.0 samba-libs-4.13.2_1
libsmbconf.so.0 samba-libs-4.13.2_1
libsmbldap.so.2 samba-libs-4.13.2_1
diff --git a/srcpkgs/libprimesieve b/srcpkgs/libprimesieve
new file mode 120000
index 000000000000..f4ffe288e787
--- /dev/null
+++ b/srcpkgs/libprimesieve
@@ -0,0 +1 @@
+primesieve
\ No newline at end of file
diff --git a/srcpkgs/primesieve-devel b/srcpkgs/primesieve-devel
new file mode 120000
index 000000000000..f4ffe288e787
--- /dev/null
+++ b/srcpkgs/primesieve-devel
@@ -0,0 +1 @@
+primesieve
\ No newline at end of file
diff --git a/srcpkgs/primesieve/template b/srcpkgs/primesieve/template
new file mode 100644
index 000000000000..9f52ae6a4b6e
--- /dev/null
+++ b/srcpkgs/primesieve/template
@@ -0,0 +1,36 @@
+# Template file for 'primesieve'
+pkgname=primesieve
+version=7.6
+revision=1
+build_style=cmake
+configure_args="-DBUILD_MANPAGE=ON -DBUILD_TESTS=ON"
+hostmakedepends="asciidoc"
+short_desc="Fast prime number generator"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="BSD-2-Clause"
+homepage="https://github.com/kimwalisch/primesieve"
+distfiles="https://github.com/kimwalisch/primesieve/archive/refs/tags/v${version}.tar.gz"
+checksum=485669e8f9a6c74e528947d274df705f13caaf276d460d0f037b8dbc0c9c0a99
+
+post_install() {
+ vlicense COPYING
+}
+
+libprimesieve_package() {
+ short_desc+=" - runtime library"
+ pkg_install() {
+ vmove "/usr/lib/*.so.*"
+ }
+}
+
+primesieve-devel_package() {
+ short_desc+=" - development files"
+ depends="libprimesieve>=${version}_${revision}"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/lib/cmake
+ vmove "usr/lib/*.so"
+ vmove "usr/lib/*.a"
+ }
+}
From b96e1c5f54f926c4f04ad861ff037681bc142e15 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sat, 5 Jun 2021 14:13:44 +0300
Subject: [PATCH 2/2] New package: python3-primesieve-2.3.0
---
srcpkgs/python3-primesieve/template | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 srcpkgs/python3-primesieve/template
diff --git a/srcpkgs/python3-primesieve/template b/srcpkgs/python3-primesieve/template
new file mode 100644
index 000000000000..20660a5ec67a
--- /dev/null
+++ b/srcpkgs/python3-primesieve/template
@@ -0,0 +1,25 @@
+# Template file for 'python3-primesieve'
+pkgname=python3-primesieve
+version=2.3.0
+revision=1
+wrksrc="primesieve-python-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-Cython"
+makedepends="python3-devel primesieve-devel"
+depends="python3"
+checkdepends="python3-pytest python3-numpy"
+short_desc="Python3 bindings for primesieve C++ library"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="MIT"
+homepage="https://github.com/kimwalisch/primesieve-python"
+distfiles="https://github.com/kimwalisch/primesieve-python/archive/refs/tags/v${version}.tar.gz"
+checksum=8f27982be32795522ddd1ca30961233744eae858b6501bcf89ae7e566245085d
+
+do_check() {
+ cd build/lib*
+ python3 -m pytest
+}
+
+post_install() {
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] New package: primesieve + python bindings
2021-06-05 11:15 [PR PATCH] New package: primesieve + python bindings FollieHiyuki
@ 2021-06-05 11:33 ` FollieHiyuki
2022-05-21 2:00 ` github-actions
2022-06-04 2:09 ` [PR PATCH] [Closed]: " github-actions
2 siblings, 0 replies; 4+ messages in thread
From: FollieHiyuki @ 2021-06-05 11:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]
There is an updated pull request by FollieHiyuki against master on the void-packages repository
https://github.com/FollieHiyuki/void-packages primesieve
https://github.com/void-linux/void-packages/pull/31304
New package: primesieve + python bindings
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
I don't know why the python tests fail. Otherwise the packages work.
A patch file from https://github.com/void-linux/void-packages/pull/31304.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-primesieve-31304.patch --]
[-- Type: text/x-diff, Size: 4071 bytes --]
From 15553704853e0752f2ab16650b59d8888ce54a24 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sat, 5 Jun 2021 13:39:57 +0300
Subject: [PATCH 1/2] New package: primesieve-7.6
---
common/shlibs | 1 +
srcpkgs/libprimesieve | 1 +
srcpkgs/primesieve-devel | 1 +
srcpkgs/primesieve/template | 41 +++++++++++++++++++++++++++++++++++++
4 files changed, 44 insertions(+)
create mode 120000 srcpkgs/libprimesieve
create mode 120000 srcpkgs/primesieve-devel
create mode 100644 srcpkgs/primesieve/template
diff --git a/common/shlibs b/common/shlibs
index ba589537b1f3..26b416d7168d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3963,6 +3963,7 @@ libsamba-hostconfig.so.0 samba-libs-4.13.2_1
libsamba-passdb.so.0 samba-libs-4.13.2_1
libsamba-util.so.0 samba-libs-4.13.2_1
libsamdb.so.0 samba-libs-4.13.2_1
+libprimesieve.so.9 libprimesieve-7.6_1
libsmbclient.so.0 samba-libs-4.13.2_1
libsmbconf.so.0 samba-libs-4.13.2_1
libsmbldap.so.2 samba-libs-4.13.2_1
diff --git a/srcpkgs/libprimesieve b/srcpkgs/libprimesieve
new file mode 120000
index 000000000000..f4ffe288e787
--- /dev/null
+++ b/srcpkgs/libprimesieve
@@ -0,0 +1 @@
+primesieve
\ No newline at end of file
diff --git a/srcpkgs/primesieve-devel b/srcpkgs/primesieve-devel
new file mode 120000
index 000000000000..f4ffe288e787
--- /dev/null
+++ b/srcpkgs/primesieve-devel
@@ -0,0 +1 @@
+primesieve
\ No newline at end of file
diff --git a/srcpkgs/primesieve/template b/srcpkgs/primesieve/template
new file mode 100644
index 000000000000..37aba6cd9212
--- /dev/null
+++ b/srcpkgs/primesieve/template
@@ -0,0 +1,41 @@
+# Template file for 'primesieve'
+pkgname=primesieve
+version=7.6
+revision=1
+build_style=cmake
+configure_args="-DBUILD_MANPAGE=ON -DBUILD_TESTS=ON"
+hostmakedepends="asciidoc"
+short_desc="Fast prime number generator"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="BSD-2-Clause"
+homepage="https://github.com/kimwalisch/primesieve"
+distfiles="https://github.com/kimwalisch/primesieve/archive/refs/tags/v${version}.tar.gz"
+checksum=485669e8f9a6c74e528947d274df705f13caaf276d460d0f037b8dbc0c9c0a99
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ CFLAGS="-latomic"
+fi
+
+post_install() {
+ vlicense COPYING
+}
+
+libprimesieve_package() {
+ short_desc+=" - runtime library"
+ pkg_install() {
+ vmove "/usr/lib/*.so.*"
+ }
+}
+
+primesieve-devel_package() {
+ short_desc+=" - development files"
+ depends="libprimesieve>=${version}_${revision}"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/lib/cmake
+ vmove "usr/lib/*.so"
+ vmove "usr/lib/*.a"
+ }
+}
From 88e3336111aa48b727187def3d61fbdcb4f0f65d Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Sat, 5 Jun 2021 14:13:44 +0300
Subject: [PATCH 2/2] New package: python3-primesieve-2.3.0
---
srcpkgs/python3-primesieve/template | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 srcpkgs/python3-primesieve/template
diff --git a/srcpkgs/python3-primesieve/template b/srcpkgs/python3-primesieve/template
new file mode 100644
index 000000000000..20660a5ec67a
--- /dev/null
+++ b/srcpkgs/python3-primesieve/template
@@ -0,0 +1,25 @@
+# Template file for 'python3-primesieve'
+pkgname=python3-primesieve
+version=2.3.0
+revision=1
+wrksrc="primesieve-python-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-Cython"
+makedepends="python3-devel primesieve-devel"
+depends="python3"
+checkdepends="python3-pytest python3-numpy"
+short_desc="Python3 bindings for primesieve C++ library"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="MIT"
+homepage="https://github.com/kimwalisch/primesieve-python"
+distfiles="https://github.com/kimwalisch/primesieve-python/archive/refs/tags/v${version}.tar.gz"
+checksum=8f27982be32795522ddd1ca30961233744eae858b6501bcf89ae7e566245085d
+
+do_check() {
+ cd build/lib*
+ python3 -m pytest
+}
+
+post_install() {
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: New package: primesieve + python bindings
2021-06-05 11:15 [PR PATCH] New package: primesieve + python bindings FollieHiyuki
2021-06-05 11:33 ` [PR PATCH] [Updated] " FollieHiyuki
@ 2022-05-21 2:00 ` github-actions
2022-06-04 2:09 ` [PR PATCH] [Closed]: " github-actions
2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-05-21 2:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/31304#issuecomment-1133500158
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Closed]: New package: primesieve + python bindings
2021-06-05 11:15 [PR PATCH] New package: primesieve + python bindings FollieHiyuki
2021-06-05 11:33 ` [PR PATCH] [Updated] " FollieHiyuki
2022-05-21 2:00 ` github-actions
@ 2022-06-04 2:09 ` github-actions
2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-06-04 2:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]
There's a closed pull request on the void-packages repository
New package: primesieve + python bindings
https://github.com/void-linux/void-packages/pull/31304
Description:
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
I don't know why the python tests fail. Otherwise the packages work.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-04 2:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 11:15 [PR PATCH] New package: primesieve + python bindings FollieHiyuki
2021-06-05 11:33 ` [PR PATCH] [Updated] " FollieHiyuki
2022-05-21 2:00 ` github-actions
2022-06-04 2:09 ` [PR PATCH] [Closed]: " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).