[arch-commits] Commit in ipython/trunk (PKGBUILD ipython.install)

Kyle Keen kkeen at archlinux.org
Thu Jul 9 02:03:08 UTC 2015


    Date: Thursday, July 9, 2015 @ 04:03:07
  Author: kkeen
Revision: 136571

upgpkg: ipython 3.2.0-2  FS#45558 FS#45120

Added:
  ipython/trunk/ipython.install
Modified:
  ipython/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   27 +++++++++++++++++++++------
 ipython.install |   12 ++++++++++++
 2 files changed, 33 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-08 21:53:18 UTC (rev 136570)
+++ PKGBUILD	2015-07-09 02:03:07 UTC (rev 136571)
@@ -8,7 +8,7 @@
 pkgbase=ipython 
 pkgname=(ipython ipython2 ipython-notebook ipython2-notebook)
 pkgver=3.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="An enhanced Interactive Python shell."
 arch=('any')
 url="http://ipython.org"
@@ -20,6 +20,7 @@
             "python-sip: for ipython qtconsole"
             "python-pygments: for ipython qtconsole"
             "python-pyzmq: for ipython qtconsole")
+install=ipython.install
 #source=("http://archive.ipython.org/release/$pkgver/ipython-$pkgver.tar.gz")
 #source=("https://github.com/ipython/ipython/archive/rel-$pkgver.tar.gz")
 source=("https://pypi.python.org/packages/source/i/ipython/$pkgbase-$pkgver.tar.gz")
@@ -45,9 +46,15 @@
 
   install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython/LICENSE"
 
-  cd "$srcdir/ipython-$pkgver/examples/IPython Kernel/"
+  pushd "examples/IPython Kernel/"
+  # FS#45120
+  sed -i 's/gnome-netstatus-idle/ipython/' *.desktop
   install -Dm644 ipython.desktop "$pkgdir/usr/share/applications/ipython.desktop"
   install -Dm644 ipython-qtconsole.desktop "$pkgdir/usr/share/applications/ipython-qtconsole.desktop"
+  popd
+  pushd IPython/qt/console/resources/icon/
+  install -Dm644 IPythonConsole.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ipython.svg"
+  popd
 }
 
 package_ipython2() {
@@ -72,16 +79,24 @@
   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/"
+  pushd "$pkgdir/usr/share/man/man1/"
   for i in *; do
     mv $i ${i/%.1/2.1}
   done
   find "$pkgdir/usr/bin/" -type f -regex '.*[^2]$' -delete
+  popd
 
-  cd "$srcdir/ipython-$pkgver/examples/IPython Kernel/"
+  pushd "examples/IPython Kernel/"
   sed -i 's/ython/ython2/g' *.desktop
+  sed -i 's/gnome-netstatus-idle/ipython2/' *.desktop
   install -Dm644 ipython.desktop "$pkgdir/usr/share/applications/ipython2.desktop"
   install -Dm644 ipython-qtconsole.desktop "$pkgdir/usr/share/applications/ipython2-qtconsole.desktop"
+  popd
+  pushd IPython/qt/console/resources/icon/
+  install -Dm644 IPythonConsole.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ipython2.svg"
+  popd
+
+
 }
 
 # Nothing in these packages except dependencies because five optdeps is too many
@@ -88,7 +103,7 @@
 
 package_ipython-notebook() {
   pkgdesc="Web-based environment where you can combine code, text, math, plots and media into a single document"
-  depends=('python-pyzmq' 'python-tornado' 'python-terminado'
+  depends=('ipython' 'python-pyzmq' 'python-tornado' 'python-terminado'
            'python-jinja' 'python-jsonschema' 'python-mistune'
            'python-pygments')
   optdepends=('haskell-pandoc: ipython notebook conversion'
@@ -99,7 +114,7 @@
 
 package_ipython2-notebook() {
   pkgdesc="Web-based environment where you can combine code, text, math, plots and media into a single document"
-  depends=('python2-pyzmq' 'python2-tornado' 'python2-terminado'
+  depends=('ipython2' 'python2-pyzmq' 'python2-tornado' 'python2-terminado'
            'python2-jinja' 'python2-jsonschema' 'python2-mistune'
            'python2-pygments')
   optdepends=('haskell-pandoc: ipython notebook conversion'

Added: ipython.install
===================================================================
--- ipython.install	                        (rev 0)
+++ ipython.install	2015-07-09 02:03:07 UTC (rev 136571)
@@ -0,0 +1,12 @@
+post_install() {
+  [[ -x usr/bin/gtk-update-icon-cache ]] || return 0
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor	
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}



More information about the arch-commits mailing list