2013-08-31 11:12:08 +02:00
|
|
|
# Template file for 'python-pip'
|
|
|
|
pkgname=python-pip
|
2014-06-17 13:34:17 +02:00
|
|
|
version=1.5.6
|
2014-06-18 11:57:44 +02:00
|
|
|
revision=2
|
2013-08-31 11:12:08 +02:00
|
|
|
wrksrc="pip-${version}"
|
|
|
|
build_style=python-module
|
2014-06-17 13:34:17 +02:00
|
|
|
hostmakedepends="python python-setuptools python3.4 python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
|
|
|
depends="python>=2.7 python-setuptools"
|
2014-01-01 16:10:11 +01:00
|
|
|
noarch="yes"
|
2014-06-17 13:34:17 +02:00
|
|
|
python_versions="2.7 3.4"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="pip"
|
2014-06-17 13:34:17 +02:00
|
|
|
short_desc="An easy_install replacement for installing PyPI packages (Python2)"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="https://pip.pypa.io/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="http://pypi.python.org/packages/source/p/pip/pip-${version}.tar.gz"
|
|
|
|
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"
|
2014-06-18 11:57:44 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="pip"
|
2014-06-17 13:34:17 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|