source: trunk/dports/python/py30-readline/Portfile @ 29592

Last change on this file since 29592 was 29592, checked in by mww@…, 13 years ago

new ports: missing python 3000 modules

File size: 1.3 KB
Line 
1# $Id: Portfile 24478 2007-04-25 09:02:48Z mww@macports.org $
2
3PortSystem 1.0
4#PortGroup python30 1.0
5# begin group code (remove this when the python30 group code becomes available)
6set python.bin  ${prefix}/bin/python3.0
7categories              python
8depends_lib             port:python30
9use_configure   no
10build.cmd               ${python.bin} setup.py
11build.target    build
12destroot.cmd    ${python.bin} setup.py
13destroot.destdir        --prefix=${prefix} --root=${destroot}
14# end group code
15
16name                    py30-readline
17version                 3.0a1
18categories              python
19platforms               darwin
20maintainers             mww
21description             readline extension for Python
22long_description        ${description}
23
24homepage                http://www.python.org/
25master_sites    http://www.python.org/ftp/python/3.0/
26distname                Python-${version}
27dist_subdir             python30
28checksums               md5 89356ece9bd276e78a9e63cfe4a83a23
29extract.suffix          .tgz
30
31depends_lib-append      port:readline
32
33worksrcdir              ${worksrcdir}/Modules
34
35extract.post_args       "| tar -xf - ${distname}/Modules/readline.c"
36post-extract {
37        file copy ${filespath}/setup.py ${worksrcpath}
38}
39
40configure {
41        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
42        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
43}
44
45livecheck.check regex
46livecheck.url   http://www.python.org/download/releases/3.0/
47livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz
Note: See TracBrowser for help on using the repository browser.