From 793166639e53b5a496d49ad4736a0b51ced5625e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 19 Feb 2023 10:11:25 +0100 Subject: community/boost180-libs: readded ublas patch, flexible python version --- community/boost180-libs/PKGBUILD | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'community/boost180-libs') diff --git a/community/boost180-libs/PKGBUILD b/community/boost180-libs/PKGBUILD index 555a5a96..502a065e 100644 --- a/community/boost180-libs/PKGBUILD +++ b/community/boost180-libs/PKGBUILD @@ -1,10 +1,12 @@ -# Maintainer: iamawacko -# Contributor: Evangelos Foutras +options=(!lto) +options=(!lto) +options=(!lto) +# Maintainer: Evangelos Foutras # Contributor: Levente Polyak -# Contributor: BartÅ‚omiej Piotrowski +# Contributor: Bart?omiej Piotrowski # Contributor: Marius Knaust # Contributor: Ionut Biru -# Contributor: Stéphane Gaudreault +# Contributor: Stéphane Gaudreault # Contributor: kevin # Contributor: Giovanni Scafora # Contributor: Kritoke @@ -19,11 +21,22 @@ arch=(i486 i686 pentium4 'x86_64') url="https://www.boost.org/" license=('custom') makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd') -source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.gz) -sha256sums=('4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847') +source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.gz + $pkgname-ublas-c++20-iterator.patch::https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch) +sha256sums=('4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847' + 'aa38addb40d5f44b4a8472029b475e7e6aef1c460509eb7d8edf03491dc1b5ee') + +prepare() { + cd $_srcname + + # https://github.com/boostorg/ublas/pull/97 + patch -Np2 -i ../$pkgname-ublas-c++20-iterator.patch +} build() { local JOBS="$(sed 's/.*\(-j *[0-9]\+\).*/\1/' <<<$MAKEFLAGS)" + local python_version=$( + python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') pushd $_srcname/tools/build ./bootstrap.sh --cxxflags="$CXXFLAGS $LDFLAGS" @@ -49,7 +62,7 @@ build() { runtime-link=shared \ link=shared,static \ toolset=gcc \ - python=3.10 \ + python=$python_version \ cflags="$CPPFLAGS $CFLAGS -fPIC -O3 -ffat-lto-objects" \ cxxflags="$CPPFLAGS $CXXFLAGS -fPIC -O3 -ffat-lto-objects" \ linkflags="$LDFLAGS" \ -- cgit v1.2.3-70-g09d2