summaryrefslogtreecommitdiff
path: root/pcr/python-gensim/PKGBUILD
blob: 8aa231329a68e0878fbde29c255e8a338ce07d79 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer (Arch): Maarten van Gompel <proycon at anaproy dot nl>
# Contributor (Arch): Lex Black <autumn-wind at web dot de>
# Contributor (Arch): Dieter_be
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_pkgbase=gensim
pkgbase=python-gensim
pkgname=('python-gensim' 'python2-gensim')
pkgver=0.11.1_1
pkgrel=1
pkgdesc="Python framework for fast Vector Space Modelling"
arch=('i686' 'x86_64')
url="http://nlp.fi.muni.cz/projekty/gensim/"
license=('LGPL')
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=('375c19503d92868b22b150062558cf31')


prepare() {
    cp -r $_pkgbase-${pkgver//_/-} $_pkgbase-${pkgver//_/-}-py2
}

build() {
    unset LDFLAGS
    unset FFLAGS

    cd ${srcdir}/$_pkgbase-${pkgver//_/-}
    python setup.py build

    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}
}