[arch-commits] Commit in python-igraph/repos/community-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Thu Mar 22 11:44:16 UTC 2018
Date: Thursday, March 22, 2018 @ 11:44:15
Author: arojas
Revision: 310474
archrelease: copy trunk to community-x86_64
Added:
python-igraph/repos/community-x86_64/PKGBUILD
(from rev 310473, python-igraph/trunk/PKGBUILD)
Deleted:
python-igraph/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 96 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 51 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-22 11:43:59 UTC (rev 310473)
+++ PKGBUILD 2018-03-22 11:44:15 UTC (rev 310474)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Lukasz Pozarlik <lpozarlik at gmail.com>
-
-pkgbase=python-igraph
-pkgname=(python-igraph python2-igraph)
-pkgver=0.7.1.post6
-pkgrel=3
-url="http://igraph.org/python/"
-license=(GPL)
-arch=(i686 x86_64)
-makedepends=(python python2 igraph)
-source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz")
-md5sums=('a4c0b5960735b36adb5d3a40031cb7c0')
-
-prepare() {
- 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
-}
-
-build() {
- cd $pkgbase-$pkgver
- python setup.py build
-
- cd ../$pkgbase-$pkgver-python2
- python2 setup.py build
-}
-
-package_python-igraph() {
- pkgdesc="Python bindings for the igraph library"
- depends=(igraph python)
-
- cd $pkgbase-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-igraph() {
- pkgdesc="Python 2 bindings for the igraph library"
- depends=(igraph python2)
-
- cd $pkgbase-$pkgver-python2
- python2 setup.py install --root="$pkgdir" --optimize=1
- mv "$pkgdir"/usr/bin/igraph{,2}
-}
Copied: python-igraph/repos/community-x86_64/PKGBUILD (from rev 310473, python-igraph/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-03-22 11:44:15 UTC (rev 310474)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Lukasz Pozarlik <lpozarlik at gmail.com>
+
+pkgbase=python-igraph
+pkgname=(python-igraph python2-igraph)
+pkgver=0.7.1.post6
+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"
+ 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
+}
+
+build() {
+ cd $pkgbase-$pkgver
+ python setup.py build
+
+ cd ../$pkgbase-$pkgver-python2
+ python2 setup.py build
+}
+
+package_python-igraph() {
+ pkgdesc="Python bindings for the igraph library"
+ depends=(igraph python)
+
+ cd $pkgbase-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-igraph() {
+ pkgdesc="Python 2 bindings for the igraph library"
+ depends=(igraph python2)
+
+ cd $pkgbase-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ mv "$pkgdir"/usr/bin/igraph{,2}
+}
More information about the arch-commits
mailing list