python-pip: follow 'python' alternatives groups scheme

- restore pip2 symlink into the python-pip package
- register 'pip3' alternatives group as well
This commit is contained in:
Alessio Sergi 2016-04-25 18:18:17 +02:00
parent 8fc7bfb7d2
commit 97d7d691f4

View file

@ -1,7 +1,7 @@
# Template file for 'python-pip'
pkgname=python-pip
version=8.1.1
revision=2
revision=3
noarch=yes
wrksrc="pip-${version}"
build_style=python-module
@ -15,19 +15,17 @@ homepage="https://pip.pypa.io/"
license="MIT"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=3e78d3066aaeb633d185a57afdccf700aa2e660436b4af618bcb6ff0fa511798
alternatives="
pip:pip:/usr/bin/pip2.7
pip:pip2:/usr/bin/pip2.7"
alternatives="pip:pip:/usr/bin/pip2.7"
post_install() {
ln -sf pip2.7 ${DESTDIR}/usr/bin/pip2
vlicense LICENSE.txt LICENSE
}
python3.4-pip_package() {
alternatives="
pip:pip:/usr/bin/pip3.4
pip:pip3:/usr/bin/pip3.4"
pip3:pip3:/usr/bin/pip3.4"
noarch=yes
depends="python3.4-setuptools"
pycompile_version="3.4"