1 | # $Id: Portfile,v 1.2 2006/08/19 12:31:42 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name python25 |
---|
6 | version 2.5 |
---|
7 | categories lang |
---|
8 | platforms darwin |
---|
9 | maintainers mww@macports.org |
---|
10 | description An interpreted, object-oriented programming language |
---|
11 | long_description Python is an interpreted, interactive, object-oriented \ |
---|
12 | programming language. |
---|
13 | |
---|
14 | homepage http://www.python.org/ |
---|
15 | master_sites http://www.python.org/ftp/python/2.5/ \ |
---|
16 | ftp://ftp.python.org/pub/python/2.5/ |
---|
17 | distname Python-${version} |
---|
18 | checksums md5 ddb7401e711354ca83b7842b733825a3 \ |
---|
19 | sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078 \ |
---|
20 | rmd160 f6977a6c3d3ca54c27ad9270918237a7e6521d0b |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | configure.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 | |
---|
32 | test.run yes |
---|
33 | test.target test |
---|
34 | |
---|
35 | destroot.target install maninstall |
---|
36 | post-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 | |
---|
41 | platform puredarwin { |
---|
42 | configure.args-append --disable-toolbox-glue --disable-framework |
---|
43 | } |
---|
44 | |
---|
45 | platform 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 | } |
---|