1
0
forked from ports/contrib

[notify] boost: 1.73.0 -> 1.74.0 new dependency: python3, now bundles py3boost. Remove py3boost before upgrading boost

This commit is contained in:
Danny Rawlins 2020-08-16 20:19:11 +10:00
parent 2ca45c0ad5
commit eeef025a81
3 changed files with 514 additions and 406 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37NwjJvu3wTmeMx8VjLD6US2bbJ01mKycdlfnjIYa2uqffUZWoBFIxj8eOjhy7TOsP4+n3E0JvWEdH1RGWMU1As=
SHA256 (Pkgfile) = e86d7e6fd245ebf6a213777eafa4b7fc750bf7afb086c8280bbd4c100288709f
SHA256 (.footprint) = f27abc572170394dc217e9091088af4bc60e78f168e7f85c93d2067755b773a7
SHA256 (boost_1_73_0.tar.bz2) = 4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402
RWSagIOpLGJF3y1FUI7928RBJIeyvU0NxTVoCAhmpDMBh4H9k6JRggBVZgesOpojEBCbM4jlO5OaIAawzN4zTM/hQlyYlfIABQk=
SHA256 (Pkgfile) = 83ff85fe1a8b18000636fa9a3eee45634466595091051601825a28080e04a040
SHA256 (.footprint) = 95be50cc209b89fc7cbcde5fccf8492e69ddaf3553cfcacabfb3a1af7f6a4ea0
SHA256 (boost_1_74_0.tar.bz2) = 83bfc1507731a0906e387fc28b7ef5417d591429e51e788417fe9ff025e116b1

View File

@ -1,27 +1,42 @@
# Description: Free peer-reviewed portable C++ source libraries.
# URL: https://www.boost.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python
# Depends on: python python3
# Optional: icu
name=boost
version=1.73.0
version=1.74.0
release=1
source=(https://dl.bintray.com/boostorg/release/$version/source/${name}_${version//./_}.tar.bz2)
build() {
cd ${name}_${version//./_}
local ICU=$([ -e /usr/bin/icu-config ] && echo --with-icu)
./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc $ICU
local config="
variant=release \
threading=multi \
runtime-link=shared \
link=shared,static \
debug-symbols=off \
toolset=gcc \
-j ${JOBS-1}"
./b2 stage \
variant=release \
threading=multi \
runtime-link=shared \
link=shared,static \
debug-symbols=off \
-j ${JOBS-1}
local ICU="$([ -e /usr/bin/icu-config ] && echo --with-icu)"
./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc $ICU --with-python=/usr/bin/python2
local pyver2="$(/usr/bin/python2 -c 'import sys; print("%s.%s" % sys.version_info[:2])')"
./b2 stage $config python="$pyver2"
./b2 install threading=multi link=shared
##
./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc $ICU --with-python=/usr/bin/python3 --with-libraries=python
local pyver3=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
./b2 clean
./b2 stage $config python="$pyver3"
./b2 install threading=multi link=shared
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
local pyver="$(/usr/bin/python3 -c 'import sys; print("%s%s" % sys.version_info[:2])')"
ln -s libboost_python$pyver.so $PKG/usr/lib/libboost_python3.so
}