blob: d38b80700afb740b47fd96c3af1f65b00989ae74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=python-gensim
pkgver=0.10.0
pkgrel=1
pkgdesc="Python framework for fast Vector Space Modelling"
arch=('i686' 'x86_64' 'mips64el')
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")
build() {
unset LDFLAGS
unset FFLAGS
cd ${srcdir}/gensim-${pkgver}
# 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
python2 setup.py build
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?
}
|