[arch-commits] Commit in python-scikit-image/repos (4 files)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sat Sep 19 20:03:02 UTC 2015


    Date: Saturday, September 19, 2015 @ 22:03:02
  Author: jlichtblau
Revision: 141096

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-scikit-image/repos/community-staging-i686/
  python-scikit-image/repos/community-staging-i686/PKGBUILD
    (from rev 141095, python-scikit-image/trunk/PKGBUILD)
  python-scikit-image/repos/community-staging-x86_64/
  python-scikit-image/repos/community-staging-x86_64/PKGBUILD
    (from rev 141095, python-scikit-image/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   66 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   66 ++++++++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)

Copied: python-scikit-image/repos/community-staging-i686/PKGBUILD (from rev 141095, python-scikit-image/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 20:03:02 UTC (rev 141096)
@@ -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.3
+pkgrel=2
+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=('5cd60fe78adbe30254a87081f12500f9')
+
+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 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 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+

Copied: python-scikit-image/repos/community-staging-x86_64/PKGBUILD (from rev 141095, python-scikit-image/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 20:03:02 UTC (rev 141096)
@@ -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.3
+pkgrel=2
+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=('5cd60fe78adbe30254a87081f12500f9')
+
+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 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 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list