python-virtualenv: update to 12.0.6

This commit is contained in:
Alessio Sergi 2015-02-03 20:15:15 +01:00
parent 0103530e6f
commit 69a3203f06
1 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'python-virtualenv'
pkgname=python-virtualenv
version=12.0.5
version=12.0.6
revision=1
noarch=yes
wrksrc="virtualenv-${version}"
@ -14,20 +14,18 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://virtualenv.pypa.io/"
license="MIT"
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
checksum=c2cb6cb3536cff6be514f92b03af10128a7d5448bbb35f528e64facc37abde73
checksum=db8c3c89d6a8369082530b3bd2084924357ae1216b239c387e576b814bab592f
post_extract() {
cp -a ${wrksrc} /tmp/virtualenv-2.7
cp -a ${wrksrc} /tmp/virtualenv-3.4
mv /tmp/virtualenv-{2.7,3.4} ${wrksrc}
}
pre_build() {
cd ${wrksrc}/virtualenv-3.4
sed -i 's,virtualenv=,virtualenv3=,' setup.py
sed -i 's,#!/usr/bin/env python,&3.4,' virtualenv.py
}
do_build() {
cd ${wrksrc}/virtualenv-2.7
python setup.py build
@ -35,15 +33,13 @@ do_build() {
cd ${wrksrc}/virtualenv-3.4
python3.4 setup.py build
}
do_install() {
cd ${wrksrc}/virtualenv-2.7
python setup.py install --root=${DESTDIR}
vlicense LICENSE.txt
cd ${wrksrc}/virtualenv-3.4
python3.4 setup.py install --root=${DESTDIR}
vlicense LICENSE.txt
}
python3.4-virtualenv_package() {