[arch-commits] Commit in python-virtualenv/repos (staging-any staging-any/PKGBUILD)

Dan McGee dan at nymeria.archlinux.org
Mon Mar 17 23:50:14 UTC 2014


    Date: Tuesday, March 18, 2014 @ 00:50:14
  Author: dan
Revision: 208102

archrelease: copy trunk to staging-any

Added:
  python-virtualenv/repos/staging-any/
  python-virtualenv/repos/staging-any/PKGBUILD
    (from rev 208101, python-virtualenv/trunk/PKGBUILD)

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

Copied: python-virtualenv/repos/staging-any/PKGBUILD (from rev 208101, python-virtualenv/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2014-03-17 23:50:14 UTC (rev 208102)
@@ -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.11.4
+pkgrel=2
+pkgdesc="Virtual Python Environment builder"
+url="http://www.virtualenv.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python2')
+replaces=('virtualenv')
+conflicts=('virtualenv')
+source=("http://pypi.python.org/packages/source/v/virtualenv/virtualenv-$pkgver.tar.gz")
+
+package_python-virtualenv() {
+  depends=('python')
+
+  cd "$srcdir/virtualenv-$pkgver"
+  LANG='en_US.UTF-8' python3 setup.py build
+  LANG='en_US.UTF-8' python3 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')
+
+  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=('9accc2d3f0ec1da479ce2c3d1fdff06e')
+sha256sums=('cf3d958f28eb7470bd04262ef397580a2e57407f2ee2c88e9b2892218eb0465a')




More information about the arch-commits mailing list