python3: update to 3.6.4

This commit is contained in:
Alessio Sergi 2017-12-19 19:03:06 +01:00
parent 5b088e0e57
commit 1a5b329bde
1 changed files with 2 additions and 11 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'python3' # Template file for 'python3'
pkgname=python3 pkgname=python3
version=3.6.3 version=3.6.4
revision=1 revision=1
wrksrc="Python-${version}" wrksrc="Python-${version}"
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)" short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
@ -8,9 +8,8 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://www.python.org" homepage="https://www.python.org"
license="PSF" license="PSF"
distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz" distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
checksum=cda7d967c9a4bfa52337cdf551bcc5cff026b6ac50a8834e568ce4a794ca81da checksum=159b932bf56aeaa76fd66e7420522d8c8853d486b8567c459b84fe2ed13bcaba
replaces="python3.4>=0 python3.5>=0"
pycompile_dirs="usr/lib/python${version%.*}" pycompile_dirs="usr/lib/python${version%.*}"
makedepends="libffi-devel readline-devel gdbm-devel libressl-devel expat-devel makedepends="libffi-devel readline-devel gdbm-devel libressl-devel expat-devel
sqlite-devel bzip2-devel zlib-devel liblzma-devel tcl-devel tk-devel libX11-devel" sqlite-devel bzip2-devel zlib-devel liblzma-devel tcl-devel tk-devel libX11-devel"
@ -61,11 +60,6 @@ do_install() {
# Remove test module and tests that fail to be byte-compiled. # Remove test module and tests that fail to be byte-compiled.
rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test
rm -rf ${DESTDIR}/usr/lib/python${version%.*}/lib2to3/tests rm -rf ${DESTDIR}/usr/lib/python${version%.*}/lib2to3/tests
# Remove references to hardening -specs.
sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' -i \
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m*/Makefile \
${DESTDIR}/usr/bin/python${version%.*}*-config
# Remove references to the install(1) wrapper. # Remove references to the install(1) wrapper.
sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \ sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \ ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
@ -79,7 +73,6 @@ do_install() {
} }
python3-devel_package() { python3-devel_package() {
replaces="python3.4-devel>=0 python3.5-devel>=0"
depends="${sourcepkg}-${version}_${revision}" depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
@ -94,7 +87,6 @@ python3-devel_package() {
} }
} }
python3-tkinter_package() { python3-tkinter_package() {
replaces="python3.4-tkinter>=0 python3.5-tkinter>=0"
pycompile_dirs="usr/lib/python${version%.*}" pycompile_dirs="usr/lib/python${version%.*}"
depends="${sourcepkg}-${version}_${revision}" depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - GUI toolkit for Python3" short_desc+=" - GUI toolkit for Python3"
@ -106,7 +98,6 @@ python3-tkinter_package() {
} }
} }
idle-python3_package() { idle-python3_package() {
replaces="idle-python3.4>=0 idle-python3.5>=0"
pycompile_dirs="usr/lib/python${version%.*}/idlelib" pycompile_dirs="usr/lib/python${version%.*}/idlelib"
depends="${sourcepkg}-${version}_${revision} python3-tkinter" depends="${sourcepkg}-${version}_${revision} python3-tkinter"
short_desc+=" - IDE for Python3 using Tkinter" short_desc+=" - IDE for Python3 using Tkinter"