diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
commit | d1e161df4f6111d527c2570958ebaf637411e3e2 (patch) | |
tree | 4231f47e1699769d42f49cccde20687be979e89a /pcr/python-gensim/PKGBUILD | |
parent | 84b75f29126e52357bbdd40860269d9197fd68fd (diff) | |
parent | a93d4a7da5c55af8f8669fdb63194c0680e0f748 (diff) | |
download | abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.gz abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.bz2 abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python-gensim/PKGBUILD')
-rwxr-xr-x | pcr/python-gensim/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/python-gensim/PKGBUILD b/pcr/python-gensim/PKGBUILD new file mode 100755 index 000000000..e00cab736 --- /dev/null +++ b/pcr/python-gensim/PKGBUILD @@ -0,0 +1,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') +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? +} |