Ticket #10937: Portfile

File Portfile, 1.4 KB (added by blair (Blair Zajac), 17 years ago)
Line 
1# $Id: Portfile,v 1.2 2006/08/19 12:31:42 mww Exp $
2
3PortSystem 1.0
4
5name                    python25
6version                 2.5
7categories              lang
8platforms               darwin
9maintainers             mww@macports.org
10description             An interpreted, object-oriented programming language
11long_description        Python is an interpreted, interactive, object-oriented \
12                                programming language.
13
14homepage                http://www.python.org/
15master_sites            http://www.python.org/ftp/python/2.5/ \
16                                ftp://ftp.python.org/pub/python/2.5/
17distname                Python-${version}
18checksums               md5 ddb7401e711354ca83b7842b733825a3 \
19                        sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078 \
20                        rmd160 f6977a6c3d3ca54c27ad9270918237a7e6521d0b
21
22use_bzip2               yes
23
24configure.args  --enable-shared \
25                                --mandir=${prefix}/share/man \
26                                --bindir=${prefix}/bin \
27                                --libdir=${prefix}/lib \
28                                --without-readline \
29                                --enable-ipv6 \
30                                --disable-tk
31
32test.run                yes
33test.target             test
34
35destroot.target install maninstall
36post-destroot {
37        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"
38        system "cd ${destroot}${prefix}/share/man/man1 && mv python.1 python2.5.1"
39}
40
41platform puredarwin {
42        configure.args-append   --disable-toolbox-glue --disable-framework
43}
44
45platform darwin 8 {
46        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
47        configure.args-append --with-cxx=/usr/bin/g++-4.0
48}