void-packages/srcpkgs/python-virtualenv/template

37 lines
1.0 KiB
Bash

# Template file for 'python-virtualenv'
pkgname=python-virtualenv
version=15.0.1
revision=2
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=1a74278b8adb383ce4c7619e33c753b1eb7b58dc1e449601c096ca4b76125f84
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2.7"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3.4-virtualenv_package() {
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3.4"
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/virtualenv3.4
vmove usr/lib/python3.4
vlicense LICENSE.txt LICENSE
}
}