Ticket #11267: Portfile

File Portfile, 1.8 KB (added by dinosaur@…, 17 years ago)

Updated Portfile

Line 
1# $Id: Portfile 20773 2006-11-27 20:30:24Z pmq@macports.org $
2
3PortSystem 1.0
4
5name               python25
6version            2.5
7categories         lang
8platforms          darwin
9maintainers        mww@opendarwin.org pmq@macports.org
10
11description        An interpreted, object-oriented programming language
12long_description   Python is an interpreted, interactive, object-oriented \
13                   programming language.
14
15homepage           http://www.python.org
16master_sites       ${homepage}/ftp/python/2.5 \
17                   ftp://ftp.python.org/pub/python/2.5
18
19distname           Python-${version}
20use_bzip2          yes
21checksums          sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078 \
22                   rmd160 f6977a6c3d3ca54c27ad9270918237a7e6521d0b
23
24depends_lib        bin:bzip2:bzip2 port:ncursesw port:openssl \
25                   port:readline port:sqlite3 port:zlib \
26                   port:db44
27
28configure.args     --enable-shared \
29                   --mandir=${prefix}/share/man \
30                   --bindir=${prefix}/bin \
31                   --libdir=${prefix}/lib \
32                   --without-readline \
33                   --enable-ipv6 \
34                   --disable-tk
35
36test.run           yes
37test.target        test
38
39destroot.target    install maninstall
40post-destroot {
41        system "cd ${destroot}${prefix}/bin && mv idle idle2.5 && mv pydoc pydoc2.5 && mv python-config python-config2.5 && mv smtpd.py smtpd2.5.py && rm python"
42        system "cd ${destroot}${prefix}/share/man/man1 && mv python.1 python2.5.1"
43}
44
45platform puredarwin {
46        configure.args-append   --disable-toolbox-glue --disable-framework
47}
48
49platform darwin 8 {
50        configure.env           CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 \
51                                CXX=/usr/bin/g++-4.0
52        configure.args-append   --with-cxx=/usr/bin/g++-4.0 \
53                   --enable-framework=${prefix}/Library/Frameworks
54}
55
56variant tk {
57        configure.args-delete   --disable-tk
58        configure.args-append   --enable-tk
59        depends_lib-append      port:tk
60}
61variant readline {
62        configure.args-delete   --without-readline
63        configure.args-append   --with-readline
64        depends_lib-append      port:readline
65}