[arch-commits] Commit in ipython2/trunk (PKGBUILD)

Kyle Keen kkeen at nymeria.archlinux.org
Fri Aug 9 15:47:11 UTC 2013


    Date: Friday, August 9, 2013 @ 17:47:11
  Author: kkeen
Revision: 95325

upgpkg: ipython2 1.0.0-1

Modified:
  ipython2/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++--------------------
 1 file changed, 31 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-09 15:06:50 UTC (rev 95324)
+++ PKGBUILD	2013-08-09 15:47:11 UTC (rev 95325)
@@ -3,19 +3,24 @@
 # Contributor: Chris Brannon <chris at the-brannons.com>
 # Contributor : Douglas Soares de Andrade <dsa at aur.archlinux.org>
 
-pkgbase=ipython2
-_pkgbase=ipython
-pkgname=(ipython2 ipython2-docs)
-pkgver=0.13.2
-pkgrel=2
+# removing the docs split while I figure out what they did to the docs
+
+#pkgbase=ipython2
+#_pkgbase=ipython
+#pkgname=(ipython2 ipython2-docs)
+pkgname='ipython2'
+pkgver=1.0.0
+pkgrel=1
 arch=('any')
 url="http://ipython.org"
 license=('Modified BSD')
-makedepends=('python2') # for setup.py
-source=("http://archive.ipython.org/release/$pkgver/ipython-$pkgver.tar.gz")
-md5sums=('ead3b7eb70c653b537fb9d96d71b8b2a')
+makedepends=('python2' 'python2-sphinx')
+#source=("http://archive.ipython.org/release/$pkgver/ipython-$pkgver.tar.gz")
+source=("https://pypi.python.org/packages/source/i/ipython/ipython-$pkgver.tar.gz")
+md5sums=('2268fa83f257d14943eb04e3333a6fac')
 
-package_ipython2() {
+#package_ipython2() {
+package() {
   pkgdesc="An enhanced Interactive Python2 shell."
   depends=('python2')
   optdepends=("wxpython: needed for ipythonx and ipython-wx"
@@ -29,7 +34,8 @@
               "python2-pyzmq: for ipython-qtconsole"
               "python2-tornado: for ipython notebook")
 
-  cd "$srcdir/$_pkgbase-$pkgver"
+  #cd "$srcdir/$_pkgbase-$pkgver"
+  cd "$srcdir/ipython-$pkgver"
 
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
   rm -rf "$pkgdir/usr/share/doc"
@@ -58,20 +64,25 @@
   mv pycolor           pycolor2
 }
 
-package_ipython2-docs() {
-  pkgdesc='Documentation and examples for IPython2'
+# So this is weird.  The old docs are gone.  New docs use sphinx?
+# Does not seem to build though.  Will fix later.
 
-  cd "$srcdir/$_pkgbase-$pkgver"
+#package_ipython2-docs() {
+#  pkgdesc='Documentation and examples for IPython2'
 
-  python2 setup.py install --prefix=/usr --root="$pkgdir"
-  rm -rf "$pkgdir/usr/lib" "$pkgdir/usr/bin" "$pkgdir/usr/share/man"
+#  cd "$srcdir/$_pkgbase-$pkgver/docs"
+#  make PREFIX="/usr"
+#  make DESTDIR="$pkgdir" install
 
- find "$pkgdir" -name '*.py' -print0 |xargs -0 \
-    sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
-    -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
+  #python2 setup.py install --prefix=/usr --root="$pkgdir"
+  #rm -rf "$pkgdir/usr/lib" "$pkgdir/usr/bin" "$pkgdir/usr/share/man"
 
+  #find "$pkgdir" -name '*.py' -print0 |xargs -0 \
+  #  sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
+  #  -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
+
   # This seems wrong.  We're running setup.py for both
   # packages, and removing different things in each.
-  mv "$pkgdir/usr/share/doc/ipython/" "$pkgdir/usr/share/doc/ipython2/"
-}
+  #mv "$pkgdir/usr/share/doc/ipython/" "$pkgdir/usr/share/doc/ipython2/"
+#}
 




More information about the arch-commits mailing list