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

Felix Yan fyan at nymeria.archlinux.org
Thu Aug 15 02:30:03 UTC 2013


    Date: Thursday, August 15, 2013 @ 04:30:03
  Author: fyan
Revision: 95612

upgpkg: python-pycuda 2013.1.1-1 also added missing license

Added:
  python-pycuda/trunk/LICENSE
Modified:
  python-pycuda/trunk/PKGBUILD

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   28 +++++++++++++++++++---------
 2 files changed, 26 insertions(+), 9 deletions(-)

Added: LICENSE
===================================================================
--- LICENSE	                        (rev 0)
+++ LICENSE	2013-08-15 02:30:03 UTC (rev 95612)
@@ -0,0 +1,7 @@
+Copyright (c) 2009,10 Andreas Klöckner and Contributors.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-15 02:01:15 UTC (rev 95611)
+++ PKGBUILD	2013-08-15 02:30:03 UTC (rev 95612)
@@ -2,15 +2,15 @@
 # Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
 pkgbase=python-pycuda
 pkgname=('python-pycuda' 'python2-pycuda' 'pycuda-headers')
-pkgver=2012.1
-pkgrel=4
+pkgver=2013.1.1
+pkgrel=1
 pkgdesc="Python wrapper for Nvidia CUDA"
-arch=('i686' 'x86_64')
+arch=('x86_64')
 url="http://mathema.tician.de/software/pycuda"
-license=('MIT')
-source=(http://pypi.python.org/packages/source/p/pycuda/pycuda-${pkgver}.tar.gz)
+license=('MIT' 'Apache')
+source=("http://pypi.python.org/packages/source/p/pycuda/pycuda-${pkgver}.tar.gz"
+        LICENSE)
 makedepends=('ctags' 'python2-distribute' 'python-distribute' 'python2-numpy' 'python-numpy' 'mesa' 'cuda' 'boost>=1.53.0' 'nvidia-utils')
-sha1sums=('dd52ee697ae9f6256efac3bca682be9c6e7c9649')
 
 build() {
    cd "${srcdir}"
@@ -36,7 +36,8 @@
                   --cuda-inc-dir=/opt/cuda/include \
                   --cudadrv-lib-dir=/opt/cuda/lib${_arch} \
                   --cudart-lib-dir=/opt/cuda/lib${_arch} \
-                  --no-use-shipped-boost
+                  --no-use-shipped-boost \
+		  --boost-python-libname=boost_python
    make
 }
 
@@ -45,7 +46,9 @@
    cd "${srcdir}"/pycuda-${pkgver}
    python3 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
 
-   rm -fr "${pkgdir}"/usr/include   
+   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+   rm -fr "${pkgdir}"/usr/include
 }
 
 package_python2-pycuda() {
@@ -53,6 +56,8 @@
    cd "${srcdir}"/pycuda-${pkgver}-python2
    python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
 
+   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
    rm -fr "${pkgdir}"/usr/include   
 }
 
@@ -60,7 +65,12 @@
    cd "${srcdir}"/pycuda-${pkgver}
    install -dm755 "${pkgdir}"/usr/include/pycuda
 
-   for file in $(ls -1 src/cuda/*.hpp); do
+   for file in $(ls -1 src/cpp/*.hpp); do
       install -m644 ${file} "${pkgdir}"/usr/include/pycuda
    done
+
+   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+
+sha512sums=('7a7e95fcd4f76d10234558021064cc299e6d93ab9a428c9560e5a8a73b13304ba9ccc3c103674a25effdc01a14aac21981a62de881a9c990ad16d7689b75e502'
+            'ee0bef251b8b2c25cd5821932d506183655c04285ae7d01d12f86557812c5068568e9f38e9f6bffe28de870ec662ebe0ee9cce2b444883caaf66b4c877494130')




More information about the arch-commits mailing list