[arch-commits] Commit in python-virtualenv/repos (3 files)

Allan McRae allan at archlinux.org
Tue Oct 16 11:55:32 UTC 2012


    Date: Tuesday, October 16, 2012 @ 07:55:31
  Author: allan
Revision: 168878

db-move: moved python-virtualenv from [staging] to [testing] (any)

Added:
  python-virtualenv/repos/testing-any/
  python-virtualenv/repos/testing-any/PKGBUILD
    (from rev 168833, python-virtualenv/repos/staging-any/PKGBUILD)
Deleted:
  python-virtualenv/repos/staging-any/

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: python-virtualenv/repos/testing-any/PKGBUILD (from rev 168833, python-virtualenv/repos/staging-any/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2012-10-16 11:55:31 UTC (rev 168878)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Daniele Paolella <dp at mcrservice.it>
+
+pkgname=('python-virtualenv' 'python2-virtualenv')
+pkgver=1.8.2
+pkgrel=1
+pkgdesc="Virtual Python Environment builder"
+url="http://www.virtualenv.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-distribute' 'python2' 'python2-distribute')
+replaces=('virtualenv')
+conflicts=('virtualenv')
+source=("http://pypi.python.org/packages/source/v/virtualenv/virtualenv-$pkgver.tar.gz")
+
+package_python-virtualenv() {
+  depends=('python' 'python-distribute')
+
+  cd "$srcdir/virtualenv-$pkgver"
+  LANG='en_US.UTF-8' python setup.py build
+  LANG='en_US.UTF-8' python setup.py install --prefix=/usr --root="$pkgdir"
+
+  # link to a version with 3 suffix as well
+  ln "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv3"
+
+  install -D -m644 LICENSE.txt \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-virtualenv() {
+  depends=('python2' 'python2-distribute')
+
+  cd "$srcdir/virtualenv-$pkgver"
+  python2 setup.py build
+  python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+  # move this "old" version out of the way
+  mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2"
+
+  # should report this upstream as still not fixed...
+  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $pkgdir/usr/lib/python2.7/site-packages/virtualenv.py
+ 
+  install -D -m644 LICENSE.txt \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+md5sums=('174ca075c6b1a42c685415692ec4ce2e')
+sha256sums=('cffdab213221ef9305f8b4a20fa8ca034f7e30100d8b1e2514e08e33465e4be2')




More information about the arch-commits mailing list