python: update to 2.7.14
This commit is contained in:
parent
0b24841fc3
commit
bf063950d5
|
@ -3,21 +3,20 @@
|
|||
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python-tkinter".
|
||||
#
|
||||
pkgname=python
|
||||
version=2.7.13
|
||||
revision=5
|
||||
version=2.7.14
|
||||
revision=1
|
||||
wrksrc="Python-${version}"
|
||||
hostmakedepends="pkg-config"
|
||||
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"
|
||||
depends="ca-certificates"
|
||||
pycompile_dirs="usr/lib/python2.7"
|
||||
short_desc="Interpreted, interactive, object-oriented programming language"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
homepage="http://www.python.org"
|
||||
homepage="https://www.python.org"
|
||||
license="PSF"
|
||||
distfiles="http://www.python.org/ftp/python/$version/Python-$version.tar.xz"
|
||||
checksum=35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731
|
||||
distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
|
||||
checksum=71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66
|
||||
|
||||
alternatives="
|
||||
python:idle:/usr/bin/idle2.7
|
||||
|
@ -26,13 +25,13 @@ alternatives="
|
|||
python:python:/usr/bin/python2.7
|
||||
python:python.1:/usr/share/man/man1/python2.7.1"
|
||||
|
||||
CFLAGS="-DHAVE_BROKEN_SEM_GETVALUE=1"
|
||||
|
||||
pre_configure() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -r Modules/expat
|
||||
rm -r Modules/_ctypes/libffi*
|
||||
rm -r Modules/zlib
|
||||
# Enable loading sqlite extensions.
|
||||
sed -i '/SQLITE_OMIT_LOAD_EXTENSION/d' setup.py
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
|
@ -51,8 +50,8 @@ do_configure() {
|
|||
fi
|
||||
./configure ${configure_args} ${_args} \
|
||||
--enable-shared --enable-ipv6 --with-threads --enable-unicode=ucs4 \
|
||||
--with-computed-gotos --with-wctype-functions --with-system-expat \
|
||||
--with-system-ffi --without-ensurepip
|
||||
--with-computed-gotos --with-wctype-functions --with-dbmliborder=gdbm:ndbm \
|
||||
--with-system-expat --with-system-ffi --without-ensurepip
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
@ -73,7 +72,7 @@ do_install() {
|
|||
|
||||
post_install() {
|
||||
chmod 755 ${DESTDIR}/usr/lib/libpython*.so*
|
||||
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/python/LICENSE
|
||||
vlicense LICENSE
|
||||
rm -f ${DESTDIR}/usr/bin/smtpd.py
|
||||
mv ${DESTDIR}/usr/bin/2to3{,-2.7}
|
||||
mv ${DESTDIR}/usr/bin/pydoc{,2.7}
|
||||
|
@ -104,10 +103,10 @@ python-devel_package() {
|
|||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python2.7/config/libpython2.7.a
|
||||
vmove "usr/bin/python*-config"
|
||||
vmove usr/bin/python*-config
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/include
|
||||
vmove usr/lib/python2.7/config/libpython2.7.a
|
||||
mkdir -p ${DESTDIR}/usr/include/python2.7
|
||||
mv ${PKGDESTDIR}/usr/include/python2.7/pyconfig.h \
|
||||
${DESTDIR}/usr/include/python2.7
|
||||
|
|
Loading…
Reference in New Issue