diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-18 21:19:59 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-18 21:20:16 +0200 |
commit | 27204eea7e413db1f7d4490532ff1516c5569a63 (patch) | |
tree | 8fc42b98eeb9bbe819ae5eb24f910c3742654f60 /main/python2 | |
parent | 0cb416a6176d97b8817fe2c8ae069f01d62dda96 (diff) | |
download | aports-27204eea7e413db1f7d4490532ff1516c5569a63.tar.bz2 aports-27204eea7e413db1f7d4490532ff1516c5569a63.tar.xz |
main/python2: provide and replace all main/python subpkgs
Diffstat (limited to 'main/python2')
-rw-r--r-- | main/python2/APKBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/python2/APKBUILD b/main/python2/APKBUILD index 6461abe9b1..0855978aa7 100644 --- a/main/python2/APKBUILD +++ b/main/python2/APKBUILD @@ -2,12 +2,13 @@ pkgname=python2 pkgver=2.7.12 _verbase=${pkgver%.*} -pkgrel=0 +pkgrel=1 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" license="custom" provides="python=$pkgver-r$pkgrel" +replaces="python" subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm" depends="" @@ -71,6 +72,7 @@ _mv_files() { dev() { provides="python-dev=$pkgver-r$pkgrel" + replaces="python-dev" # pyconfig.h is needed runtime so we move it back default_dev @@ -81,6 +83,9 @@ dev() { tests() { pkgdesc="The test modules from the main python package" + provides="python-tests=$pkgver-r$pkgrel" + replaces="python-tests" + cd "$pkgdir" _mv_files usr/lib/python*/*/test \ usr/lib/python*/test @@ -88,6 +93,9 @@ tests() { gdbm() { pkgdesc="GNU dbm database support for Python" + provides="python-gdbm=$pkgver-r$pkgrel" + replaces="python-gdbm" + cd "$pkgdir" _mv_files $(find usr/lib -name '*gdbm*') } |