From: Calandracas606 <Calandracas606@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: sleef-3.6.1
Date: Fri, 05 Jul 2024 15:33:45 +0200 [thread overview]
Message-ID: <20240705133345.4EB3822110@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51114@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages sleef
https://github.com/void-linux/void-packages/pull/51114
New package: sleef-3.6.1
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl
- i686
- aarch64 (cross)
- aarch64-musl (cross)
- armv7l (cross)
- armv7l-musl (cross)
- armv6l (cross)
- armv6l-musl (cross)
A patch file from https://github.com/void-linux/void-packages/pull/51114.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sleef-51114.patch --]
[-- Type: text/x-diff, Size: 2557 bytes --]
From 5b3ea83242815487f7595a88a3ff3c79213f8bd0 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Thu, 4 Jul 2024 15:33:03 -0400
Subject: [PATCH] New package: sleef-3.6.1
---
srcpkgs/sleef-devel | 1 +
srcpkgs/sleef/template | 64 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 120000 srcpkgs/sleef-devel
create mode 100644 srcpkgs/sleef/template
diff --git a/srcpkgs/sleef-devel b/srcpkgs/sleef-devel
new file mode 120000
index 00000000000000..68d17146aae468
--- /dev/null
+++ b/srcpkgs/sleef-devel
@@ -0,0 +1 @@
+sleef
\ No newline at end of file
diff --git a/srcpkgs/sleef/template b/srcpkgs/sleef/template
new file mode 100644
index 00000000000000..242b652a790e85
--- /dev/null
+++ b/srcpkgs/sleef/template
@@ -0,0 +1,64 @@
+# Template file for 'sleef'
+pkgname=sleef
+version=3.6.1
+revision=1
+build_style=cmake
+configure_args="-DSLEEF_BUILD_INLINE_HEADERS=YES
+ -DBUILD_SHARED_LIBS=YES
+ -DSLEEF_BUILD_QUAD=YES
+ -DSLEEF_BUILD_DFT=YES"
+makedepends="libgomp-devel libquadmath-devel openssl-devel gmp-devel fftw-devel mpfr-devel"
+short_desc="SIMD Library for Evaluating Elementary Functions"
+maintainer="Daniel Martinez <danielmartinez@cock.li>"
+license="BSL-1.0"
+homepage="https://sleef.org/"
+changelog="https://raw.githubusercontent.com/shibatch/sleef/master/CHANGELOG.md"
+distfiles="https://github.com/shibatch/sleef/archive/refs/tags/${version}.tar.gz"
+checksum=441dcf98c0f22e5d5e553d007f3b93e89eb58e4c66e340da8af5e7f67d1dc24c
+
+if [ "$CROSS_BUILD" ]; then
+ configure_args+=" -DNATIVE_BUILD_DIR=${XBPS_BUILDDIR}/${pkgname}-${version}/native"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|armv*) configure_args+=" -DSLEEF_BUILD_TESTS=NO";;
+esac
+
+pre_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ cmake -S . \
+ -DCMAKE_C_COMPILER="$CC_FOR_BUILD" \
+ -DCMAKE_CXX_COMPILER="$CXX_FOR_BUILD" \
+ -DCMAKE_C_FLAGS="$BUILD_CFLAGS" \
+ -DCMAKE_CXX_FLAGS="$BUILD_CXXFLAGS" \
+ $configure_args \
+ -G Ninja \
+ -B native
+ fi
+}
+
+pre_build() {
+ if [ "$CROSS_BUILD" ]; then
+ cmake --build native ${makejobs}
+ fi
+}
+
+do_check() {
+ cd build
+ _ctest_exclude="iut|iut.*purecfma_scalar"
+ if [ "$XBPS_TARGET_LIBC" = musl ]; then
+ _ctest_exclude+="|mveclibtest.*"
+ fi
+ ctest ${makejobs} -E '${_ctest_exclude}'
+}
+
+sleef-devel_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/cmake
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.so"
+ }
+}
next prev parent reply other threads:[~2024-07-05 13:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 19:35 [PR PATCH] " Calandracas606
2024-07-04 19:55 ` [PR PATCH] [Updated] " Calandracas606
2024-07-05 13:33 ` Calandracas606 [this message]
2024-07-05 13:34 ` Calandracas606
2024-07-05 13:41 ` Calandracas606
2024-10-04 1:59 ` 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=20240705133345.4EB3822110@inbox.vuxu.org \
--to=calandracas606@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).