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

Antonio Rojas arojas at archlinux.org
Thu Mar 22 11:43:45 UTC 2018


    Date: Thursday, March 22, 2018 @ 11:43:45
  Author: arojas
Revision: 310472

Add fix for python3

Modified:
  python-igraph/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-22 11:34:48 UTC (rev 310471)
+++ PKGBUILD	2018-03-22 11:43:45 UTC (rev 310472)
@@ -5,15 +5,21 @@
 pkgbase=python-igraph
 pkgname=(python-igraph python2-igraph)
 pkgver=0.7.1.post6
-pkgrel=3
+pkgrel=4
 url="http://igraph.org/python/"
 license=(GPL)
 arch=(x86_64)
 makedepends=(python python2 igraph) 
-source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz")
-md5sums=('a4c0b5960735b36adb5d3a40031cb7c0')
+source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz"
+        igraph-python3.patch::"https://github.com/igraph/python-igraph/commit/8864b468.patch")
+sha256sums=('a5ea42790a077eadb3d1e8f82edc47516fea4a2b26bbf52bfc148370fe0fe676'
+            '2ae94434dca55c4a7afbfc292e308aea48c647e737a73fd5c3a2d3f2b2dc24dc')
 
 prepare() {
+  cd $pkgbase-$pkgver
+   patch -p1 -i ../igraph-python3.patch # fixed Plot._repr_svg_() on Python 3.x
+  cd ..
+
   cp -r $pkgbase-$pkgver{,-python2}
 
   sed -e 's|/usr/bin/env python|/usr/bin/env/python2|g' -i $pkgbase-$pkgver-python2/igraph/vendor/texttable.py



More information about the arch-commits mailing list