Date: Monday, June 9, 2014 @ 14:18:33 Author: aginiewicz Revision: 112901
archrelease: copy trunk to community-i686, community-x86_64 Added: python-statsmodels/repos/community-i686/ python-statsmodels/repos/community-i686/PKGBUILD (from rev 112900, python-statsmodels/trunk/PKGBUILD) python-statsmodels/repos/community-x86_64/ python-statsmodels/repos/community-x86_64/PKGBUILD (from rev 112900, python-statsmodels/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) Copied: python-statsmodels/repos/community-i686/PKGBUILD (from rev 112900, python-statsmodels/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2014-06-09 12:18:33 UTC (rev 112901) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com> + +pkgbase=python-statsmodels +pkgname=('python2-statsmodels' 'python-statsmodels') +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Statistical computations and models for use with SciPy" +arch=('i686' 'x86_64') +url="http://statsmodels.sourceforge.net/" +license=('BSD') +makedepends=('python2-setuptools' 'python2-scipy' 'python2-pandas' 'python2-patsy' + 'python-setuptools' 'python-scipy' 'python-pandas' 'python-patsy' 'cython') +source=("https://pypi.python.org/packages/source/s/statsmodels/statsmodels-${pkgver}.tar.gz") +md5sums=('c65454d97f869ac0e5bb3a2757ec6bd5') + +build() { + cd "$srcdir" + cp -a statsmodels-${pkgver} statsmodels-py2-${pkgver} + + msg "Building Python2" + cd "$srcdir"/statsmodels-py2-${pkgver} + python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/statsmodels-${pkgver} + python setup.py clean + python setup.py build +} + +package_python2-statsmodels() { + depends=('python2-scipy' 'python2-pandas' 'python2-patsy') + optdepends=('python2-nose: needed for integrated test suite' + 'python2-matplotlib: needed for plotting functions') + + cd "$srcdir"/statsmodels-py2-${pkgver} + + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 + + sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find "${pkgdir}" -name '*.py') + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-statsmodels() { + depends=('python-scipy' 'python-pandas' 'python-patsy') + optdepends=('python-nose: needed for integrated test suite' + 'python-matplotlib: needed for plotting functions') + + cd "$srcdir"/statsmodels-${pkgver} + + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + Copied: python-statsmodels/repos/community-x86_64/PKGBUILD (from rev 112900, python-statsmodels/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2014-06-09 12:18:33 UTC (rev 112901) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com> + +pkgbase=python-statsmodels +pkgname=('python2-statsmodels' 'python-statsmodels') +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Statistical computations and models for use with SciPy" +arch=('i686' 'x86_64') +url="http://statsmodels.sourceforge.net/" +license=('BSD') +makedepends=('python2-setuptools' 'python2-scipy' 'python2-pandas' 'python2-patsy' + 'python-setuptools' 'python-scipy' 'python-pandas' 'python-patsy' 'cython') +source=("https://pypi.python.org/packages/source/s/statsmodels/statsmodels-${pkgver}.tar.gz") +md5sums=('c65454d97f869ac0e5bb3a2757ec6bd5') + +build() { + cd "$srcdir" + cp -a statsmodels-${pkgver} statsmodels-py2-${pkgver} + + msg "Building Python2" + cd "$srcdir"/statsmodels-py2-${pkgver} + python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/statsmodels-${pkgver} + python setup.py clean + python setup.py build +} + +package_python2-statsmodels() { + depends=('python2-scipy' 'python2-pandas' 'python2-patsy') + optdepends=('python2-nose: needed for integrated test suite' + 'python2-matplotlib: needed for plotting functions') + + cd "$srcdir"/statsmodels-py2-${pkgver} + + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 + + sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find "${pkgdir}" -name '*.py') + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python-statsmodels() { + depends=('python-scipy' 'python-pandas' 'python-patsy') + optdepends=('python-nose: needed for integrated test suite' + 'python-matplotlib: needed for plotting functions') + + cd "$srcdir"/statsmodels-${pkgver} + + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +