[arch-commits] Commit in (5 files)

Felix Yan fyan at archlinux.org
Wed Oct 1 16:11:35 UTC 2014


    Date: Wednesday, October 1, 2014 @ 18:11:35
  Author: fyan
Revision: 119976

addpkg: python-h5py 2.3.1-2

Added:
  python-h5py/
  python-h5py/repos/
  python-h5py/trunk/
  python-h5py/trunk/DOCS_LICENSE.txt
  python-h5py/trunk/PKGBUILD

------------------+
 DOCS_LICENSE.txt |   25 ++++++++++++++++++++++
 PKGBUILD         |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

Added: python-h5py/trunk/DOCS_LICENSE.txt
===================================================================
--- python-h5py/trunk/DOCS_LICENSE.txt	                        (rev 0)
+++ python-h5py/trunk/DOCS_LICENSE.txt	2014-10-01 16:11:35 UTC (rev 119976)
@@ -0,0 +1,25 @@
+Summary
+=======
+
+The h5py documentation is licensed under the Creative Commons "BY" license.
+This license allows you to reproduce and create derivative works based on the
+documentation contained in this directory, provided you acknowledge the h5py
+authors when you do so.
+
+We suggest you use the following method of acknowledgement:
+
+****************************************************
+HDF5 for Python Documentation
+Copyright 2008-2011 Andrew Collette and contributers
+http://h5py.alfven.org
+****************************************************
+
+License Terms
+=============
+
+The text of this license is available on the Creative Commons website:
+http://creativecommons.org/licenses/by/3.0/legalcode
+
+A non-official summary is also available:
+http://creativecommons.org/licenses/by/3.0/
+

Added: python-h5py/trunk/PKGBUILD
===================================================================
--- python-h5py/trunk/PKGBUILD	                        (rev 0)
+++ python-h5py/trunk/PKGBUILD	2014-10-01 16:11:35 UTC (rev 119976)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Rich Li <rich at dranek.com>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgbase=python-h5py
+pkgname=(python-h5py python2-h5py)
+pkgver=2.3.1
+pkgrel=2
+pkgdesc="General-purpose Python bindings for the HDF5 library"
+url="http://www.h5py.org/"
+arch=('i686' 'x86_64')
+license=('BSD')
+makedepends=('cython' 'cython2' 'hdf5' 'python-numpy' 'python2-numpy')
+source=("https://pypi.python.org/packages/source/h/h5py/h5py-$pkgver.tar.gz"
+        DOCS_LICENSE.txt)
+md5sums=('8f32f96d653e904d20f9f910c6d9dd91'
+         '747a856995bb271af44733b2fdab642b')
+
+prepare() {
+  cp -a h5py-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/h5py-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/h5py-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/h5py-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/h5py-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-h5py() {
+  depends=('hdf5' 'python-numpy')
+  conflicts=('hdf5-openmpi' 'python-h5py-openmpi')
+
+  cd "$srcdir"/h5py-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir"/ --optimize=1
+
+  install -D "$srcdir/DOCS_LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-h5py() {
+  depends=('hdf5' 'python2-numpy')
+  conflicts=('hdf5-openmpi' 'python2-h5py-openmpi')
+
+  cd "$srcdir"/h5py-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir"/ --optimize=1
+
+  install -D "$srcdir/DOCS_LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


Property changes on: python-h5py/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list