diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-04-30 07:10:08 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-04-30 07:10:08 -0500 |
commit | 205630f5f22cad688aa7ec8313f55a57df3c4160 (patch) | |
tree | 4e68eaef2119df0c653e4423312ce5d042de7b38 /pcr | |
parent | 974e00d46ab2ac34f2b503171506eb68c8b51b84 (diff) | |
download | abslibre-205630f5f22cad688aa7ec8313f55a57df3c4160.tar.gz abslibre-205630f5f22cad688aa7ec8313f55a57df3c4160.tar.bz2 abslibre-205630f5f22cad688aa7ec8313f55a57df3c4160.zip |
python-gensim-0.10.3-1: rebuild
Diffstat (limited to 'pcr')
-rw-r--r--[-rwxr-xr-x] | pcr/python-gensim/PKGBUILD | 54 |
1 files changed, 38 insertions, 16 deletions
diff --git a/pcr/python-gensim/PKGBUILD b/pcr/python-gensim/PKGBUILD index d38b80700..f0ab07dc0 100755..100644 --- a/pcr/python-gensim/PKGBUILD +++ b/pcr/python-gensim/PKGBUILD @@ -1,31 +1,53 @@ +# Contributor (Arch) : Maarten van Gompel <proycon at anaproy dot nl> +# Contributor (Arch) : Lex Black <autumn-wind at web dot de> +# Contributor (Arch) : Dieter_be # Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> -pkgname=python-gensim -pkgver=0.10.0 +_pkgbase=gensim +pkgbase=python-gensim +pkgname=('python-gensim' 'python2-gensim') +pkgver=0.10.3 pkgrel=1 pkgdesc="Python framework for fast Vector Space Modelling" -arch=('i686' 'x86_64' 'mips64el') +arch=('i686' 'x86_64') url="http://nlp.fi.muni.cz/projekty/gensim/" license=('LGPL') -depends=('python-scipy') -makedepends=('gcc' 'setuptools') -conflicts=() -source=("http://pypi.python.org/packages/source/g/gensim/gensim-${pkgver}.tar.gz") +makedepends=('python-setuptools' 'python2-setuptools' 'python-scipy' 'python2-scipy' 'cython' 'cython2') +source=("http://pypi.python.org/packages/source/g/$_pkgbase/$_pkgbase-${pkgver}.tar.gz") +md5sums=('0a9c0986d9b6c1d3f88135afa3da2230') + + +prepare() { + cp -r $_pkgbase-$pkgver $_pkgbase-$pkgver-py2 +} build() { unset LDFLAGS unset FFLAGS - cd ${srcdir}/gensim-${pkgver} + cd ${srcdir}/$_pkgbase-${pkgver} + python setup.py build - # python2 fix - for file in $(find . -name '*.py' -print); do - sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file - sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file - done - - #python2 setup.py test + cd ${srcdir}/$_pkgbase-${pkgver}-py2 python2 setup.py build +} + +#test() { +# python2 setup.py test +#} + +package_python-gensim() { + pkgdesc+=" (Python3.x)" + depends=(python-scipy) + + cd ${srcdir}/$_pkgbase-${pkgver} + python setup.py install --prefix=/usr --root=${pkgdir} +} + +package_python2-gensim() { + pkgdesc+=" (Python2.x)" + depends=(python2-scipy) + + cd ${srcdir}/$_pkgbase-${pkgver}-py2 python2 setup.py install --prefix=/usr --root=${pkgdir} - #install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt TODO: where to get license? } |