Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: sleef-3.6.1
@ 2024-07-04 19:35 Calandracas606
  2024-07-04 19:55 ` [PR PATCH] [Updated] " Calandracas606
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Calandracas606 @ 2024-07-04 19:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]

There is a new 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: 2284 bytes --]

From 251e66045c3d67e0f221ec8d7884e45c838fa469 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 | 51 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 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..2c66a93157d83c
--- /dev/null
+++ b/srcpkgs/sleef/template
@@ -0,0 +1,51 @@
+# 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"
+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" \
+			-G Ninja \
+			-B native
+	fi
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		cmake --build native ${makejobs}
+	fi
+}
+
+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"
+	}
+}

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

* Re: [PR PATCH] [Updated] New package: sleef-3.6.1
  2024-07-04 19:35 [PR PATCH] New package: sleef-3.6.1 Calandracas606
@ 2024-07-04 19:55 ` Calandracas606
  2024-07-05 13:33 ` Calandracas606
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Calandracas606 @ 2024-07-04 19:55 UTC (permalink / raw)
  To: ml

[-- 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: 2357 bytes --]

From a92af3623579bc050d394139845e68f5d0436502 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 | 55 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 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..a49135289009fb
--- /dev/null
+++ b/srcpkgs/sleef/template
@@ -0,0 +1,55 @@
+# 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
+}
+
+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"
+	}
+}

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

* Re: [PR PATCH] [Updated] New package: sleef-3.6.1
  2024-07-04 19:35 [PR PATCH] New package: sleef-3.6.1 Calandracas606
  2024-07-04 19:55 ` [PR PATCH] [Updated] " Calandracas606
@ 2024-07-05 13:33 ` Calandracas606
  2024-07-05 13:34 ` Calandracas606
  2024-07-05 13:41 ` Calandracas606
  3 siblings, 0 replies; 5+ messages in thread
From: Calandracas606 @ 2024-07-05 13:33 UTC (permalink / raw)
  To: ml

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

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

* Re: [PR PATCH] [Updated] New package: sleef-3.6.1
  2024-07-04 19:35 [PR PATCH] New package: sleef-3.6.1 Calandracas606
  2024-07-04 19:55 ` [PR PATCH] [Updated] " Calandracas606
  2024-07-05 13:33 ` Calandracas606
@ 2024-07-05 13:34 ` Calandracas606
  2024-07-05 13:41 ` Calandracas606
  3 siblings, 0 replies; 5+ messages in thread
From: Calandracas606 @ 2024-07-05 13:34 UTC (permalink / raw)
  To: ml

[-- 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: 2641 bytes --]

From e6119a702dcbe4da70dff0703cde9f00c5949cbb 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 | 68 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 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..864c88c5439a57
--- /dev/null
+++ b/srcpkgs/sleef/template
@@ -0,0 +1,68 @@
+# 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 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*|x86_64*|ppc64le*) makedepends+=" libquadmath-devel";;
+esac
+
+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"
+	}
+}

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

* Re: [PR PATCH] [Updated] New package: sleef-3.6.1
  2024-07-04 19:35 [PR PATCH] New package: sleef-3.6.1 Calandracas606
                   ` (2 preceding siblings ...)
  2024-07-05 13:34 ` Calandracas606
@ 2024-07-05 13:41 ` Calandracas606
  3 siblings, 0 replies; 5+ messages in thread
From: Calandracas606 @ 2024-07-05 13:41 UTC (permalink / raw)
  To: ml

[-- 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: 2802 bytes --]

From 56c67616d3a9bdb3299f2139353a16521194c374 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 | 72 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 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..046e62301b006d
--- /dev/null
+++ b/srcpkgs/sleef/template
@@ -0,0 +1,72 @@
+# 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 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*|x86_64*|ppc64le*) makedepends+=" libquadmath-devel";;
+esac
+
+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$"
+	_ctest_exclude+="|iutpurecfma_scalar"
+	_ctest_exclude+="|iutypurecfma_scalar"
+	_ctest_exclude+="|iutipurecfma_scalar"
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# tests depend on libmvec, which is not available on musl
+		_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"
+	}
+}

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

end of thread, other threads:[~2024-07-05 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-04 19:35 [PR PATCH] New package: sleef-3.6.1 Calandracas606
2024-07-04 19:55 ` [PR PATCH] [Updated] " Calandracas606
2024-07-05 13:33 ` Calandracas606
2024-07-05 13:34 ` Calandracas606
2024-07-05 13:41 ` Calandracas606

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).