[arch-commits] Commit in ipython/repos/community-any (PKGBUILD PKGBUILD)
Kyle Keen
kkeen at nymeria.archlinux.org
Thu Aug 15 21:36:54 UTC 2013
Date: Thursday, August 15, 2013 @ 23:36:54
Author: kkeen
Revision: 95713
archrelease: copy trunk to community-any
Added:
ipython/repos/community-any/PKGBUILD
(from rev 95712, ipython/trunk/PKGBUILD)
Deleted:
ipython/repos/community-any/PKGBUILD
----------+
PKGBUILD | 152 +++++++++++++++++++++++++++++++++++++++++--------------------
1 file changed, 103 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-08-15 21:36:18 UTC (rev 95712)
+++ PKGBUILD 2013-08-15 21:36:54 UTC (rev 95713)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: PepeSmith
-# Contributor: Aron Asor <aronasorman at gmail.com>
-# Contributor: Chris Brannon <chris at the-brannons.com>
-# Contributor : Douglas Soares de Andrade <dsa at aur.archlinux.org>
-
-pkgname=ipython
-pkgver=1.0.0
-pkgrel=1
-pkgdesc="An enhanced Interactive Python shell."
-arch=('any')
-url="http://ipython.org"
-provides=('ipython3')
-replaces=('ipython3')
-license=('Modified BSD')
-depends=('python' 'sqlite' 'python-distribute')
-optdepends=("wxpython: needed for ipythonx and ipython-wx"
- "python-nose: if you want to run IPython's test suite"
- "pyqt: for ipython-qtconsole"
- "sip: for ipython-qtconsole"
- "python-pygments: for ipython-qtconsole"
- "python-pyzmq: for ipython-qtconcole"
- "python-tornado: for ipython notebook")
-#source=("http://archive.ipython.org/release/$pkgver/ipython-$pkgver.tar.gz")
-source=("https://pypi.python.org/packages/source/i/ipython/$pkgname-$pkgver.tar.gz")
-md5sums=('2268fa83f257d14943eb04e3333a6fac')
-
-package() {
- cd "$srcdir/ipython-$pkgver"
-
- # see https://github.com/ipython/ipython/issues/2057
- #export LC_ALL=en_US.UTF-8
- python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
- find "$pkgdir/" -name '*.pyc' -delete
- find "$pkgdir/" -type d -empty -delete
-
- install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython/LICENSE"
-
- cd "$pkgdir/usr/bin/"
- mv ipcluster3 ipcluster
- mv ipcontroller3 ipcontroller
- mv ipengine3 ipengine
- mv iplogger3 iplogger
- mv iptest3 iptest
- mv ipython3 ipython
- mv irunner3 irunner
- mv pycolor3 pycolor
-}
Copied: ipython/repos/community-any/PKGBUILD (from rev 95712, ipython/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-08-15 21:36:54 UTC (rev 95713)
@@ -0,0 +1,103 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: PepeSmith
+# Contributor: Aron Asor <aronasorman at gmail.com>
+# Contributor: Chris Brannon <chris at the-brannons.com>
+# Contributor : Douglas Soares de Andrade <dsa at aur.archlinux.org>
+
+pkgbase=ipython
+pkgname=(ipython ipython2)
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="An enhanced Interactive Python shell."
+arch=('any')
+url="http://ipython.org"
+license=('BSD')
+depends=('python' 'sqlite' 'python-distribute')
+makedepends=('python-distribute' 'python2-distribute' 'sqlite')
+optdepends=("wxpython: needed for ipythonx and ipython-wx"
+ "python-nose: if you want to run IPython's test suite"
+ "pyqt: for ipython-qtconsole"
+ "sip: for ipython-qtconsole"
+ "python-pygments: for ipython-qtconsole"
+ "python-pyzmq: for ipython-qtconcole"
+ "python-tornado: for ipython notebook"
+ "python-jinja: for ipython notebook"
+ "haskell-pandoc: ipython notebook conversion")
+#source=("http://archive.ipython.org/release/$pkgver/ipython-$pkgver.tar.gz")
+source=("https://pypi.python.org/packages/source/i/ipython/$pkgbase-$pkgver.tar.gz")
+md5sums=('2268fa83f257d14943eb04e3333a6fac')
+
+build() {
+ # feels hacky
+ cd "$srcdir"
+ cp -r ipython-$pkgver ipython2-$pkgver
+}
+
+package_ipython() {
+ provides=('ipython3')
+ replaces=('ipython3')
+ cd "$srcdir/ipython-$pkgver"
+
+ # see https://github.com/ipython/ipython/issues/2057
+ #export LC_ALL=en_US.UTF-8
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ find "$pkgdir/" -name '*.pyc' -delete
+ find "$pkgdir/" -type d -empty -delete
+
+ install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython/LICENSE"
+
+ # binary3 -> binary
+ cd "$pkgdir/usr/bin/"
+ for i in *; do
+ mv $i ${i%3}
+ done
+
+ cd "$srcdir/ipython-$pkgver/examples/core"
+ install -Dm644 ipython.desktop "$pkgdir/usr/share/applications/ipython.desktop"
+ install -Dm644 ipython-qtconsole.desktop "$pkgdir/usr/share/applications/ipython-qtconsole.desktop"
+}
+
+package_ipython2() {
+ pkgdesc="An enhanced Interactive Python2 shell."
+ depends=('python2' 'sqlite' 'python2-distribute')
+ optdepends=("wxpython: needed for ipythonx and ipython-wx"
+ "twisted: networking-related tasks"
+ "python2-foolscap: for IPython's parallel computing features"
+ "python2-pexpect: for irunner"
+ "python2-nose: if you want to run IPython's test suite"
+ "python2-pyqt: for ipython-qtconsole"
+ "python2-sip: for ipython-qtconsole"
+ "python2-pygments: for ipython-qtconsole"
+ "python2-pyzmq: for ipython-qtconsole"
+ "python2-tornado: for ipython notebook"
+ "python2-jinja: for ipython notebook"
+ "haskell-pandoc: ipython notebook conversion")
+
+ cd "$srcdir/ipython2-$pkgver"
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ rm -rf "$pkgdir/usr/share/doc"
+ 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,'
+ find "$pkgdir/" -name '*.pyc' -delete
+
+ install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython2/LICENSE"
+
+ # hack to get around ipython collision
+ cd "$pkgdir/usr/share/man/man1/"
+ for i in *; do
+ mv $i ${i/%.1/2.1}
+ done
+ cd "$pkgdir/usr/bin/"
+ for i in *; do
+ mv $i ${i}2
+ done
+
+ cd "$srcdir/ipython2-$pkgver/examples/core"
+ sed -i 's/ython/ython2/g' *.desktop
+ install -Dm644 ipython.desktop "$pkgdir/usr/share/applications/ipython2.desktop"
+ install -Dm644 ipython-qtconsole.desktop "$pkgdir/usr/share/applications/ipython2-qtconsole.desktop"
+}
+
More information about the arch-commits
mailing list