source: trunk/dports/python/py30-curses/Portfile @ 29789

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

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@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-curses
17version                 3.0a1
18categories              python
19platforms               darwin
20maintainers             mww
21description             Python bindings to ncurses
22long_description        Python modules curses and curses-panel
23
24homepage                http://www.python.org/doc/current/lib/module-curses.html
25master_sites    http://www.python.org/ftp/python/3.0/
26distname                Python-${version}
27dist_subdir             python30
28checksums               md5 89356ece9bd276e78a9e63cfe4a83a23
29extract.suffix          .tgz
30
31worksrcdir              ${worksrcdir}/Modules
32
33extract.post_args       "| tar -xf - ${distname}/Modules/_cursesmodule.c \
34                        ${distname}/Modules/_curses_panel.c"
35post-extract {
36        file copy       ${filespath}/setup.py ${worksrcpath}
37}
38
39depends_lib-append      port:ncursesw
40
41configure       {
42        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
43        reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.py
44        reinplace "s|__INCDIR__|${prefix}/include|g" ${worksrcpath}/setup.py
45}
46
47livecheck.check regex
48livecheck.url   http://www.python.org/download/releases/3.0/
49livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz
50
Note: See TracBrowser for help on using the repository browser.