Github messages for voidlinux
 help / color / mirror / Atom feed
From: FollieHiyuki <FollieHiyuki@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: primesieve + python bindings
Date: Sat, 05 Jun 2021 13:33:45 +0200	[thread overview]
Message-ID: <20210605113345.Fssjj_dfl_8y1wJt_8eHJ79pWRREDpybl5RQgxsI3-4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31304@inbox.vuxu.org>

[-- 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
+}

  reply	other threads:[~2021-06-05 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-05 11:15 [PR PATCH] " FollieHiyuki
2021-06-05 11:33 ` FollieHiyuki [this message]
2022-05-21  2:00 ` github-actions
2022-06-04  2:09 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210605113345.Fssjj_dfl_8y1wJt_8eHJ79pWRREDpybl5RQgxsI3-4@z \
    --to=folliehiyuki@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).