Skip to content
Snippets Groups Projects
Verified Commit aecebd09 authored by alice's avatar alice
Browse files

main/boost1.77: unset as default boost

parent 75408f17
No related branches found
No related tags found
1 merge request!34355main/boost: upgrade to 1.78
......@@ -2,7 +2,7 @@
pkgname=boost1.77
pkgver=1.77.0
_pkgver="${pkgver//./_}"
pkgrel=6
pkgrel=7
pkgdesc="Free peer-reviewed portable C++ source libraries"
url="https://www.boost.org/"
arch="all"
......@@ -14,7 +14,6 @@ subpackages="
$pkgname-static
$pkgname-dev
$pkgname-doc
boost-dev:_dev
"
source="https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/boost_$_pkgver.tar.bz2
boost-1.57.0-python-abi_letters.patch
......@@ -68,11 +67,6 @@ for _lib in $_libs; do
done; unset -v _lib
subpackages="$subpackages $pkgname-libs"
# Claim the unversioned name, this must be removed once we switch our
# boost to a new version
provides="boost=$pkgver-r$pkgrel"
replaces="boost"
_set_options() {
[ -n "$PY3_VERSION" ] || PY3_VERSION="$(_pyversion python3)"
......@@ -158,11 +152,6 @@ static() {
pkgdesc="Boost static libraries"
depends="$depends_static"
# Claim the unversioned name, this must be removed once we switch our
# boost to a new version
provides="boost-static=$pkgver-r$pkgrel"
replaces="boost-static"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.a "$subpkgdir"/usr/lib/
}
......@@ -172,11 +161,6 @@ _boostlib() {
pkgdesc="Boost $name shared library"
depends="$depends__boostlib"
# Claim the unversioned name, this must be removed once we switch our
# boost to a new version
provides="boost-$name=$pkgver-r$pkgrel"
replaces="boost-$name"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libboost_$name*.so.[0-9]* "$subpkgdir"/usr/lib/
}
......@@ -184,11 +168,6 @@ _boostlib() {
libs() {
default_libs
# Claim the unversioned name, this must be removed once we switch our
# boost to a new version
provides="boost-libs=$pkgver-r$pkgrel"
replaces="boost-libs"
pkgdesc="Boost shared libraries"
depends="$depends_libs"
local _pkg; for _pkg in $origsubpackages; do
......@@ -201,21 +180,6 @@ libs() {
rmdir "$pkgdir"/usr/lib >/dev/null 2>&1 || :
}
_dev() {
# This makes boost-dev be a metapackage that depends on boostX.Y-dev
mkdir -p "$subpkgdir"
depends="$pkgname-dev=$pkgver-r$pkgrel"
}
doc() {
# Claim the unversioned name, this must be removed once we switch our
# boost to a new version
provides="boost-doc=$pkgver-r$pkgrel"
replaces="boost-doc"
default_doc
}
_pyversion() {
"$1" -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment