mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-pip: update to 1.5.6
Build python3.4 module too.
This commit is contained in:
parent
1179f2a265
commit
408e90f723
2 changed files with 35 additions and 10 deletions
|
@ -1,17 +1,41 @@
|
||||||
# Template file for 'python-pip'
|
# Template file for 'python-pip'
|
||||||
pkgname=python-pip
|
pkgname=python-pip
|
||||||
version=1.5.5
|
version=1.5.6
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="pip-${version}"
|
wrksrc="pip-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python python-setuptools"
|
hostmakedepends="python python-setuptools python3.4 python3.4-setuptools"
|
||||||
makedepends="python-devel"
|
makedepends="python-devel python3.4-devel"
|
||||||
|
depends="python>=2.7 python-setuptools"
|
||||||
noarch="yes"
|
noarch="yes"
|
||||||
depends="python python-setuptools"
|
python_versions="2.7 3.4"
|
||||||
pycompile_module="pip"
|
pycompile_module="pip"
|
||||||
short_desc="An easy_install replacement for installing pypi python packages"
|
short_desc="An easy_install replacement for installing PyPI packages (Python2)"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://pypi.python.org/pypi/pip"
|
homepage="https://pip.pypa.io/"
|
||||||
license="PSF"
|
license="MIT"
|
||||||
distfiles="http://pypi.python.org/packages/source/p/pip/pip-$version.tar.gz"
|
distfiles="http://pypi.python.org/packages/source/p/pip/pip-${version}.tar.gz"
|
||||||
checksum=4b7f5124364ae9b5ba833dcd8813a84c1c06fba1d7c8543323c7af4b33188eca
|
checksum=b1a4ae66baf21b7eb05a5e4f37c50c2706fa28ea1f8780ce8efe14dcd9f1726c
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
sed -i 's|#!/usr/bin/env python$|#!/usr/bin/env python3.4|' \
|
||||||
|
build-3.4/lib/pip/__init__.py
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
rm -f ${DESTDIR}/usr/bin/pip
|
||||||
|
ln -sf pip2.7 ${DESTDIR}/usr/bin/pip
|
||||||
|
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname} LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
python3.4-pip_package() {
|
||||||
|
noarch="yes"
|
||||||
|
depends="python3.4 python3.4-setuptools"
|
||||||
|
short_desc="${short_desc//Python2/Python3.4}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove /usr/bin/pip3
|
||||||
|
vmove /usr/bin/pip3.4
|
||||||
|
vmove /usr/lib/python3.4
|
||||||
|
vinstall ${wrksrc}/LICENSE.txt 644 usr/share/licenses/${pkgname} LICENSE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3.4-pip
Symbolic link
1
srcpkgs/python3.4-pip
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pip
|
Loading…
Add table
Reference in a new issue