From 5886c2c76f9392755ddf22bacfaae5632c0cd2c5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 7 Apr 2015 17:10:17 +0200 Subject: [PATCH] python-virtualenv: update to 12.1.0 --- srcpkgs/python-virtualenv/template | 36 +++++++++--------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/srcpkgs/python-virtualenv/template b/srcpkgs/python-virtualenv/template index a87c71cf2d6..02c61e59a8d 100644 --- a/srcpkgs/python-virtualenv/template +++ b/srcpkgs/python-virtualenv/template @@ -1,7 +1,7 @@ # Template file for 'python-virtualenv' pkgname=python-virtualenv -version=12.0.7 -revision=2 +version=12.1.0 +revision=1 noarch=yes wrksrc="virtualenv-${version}" build_style=python-module @@ -14,32 +14,16 @@ maintainer="Alessio Sergi " homepage="https://virtualenv.pypa.io/" license="MIT" distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz" -checksum=d681db1766cdc8aa1b37eb18252c264b775f971166c2bf658a9618c1f3d28741 +checksum=69a31626bae6b5682de43c4d603ecde2f0298f80fc0895c5837ae982d74eabe2 -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 + sed -i '1d' virtualenv.py } -do_build() { - cd ${wrksrc}/virtualenv-2.7 - python setup.py 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} +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() { @@ -52,6 +36,6 @@ python3.4-virtualenv_package() { vmove usr/bin/virtualenv-3.4 vmove usr/bin/virtualenv3 vmove usr/lib/python3.4 - vlicense ${wrksrc}/LICENSE.txt + vlicense LICENSE.txt LICENSE } }