source: trunk/dports/python/py-gensim/Portfile

Last change on this file was 148976, checked in by raimue@…, 16 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set real_name       gensim
8name                py-${real_name}
9version             0.12.1
10categories-append   textproc
11maintainers         hum openmaintainer
12supported_archs     noarch
13
14description         Python framework for fast Vector Space Modelling
15
16long_description    Gensim is a Python library for topic modelling, document \
17                    indexing and similarity retrieval with large corpora. \
18                    Target audience is the natural language processing (NLP) and \
19                    information retrieval (IR) community.
20
21homepage            http://radimrehurek.com/gensim/
22platforms           darwin
23license             LGPL
24
25master_sites        pypi:g/${real_name}/
26distname            ${real_name}-${version}
27
28python.versions     27 34
29
30if {${name} ne ${subport}} {
31    checksums           rmd160  b2a282ed554d7b811d0f753ebc69a40ad7309a62 \
32                        sha256  82e9f4c018dc98a1cb59ab93b6e544c5f8a1ec40b644335e5eb0e073f428a2f8
33    depends_lib-append  port:py${python.version}-numpy \
34                        port:py${python.version}-scipy
35    post-destroot {
36        set docdir ${prefix}/share/doc/${subport}
37        xinstall -d ${destroot}${docdir}
38        xinstall -m 644 -W ${worksrcpath} \
39            CHANGELOG.txt COPYING COPYING.LESSER README.rst \
40            ${destroot}${docdir}
41    }
42    livecheck.type      none
43} else {
44    livecheck.type      regex
45    livecheck.url       https://pypi.python.org/pypi/${real_name}/json
46    livecheck.regex     "${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
47}
Note: See TracBrowser for help on using the repository browser.