[arch-commits] Commit in (4 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Tue Mar 31 09:45:51 UTC 2015
Date: Tuesday, March 31, 2015 @ 11:45:51
Author: aginiewicz
Revision: 130397
python-scikit-image: moving from AUR
Added:
python-scikit-image/
python-scikit-image/repos/
python-scikit-image/trunk/
python-scikit-image/trunk/PKGBUILD
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Added: python-scikit-image/trunk/PKGBUILD
===================================================================
--- python-scikit-image/trunk/PKGBUILD (rev 0)
+++ python-scikit-image/trunk/PKGBUILD 2015-03-31 09:45:51 UTC (rev 130397)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+#TODO (AUR optdepends): PyAMG, Astropy, SimpleITK, imread
+
+pkgbase=python-scikit-image
+pkgname=('python2-scikit-image' 'python-scikit-image')
+pkgver=0.11.2
+pkgrel=0
+pkgdesc="Image processing routines for SciPy"
+arch=('i686' 'x86_64')
+url="http://scikit-image.org/"
+license=('BSD')
+makedepends=('cython2' 'cython' 'python2-six' 'python-six'
+ 'python2-scipy' 'python-scipy' 'python2-matplotlib' 'python-matplotlib'
+ 'python2-networkx' 'python-networkx' 'python2-pillow' 'python-pillow')
+options=(!emptydirs)
+
+source=("https://pypi.python.org/packages/source/s/scikit-image/scikit-image-${pkgver}.tar.gz")
+md5sums=('9a2118cc4d18c038a7d22e3ce0141309')
+
+prepare() {
+ cd "$srcdir"
+ cp -a scikit-image-$pkgver scikit-image-py2-$pkgver
+ cd scikit-image-py2-$pkgver
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ msg "Building Python2"
+ cd "$srcdir"/scikit-image-py2-$pkgver
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/scikit-image-$pkgver
+ python setup.py build
+}
+
+package_python2-scikit-image() {
+ depends=('python2-scipy' 'python2-matplotlib' 'python2-networkx' 'python2-pillow')
+ optdepends=('python2-pyqt4: for imshow(x, fancy=True) and skivi'
+ 'freeimage: for reading various types of image file formats')
+ cd "$srcdir"/scikit-image-py2-$pkgver
+
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+ mv "$pkgdir"/usr/bin/skivi "$pkgdir"/usr/bin/skivi2
+
+ install -D "$srcdir"/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-scikit-image() {
+ depends=('python-scipy' 'python-matplotlib' 'python-networkx' 'python-pillow')
+ optdepends=('python-pyqt4: for imshow(x, fancy=True) and skivi'
+ 'freeimage: for reading various types of image file formats')
+ cd "$srcdir"/scikit-image-$pkgver
+
+ python setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D "$srcdir"/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
Property changes on: python-scikit-image/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list