diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-21 14:27:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-21 14:53:47 +0000 |
commit | 21594f076cd9567280189c5b7a8a5d9ed070eddc (patch) | |
tree | 4c86c98472480ffa53632f86055a23511077f933 /community/python3-tkinter | |
parent | 07cedb3c4b6880f48a5bce5f3fef0e7d1657b735 (diff) | |
download | aports-21594f076cd9567280189c5b7a8a5d9ed070eddc.tar.bz2 aports-21594f076cd9567280189c5b7a8a5d9ed070eddc.tar.xz |
community/python3-tkinter: improve splitting and fix upgrade
move all the idlelib files to the idle package and include the tkinter
files which no longer are provided by main python3 package.
Diffstat (limited to 'community/python3-tkinter')
-rw-r--r-- | community/python3-tkinter/APKBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/community/python3-tkinter/APKBUILD b/community/python3-tkinter/APKBUILD index c8db42763d..cf6f06ebe6 100644 --- a/community/python3-tkinter/APKBUILD +++ b/community/python3-tkinter/APKBUILD @@ -4,12 +4,12 @@ pkgname=python3-tkinter pkgver=3.6.3 _basever="${pkgver%.*}" -pkgrel=0 +pkgrel=1 pkgdesc="A graphical user interface for the Python" url="https://wiki.python.org/moin/TkInter" arch="all" license="custom" -provides="py3-pip" +replaces=python3 subpackages="$pkgname-tests python3-idle:_idle" makedepends="expat-dev libressl-dev zlib-dev ncurses-dev bzip2-dev xz-dev sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev @@ -74,7 +74,7 @@ package() { mkdir -p "$pkgdir"/usr/lib/python${_basever}/lib-dynload \ "$pkgdir"/usr/bin - for lib in idlelib; do + for lib in idlelib tkinter; do mv "$builddir"/tmpinstall/usr/lib/python${_basever}/$lib \ "$pkgdir"/usr/lib/python${_basever}/ done @@ -98,14 +98,17 @@ tests() { pkgdesc="The test modules from the main python package for tkinter" replaces="python3-tests" cd "$pkgdir" - _mv_files usr/lib/python*/*/*_test + _mv_files usr/lib/python*/*/*_test \ + usr/lib/python3.6/tkinter/test } _idle() { pkgdesc="IDE for Python3 using Tkinter" depends="$pkgname=$pkgver-r$pkgrel" + replaces=python3 cd "$pkgdir" _mv_files usr/bin + _mv_files usr/lib/python*/idlelib } sha512sums="32f24a3adcb7880003c7ecdc5e53e838e774adda76b308961d8215e28db630b2fa2828097817924c76afa4212b2df3362eb64d4e10f37c0147f512ec5aa8662b Python-3.6.3.tar.xz |