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

Last change on this file was 148976, checked in by raimue@…, 12 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.4 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-readline
8version             6.2.4.1
9revision            1
10platforms           darwin
11license             GPL-3+ PSF
12
13python.versions     26 27 34 35
14
15maintainers         nomaintainer
16
17description         GNU readline extension for Python
18long_description    ${description}
19
20homepage            http://github.com/ludwigschwardt/python-readline
21master_sites        pypi:r/readline/
22
23distname            readline-${version}
24
25checksums           rmd160  932c96cce3475344e4f5d7defc162d21f0acc79e \
26                    sha256  e00f86e03dfe52e7d1502cec5c64070b32621c85509c0081a4cfa6a0294bd107
27
28depends_lib         port:ncurses
29
30if {${name} ne ${subport}} {
31    depends_build-append \
32                        port:py${python.version}-setuptools
33
34    patchfiles          build.sh.patch \
35                        setup.py.patch
36
37    post-destroot {
38        copy -force ${filespath}/readline.pth ${filespath}/readline_path.py \
39            ${destroot}${python.pkgd}
40        reinplace "s|__LIBDIR__|${python.libdir}|" ${destroot}${python.pkgd}/readline_path.py
41    }
42
43    livecheck.type      none
44} else {
45    livecheck.type      regex
46    livecheck.url       https://pypi.python.org/pypi/readline/json
47    livecheck.regex     {readline-(\d+(?:\.\d+)*)\.[tz]}
48}
Note: See TracBrowser for help on using the repository browser.