mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/python2-tkinter: upgrade to 2.7.14
This commit is contained in:
parent
674c89f701
commit
37ff3e70d3
@ -4,9 +4,9 @@
|
|||||||
# a cyclic dependency: python -> tk -> libx11 -> libxcb -> xcb-proto -> python
|
# a cyclic dependency: python -> tk -> libx11 -> libxcb -> xcb-proto -> python
|
||||||
|
|
||||||
pkgname=python2-tkinter
|
pkgname=python2-tkinter
|
||||||
pkgver=2.7.13
|
pkgver=2.7.14
|
||||||
_verbase=${pkgver%.*}
|
_verbase=${pkgver%.*}
|
||||||
pkgrel=2
|
pkgrel=0
|
||||||
pkgdesc="A graphical user interface for the Python"
|
pkgdesc="A graphical user interface for the Python"
|
||||||
url="https://wiki.python.org/moin/TkInter"
|
url="https://wiki.python.org/moin/TkInter"
|
||||||
arch="all"
|
arch="all"
|
||||||
@ -30,11 +30,11 @@ prepare() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
default_prepare || return 1
|
default_prepare
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
|
|
||||||
# Make sure we use system libs
|
# Make sure we use system libs
|
||||||
rm -rf Modules/expat Modules/_ctypes/libffi* Modules/zlib || return 1
|
rm -rf Modules/expat Modules/_ctypes/libffi* Modules/zlib
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@ -50,9 +50,8 @@ build() {
|
|||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--with-system-expat \
|
--with-system-expat \
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
--enable-unicode=ucs4 \
|
--enable-unicode=ucs4
|
||||||
|| return 1
|
make
|
||||||
make || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
@ -62,25 +61,25 @@ package() {
|
|||||||
|| return 1
|
|| return 1
|
||||||
|
|
||||||
mkdir -p "$pkgdir"/usr/lib/python${_verbase}/lib-dynload \
|
mkdir -p "$pkgdir"/usr/lib/python${_verbase}/lib-dynload \
|
||||||
"$pkgdir"/usr/bin || return 1
|
"$pkgdir"/usr/bin
|
||||||
|
|
||||||
for lib in idlelib lib-tk; do
|
for lib in idlelib lib-tk; do
|
||||||
mv "$builddir"/tmpinstall/usr/lib/python${_verbase}/$lib \
|
mv "$builddir"/tmpinstall/usr/lib/python${_verbase}/$lib \
|
||||||
"$pkgdir"/usr/lib/python${_verbase}/ || return 1
|
"$pkgdir"/usr/lib/python${_verbase}/
|
||||||
done
|
done
|
||||||
|
|
||||||
mv "$builddir"/tmpinstall/usr/lib/python${_verbase}/lib-dynload/_tkinter.so \
|
mv "$builddir"/tmpinstall/usr/lib/python${_verbase}/lib-dynload/_tkinter.so \
|
||||||
"$pkgdir"/usr/lib/python${_verbase}/lib-dynload/ || return 1
|
"$pkgdir"/usr/lib/python${_verbase}/lib-dynload/
|
||||||
|
|
||||||
mv "$builddir"/tmpinstall/usr/bin/idle \
|
mv "$builddir"/tmpinstall/usr/bin/idle \
|
||||||
"$pkgdir"/usr/bin/idle${_verbase} || return 1
|
"$pkgdir"/usr/bin/idle${_verbase}
|
||||||
}
|
}
|
||||||
|
|
||||||
_mv_files() {
|
_mv_files() {
|
||||||
local i
|
local i
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
mkdir -p "$subpkgdir"/${i%/*}
|
mkdir -p "$subpkgdir"/${i%/*}
|
||||||
mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
|
mv "$pkgdir"/$i "$subpkgdir"/$i
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +87,7 @@ tests() {
|
|||||||
pkgdesc="The test modules from the main python package for tkinter"
|
pkgdesc="The test modules from the main python package for tkinter"
|
||||||
replaces="python-tests python2-tests"
|
replaces="python-tests python2-tests"
|
||||||
cd "$pkgdir"
|
cd "$pkgdir"
|
||||||
_mv_files usr/lib/python*/*/test || return 1
|
_mv_files usr/lib/python*/*/test
|
||||||
}
|
}
|
||||||
|
|
||||||
_idle() {
|
_idle() {
|
||||||
@ -98,6 +97,4 @@ _idle() {
|
|||||||
_mv_files usr/bin
|
_mv_files usr/bin
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="53b43534153bb2a0363f08bae8b9d990 Python-2.7.13.tar.xz"
|
sha512sums="78310b0be6388ffa15f29a80afb9ab3c03a572cb094e9da00cfe391afadb51696e41f592eb658d6a31a2f422fdac8a55214a382cbb8cfb43d4a127d5b35ea7f9 Python-2.7.14.tar.xz"
|
||||||
sha256sums="35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731 Python-2.7.13.tar.xz"
|
|
||||||
sha512sums="f37c9a28ce129d01e63c84d7db627a06402854578f62d17927334ea21ede318e04bbf66e890e3f47c85333e6b19f6e5581fb3f3e27efd24be27017d1b6529c4b Python-2.7.13.tar.xz"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user