diff options
author | root <root@rshg054.dnsready.net> | 2013-09-06 01:39:14 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-06 01:39:14 -0700 |
commit | 670cfaf55e53f7380ca8ee7b4acb2bf0248685c4 (patch) | |
tree | 93a452c84aa492d51f56911d74a8fcbbd496b550 /community/python-scikit-learn | |
parent | f7a2cf07dfae6a6707525e05f4f7f1998b382c4d (diff) |
Fri Sep 6 01:39:05 PDT 2013
Diffstat (limited to 'community/python-scikit-learn')
-rw-r--r-- | community/python-scikit-learn/LICENSE | 24 | ||||
-rw-r--r-- | community/python-scikit-learn/PKGBUILD | 54 |
2 files changed, 78 insertions, 0 deletions
diff --git a/community/python-scikit-learn/LICENSE b/community/python-scikit-learn/LICENSE new file mode 100644 index 000000000..9827e0f0c --- /dev/null +++ b/community/python-scikit-learn/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2010–2011, scikit-learn developers +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the <organization> nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/community/python-scikit-learn/PKGBUILD b/community/python-scikit-learn/PKGBUILD new file mode 100644 index 000000000..ae64bf4d2 --- /dev/null +++ b/community/python-scikit-learn/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 96814 2013-09-05 19:19:46Z aginiewicz $ +# Maintainer: Andrzej Giniewicz <gginiu@gmail.com> + +pkgbase=python-scikit-learn +pkgname=('python2-scikit-learn' 'python-scikit-learn') +pkgver=0.14.1 +pkgrel=1 +pkgdesc="A set of python modules for machine learning and data mining" +arch=('i686' 'x86_64') +url="http://scikit-learn.sourceforge.net/" +license=('BSD') +makedepends=('python2-scipy' 'python-scipy' 'python2-setuptools' 'python-setuptools') +options=(!emptydirs) + +source=("http://downloads.sourceforge.net/project/scikit-learn/scikit-learn-${pkgver}.tar.gz" + "LICENSE") +md5sums=('790ad23547bb7f428060636628e13491' + '327083d2576cc0aad1b8f10b2bcd2974') + +build() { + cd "$srcdir" + cp -a scikit-learn-$pkgver scikit-learn-py2-$pkgver + + msg "Building Python2" + cd "$srcdir"/scikit-learn-py2-$pkgver + python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/scikit-learn-$pkgver + python setup.py build +} + +package_python2-scikit-learn() { + depends=('python2-scipy') + cd "$srcdir"/scikit-learn-py2-$pkgver + + python2 setup.py install --root="$pkgdir"/ --optimize=1 + + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find "${pkgdir}" -name '*.py') + + install -D "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-scikit-learn() { + depends=('python-scipy') + cd "$srcdir"/scikit-learn-$pkgver + + python setup.py install --root="$pkgdir"/ --optimize=1 + + install -D "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + |