extra/boost to 1.83.0-2

This commit is contained in:
Kevin Mihelich 2023-09-03 19:50:33 +00:00
parent 7f6ac3345d
commit fe36e0734f

View file

@ -14,7 +14,7 @@
pkgname=('boost' 'boost-libs')
pkgver=1.83.0
pkgrel=1
pkgrel=2
_srcname=boost_${pkgver//./_}
pkgdesc="Free peer-reviewed portable C++ source libraries"
arch=('x86_64')
@ -23,9 +23,11 @@ license=('custom')
makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd')
source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.bz2
boost-1.81.0-phoenix-multiple-definitions.patch
$pkgname-support-fn.contains-f-where-f-is-a-function.patch::https://github.com/boostorg/function/commit/7ca2310b15e3.patch
$pkgname-ublas-c++20-iterator.patch::https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch)
sha256sums=('6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e'
'3ebf428ef6be090a7b56a233330375539ac429333b83708e28fe5db049cfecdb'
'1b5998ee8fb389dd6df55a3684d29ffa37246bc007e8e6712bf2be6c7f745036'
'aa38addb40d5f44b4a8472029b475e7e6aef1c460509eb7d8edf03491dc1b5ee')
prepare() {
@ -34,6 +36,11 @@ prepare() {
# https://github.com/boostorg/phoenix/issues/111
patch -Np1 -i ../boost-1.81.0-phoenix-multiple-definitions.patch
# https://github.com/boostorg/signals2/issues/68
# https://github.com/boostorg/function/issues/46
patch -Np2 -i <(sed 's#test/#asd/libs/function/test/#' \
../$pkgname-support-fn.contains-f-where-f-is-a-function.patch)
# https://github.com/boostorg/ublas/pull/97
patch -Np2 -i ../$pkgname-ublas-c++20-iterator.patch
}