aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-01-20 06:55:20 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-01-20 11:42:53 +0000
commiteef42f2e446e5483038769f03013d664afc64b62 (patch)
tree0ae65cf38b7a627c4724bb8c5fdd7d98ef6c7b96
parent4d75de3612eb3844671054eb6ad9855b559c914d (diff)
downloadaports-eef42f2e446e5483038769f03013d664afc64b62.tar.gz
aports-eef42f2e446e5483038769f03013d664afc64b62.tar.bz2
aports-eef42f2e446e5483038769f03013d664afc64b62.tar.xz
main/boost1.75: make boost-dev an actual metapackage instead of provides
-rw-r--r--main/boost1.75/APKBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/main/boost1.75/APKBUILD b/main/boost1.75/APKBUILD
index 416a4b9871..f2d6c36393 100644
--- a/main/boost1.75/APKBUILD
+++ b/main/boost1.75/APKBUILD
@@ -2,7 +2,7 @@
pkgname=boost1.75
pkgver=1.75.0
_pkgver="${pkgver//./_}"
-pkgrel=3
+pkgrel=4
pkgdesc="Free peer-reviewed portable C++ source libraries"
url="https://www.boost.org/"
arch="all"
@@ -10,7 +10,12 @@ license="custom"
depends="$pkgname-libs"
depends_dev="$pkgname linux-headers bzip2-dev icu-dev xz-dev zlib-dev"
makedepends="$depends_dev python3-dev>=3.8 flex bison"
-subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+subpackages="
+ $pkgname-static
+ $pkgname-dev
+ $pkgname-doc
+ boost-dev:_dev
+ "
source="https://dl.bintray.com/boostorg/release/$pkgver/source/boost_$_pkgver.tar.bz2
boost-1.57.0-python-abi_letters.patch
boost-1.57.0-python-libpython_dep.patch
@@ -194,13 +199,10 @@ libs() {
rmdir "$pkgdir"/usr/lib >/dev/null 2>&1 || :
}
-dev() {
- # Claim the unversioned name, this must be removed once we switch our
- # boost to a new version
- provides="boost-dev=$pkgver-r$pkgrel"
- replaces="boost-dev"
-
- default_dev
+_dev() {
+ # This makes boost-dev be a metapackage that depends on boostX.Y-dev
+ mkdir -p "$subpkgdir"
+ depends="$pkgname-dev=$pkgver-r$pkgrel"
}
doc() {