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

Last change on this file was 148976, checked in by raimue@…, 18 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
7name                py-hypy
8version             0.8.5.1
9categories-append   textproc
10license             LGPL-2.1
11platforms           darwin
12maintainers         nomaintainer
13
14description         Fulltext search interface for Python applications
15long_description    Hypy is a fulltext search interface for Python \
16                    applications. Use it to index and search your \
17                    documents from Python code.
18homepage            http://goonmill.org/hypy/
19
20master_sites        pypi:H/Hypy/
21distname            Hypy-${version}
22checksums           md5     61f2a7f618a24dc249d33b4670f13d55 \
23                    rmd160  d300b13e1bc5b33c607de6c7e2357b9c9ae77440 \
24                    sha256  56d63dd65b81d1c1c3c57d167833fc3777b99c4d650a5d6b516eef95a27605e0
25
26python.versions     27
27
28if {${name} ne ${subport}} {
29    depends_build       port:py${python.version}-setuptools
30    depends_lib-append  port:hyperestraier
31
32    patchfiles          patch-setup.py.diff
33    post-patch {
34       reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
35       reinplace "s|VERSION_NOT_FOUND|${version}|" ${worksrcpath}/setup.py
36    }
37
38    post-destroot {
39       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
40       xinstall -m 644 -W ${worksrcpath} README.txt \
41          ${destroot}${prefix}/share/doc/${subport}
42    }
43    livecheck.type      none
44} else {
45    livecheck.type      regex
46    livecheck.url       ${master_sites}
47    livecheck.regex     {Hypy-([0-9.]+)\.tar\.gz}
48}
Note: See TracBrowser for help on using the repository browser.