From 205630f5f22cad688aa7ec8313f55a57df3c4160 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Thu, 30 Apr 2015 07:10:08 -0500 Subject: python-gensim-0.10.3-1: rebuild --- pcr/python-gensim/PKGBUILD | 54 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 16 deletions(-) mode change 100755 => 100644 pcr/python-gensim/PKGBUILD (limited to 'pcr') diff --git a/pcr/python-gensim/PKGBUILD b/pcr/python-gensim/PKGBUILD old mode 100755 new mode 100644 index d38b80700..f0ab07dc0 --- a/pcr/python-gensim/PKGBUILD +++ b/pcr/python-gensim/PKGBUILD @@ -1,31 +1,53 @@ +# Contributor (Arch) : Maarten van Gompel +# Contributor (Arch) : Lex Black +# Contributor (Arch) : Dieter_be # Maintainer (Parabola) : Aurélien DESBRIÈRES -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? } -- cgit v1.2.3-54-g00ecf