42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'python-virtualenv'
|
|
pkgname=python-virtualenv
|
|
version=13.1.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="virtualenv-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="virtualenv.py"
|
|
short_desc="Virtual Python2 environment builder"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://virtualenv.pypa.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
|
checksum=7ef0a0b1a1cb4b6407d2c1ff4a0f74865a13e6219482888a21bdcaa60c0f1e73
|
|
|
|
pre_build() {
|
|
sed -i '1d' virtualenv.py
|
|
}
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/bin/virtualenv
|
|
ln -sf virtualenv-2.7 ${DESTDIR}/usr/bin/virtualenv
|
|
ln -sf virtualenv-3.4 ${DESTDIR}/usr/bin/virtualenv3
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-virtualenv_package() {
|
|
noarch=yes
|
|
depends="python3.4-setuptools"
|
|
pycompile_version="3.4"
|
|
pycompile_module="virtualenv.py"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/virtualenv-3.4
|
|
vmove usr/bin/virtualenv3
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|