parent
3e46771a2d
commit
e1010c1b5c
|
@ -3,20 +3,20 @@
|
||||||
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python-tkinter".
|
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python-tkinter".
|
||||||
#
|
#
|
||||||
pkgname=python
|
pkgname=python
|
||||||
version=2.7.18
|
version=2.7.18.4
|
||||||
revision=3
|
revision=1
|
||||||
wrksrc="Python-${version}"
|
wrksrc="cpython-${version}"
|
||||||
pycompile_dirs="usr/lib/python2.7"
|
pycompile_dirs="usr/lib/python2.7"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libffi-devel readline-devel gdbm-devel openssl-devel expat-devel
|
makedepends="libffi-devel readline-devel gdbm-devel openssl-devel expat-devel
|
||||||
sqlite-devel bzip2-devel zlib-devel"
|
sqlite-devel bzip2-devel zlib-devel"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
short_desc="Interpreted, interactive, object-oriented programming language"
|
short_desc="Interpreted, interactive, object-oriented programming language"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="Python-2.0"
|
license="Python-2.0"
|
||||||
homepage="https://www.python.org"
|
homepage="https://www.python.org"
|
||||||
distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
|
distfiles="https://github.com/ActiveState/cpython/archive/v${version}.tar.gz"
|
||||||
checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
|
checksum=003a4fbd03fa0dbb3cf88d894c40311ef30dd17b2aa85291c3136393148b1362
|
||||||
|
|
||||||
alternatives="
|
alternatives="
|
||||||
python:idle:/usr/bin/idle2.7
|
python:idle:/usr/bin/idle2.7
|
||||||
|
@ -85,13 +85,13 @@ post_install() {
|
||||||
rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
|
rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
|
||||||
# Remove references to the install(1) wrapper.
|
# Remove references to the install(1) wrapper.
|
||||||
vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
|
vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
|
${DESTDIR}/usr/lib/python${version%.*.*}/_sysconfigdata.py \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
|
${DESTDIR}/usr/lib/python${version%.*.*}/config/Makefile
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Remove references to cross toolchain.
|
# Remove references to cross toolchain.
|
||||||
vsed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
vsed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
|
${DESTDIR}/usr/lib/python${version%.*.*}/_sysconfigdata.py \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
|
${DESTDIR}/usr/lib/python${version%.*.*}/config/Makefile
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
site="https://www.python.org/ftp/python/"
|
pattern='v\K2\.7\.[\d.]*\d'
|
||||||
pattern='"\K2\.[\d.]+(?=/")'
|
|
||||||
|
|
Loading…
Reference in New Issue