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 116962 2014-02-11 11:45:30Z stromnov@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | set _name gnureadline |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-${_name} |
---|
11 | version 6.3.3 |
---|
12 | platforms darwin |
---|
13 | license GPL-3+ PSF |
---|
14 | maintainers nomaintainer |
---|
15 | |
---|
16 | description GNU readline extension for Python |
---|
17 | long_description ${description} |
---|
18 | |
---|
19 | homepage https://github.com/ludwigschwardt/python-gnureadline |
---|
20 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
21 | distname ${_name}-${version} |
---|
22 | |
---|
23 | checksums md5 c4af83c9a3fbeac8f2da9b5a7c60e51c \ |
---|
24 | rmd160 ea8a3beb064ff355b7688f757c51590622ce6d65 \ |
---|
25 | sha256 a259b038f4b625b07e6206bbc060baa5489ca17c798df3f9507875f2bf980cbe |
---|
26 | |
---|
27 | python.versions 26 27 33 34 |
---|
28 | |
---|
29 | if {${name} ne ${subport}} { |
---|
30 | depends_build-append \ |
---|
31 | port:py${python.version}-setuptools |
---|
32 | |
---|
33 | # patchfiles build.sh.patch \ invalid |
---|
34 | # patchfiles setup.py.patch invalid |
---|
35 | |
---|
36 | post-destroot { |
---|
37 | copy -force ${filespath}/readline.pth ${filespath}/readline_path.py \ |
---|
38 | ${destroot}${python.pkgd} |
---|
39 | reinplace "s|__LIBDIR__|${python.libdir}|" ${destroot}${python.pkgd}/readline_path.py |
---|
40 | } |
---|
41 | |
---|
42 | livecheck.type none |
---|
43 | } else { |
---|
44 | livecheck.type regex |
---|
45 | livecheck.url [lindex ${master_sites} 0] |
---|
46 | livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" |
---|
47 | } |
---|