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

2016-07-15 Thread Kyle Keen
Date: Saturday, July 16, 2016 @ 02:47:24
  Author: kkeen
Revision: 182979

upgpkg: ipython 5.0.0-1

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

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

Modified: PKGBUILD
===
--- PKGBUILD2016-07-16 02:35:16 UTC (rev 182978)
+++ PKGBUILD2016-07-16 02:47:24 UTC (rev 182979)
@@ -7,32 +7,32 @@
 
 pkgbase=ipython
 pkgname=(ipython ipython2)
-pkgver=4.2.0
-pkgrel=2
+pkgver=5.0.0
+pkgrel=1
 pkgdesc="An enhanced Interactive Python shell."
 arch=('any')
 url="http://ipython.org";
 license=('BSD')
-depends=('python' 'python-decorator' 'python-pexpect' 'sqlite' 
'python-setuptools' 'python-path')
+depends=('python' 'python-decorator' 'python-pexpect' 'sqlite'
+ 'python-setuptools' 'python-path' 'python-prompt_toolkit')
 makedepends=('python-setuptools' 'python2-setuptools')
 optdepends=("python-nose: for IPython's test suite")
-install=ipython.install
 
 # some of these will update rapidly, others never
 # so _vars will be phased in as new updates are released
-_traitv=4.2.1
-_psharev=0.7.2
+_traitv=4.2.2
+_psharev=0.7.3
 
 
source=("ipython-$pkgver.tgz::https://github.com/ipython/ipython/archive/$pkgver.tar.gz";
-
"https://pypi.python.org/packages/source/t/traitlets/traitlets-$_traitv.tar.gz";
+
"https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-$_traitv.tar.gz";
 
"https://pypi.python.org/packages/source/i/ipython_genutils/ipython_genutils-0.1.0.tar.gz";
-
"https://pypi.python.org/packages/source/p/pickleshare/pickleshare-$_psharev.tar.gz";
+
"https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-$_psharev.tar.gz";
 
"https://pypi.python.org/packages/source/s/simplegeneric/simplegeneric-0.8.1.zip";
 
"http://www.packal.org/sites/default/files/public/styles/icon_large/public/workflow-files/nkeimipynbworkflow/icon/icon.png";)
-md5sums=('9432d4758961501bf5f33adde08a9e6e'
- 'f9cc1ad00a793a65d7bc88d69ee65920'
+md5sums=('7fc325d5872815e9efac229ffdd12037'
+ 'd0725f9818bd9e112a6531da26d433b8'
  '9a8afbe0978adbcbfcb3b35b2d015a56'
- '29d74cde0255546b6b2e1b48a0b31a54'
+ '0ccdd8e65737a92eec47888dae61ff95'
  'f9c1fab00fd981be588fc32759f474e3'
  '2901d65f1b1fe354e72850085cd1c072')
 
@@ -108,7 +108,7 @@
   pkgdesc="An enhanced Interactive Python2 shell."
   depends=('python2' 'python2-decorator' 'python2-pexpect' 'sqlite'
 'python2-setuptools' 'python2-path' 'python2-pathlib'
-'python2-backports.shutil_get_terminal_size')
+'python2-backports.shutil_get_terminal_size' 'python-prompt_toolkit')
   optdepends=("wxpython: needed for ipython2 --gui=wx"
   "python2-nose: for IPython's test suite")
   # "wxpython: needed for ipython2 --gui=wx"   does this still work?

Deleted: ipython.install
===
--- ipython.install 2016-07-16 02:35:16 UTC (rev 182978)
+++ ipython.install 2016-07-16 02:47:24 UTC (rev 182979)
@@ -1,12 +0,0 @@
-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
-}


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

2015-07-08 Thread Kyle Keen
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
===
--- PKGBUILD2015-07-08 21:53:18 UTC (rev 136570)
+++ PKGBUILD2015-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
+}