summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-30 13:41:05 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-30 13:41:05 (GMT)
commit70ab5535c3d7b47b586a0188409631616924fdc7 (patch)
treeec09e4134458fca94b56645db84ea74872da3d0e
parentadcdf962cdd781061806d820a9078c35d6d8a659 (diff)
downloadlinhes_pkgbuild-70ab5535c3d7b47b586a0188409631616924fdc7.zip
linhes_pkgbuild-70ab5535c3d7b47b586a0188409631616924fdc7.tar.gz
linhes_pkgbuild-70ab5535c3d7b47b586a0188409631616924fdc7.tar.bz2
python-pexpect: update to 3.2
-rw-r--r--abs/core/python_modules/python-pexpect/PKGBUILD40
-rw-r--r--abs/core/python_modules/python-pexpect/__changelog1
2 files changed, 28 insertions, 13 deletions
diff --git a/abs/core/python_modules/python-pexpect/PKGBUILD b/abs/core/python_modules/python-pexpect/PKGBUILD
index 09ddb51..4034457 100644
--- a/abs/core/python_modules/python-pexpect/PKGBUILD
+++ b/abs/core/python_modules/python-pexpect/PKGBUILD
@@ -1,24 +1,38 @@
-# $Id: PKGBUILD 69520 2012-04-17 21:14:19Z ebelanger $
-# Maintainer:
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
-pkgname=python-pexpect
-pkgver=2.4
+pkgname=('python2-pexpect')
+pkgver=3.2
pkgrel=1
-pkgdesc='A pure Python Expect-like module'
+pkgdesc='Make Python a better tool for controlling and automating other programs'
arch=('any')
-url='http://pexpect.sourceforge.net/'
+url='http://pexpect.readthedocs.org/en/latest/'
license=('MIT')
-depends=('python2')
+makedepends=('python2')
+conflicts=('python-pexpect<=2.4')
+replaces=('python-pexpect<=2.4')
source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz")
-md5sums=('fe82d69be19ec96d3a6650af947d5665')
+sha256sums=('dbc4c9a01c118e198d1b6ca76f31eb7292f212567f253e6b36a880e5168e961f')
-package() {
- cd "$srcdir/pexpect-$pkgver"
+prepare() {
+ cp -r "pexpect-$pkgver" "python2-pexpect-$pkgver"
+ sed -i 's:env python:env python2:' "python2-pexpect-$pkgver/pexpect/FSM.py"
+}
+
+#package_python-pexpect() {
+# depends+=('python')
+# cd "pexpect-$pkgver"
+# python setup.py install --root="$pkgdir"
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
- # python2 fix
- sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' FSM.py
+package_python2-pexpect() {
+ depends+=('python2')
+ cd "python2-pexpect-$pkgver"
python2 setup.py install --root="$pkgdir"
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-pexpect/__changelog b/abs/core/python_modules/python-pexpect/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pexpect/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff