| 1 | # $Id: Portfile 20773 2006-11-27 20:30:24Z pmq@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name python25 |
|---|
| 6 | version 2.5 |
|---|
| 7 | categories lang |
|---|
| 8 | platforms darwin |
|---|
| 9 | maintainers mww@opendarwin.org pmq@macports.org |
|---|
| 10 | |
|---|
| 11 | description An interpreted, object-oriented programming language |
|---|
| 12 | long_description Python is an interpreted, interactive, object-oriented \ |
|---|
| 13 | programming language. |
|---|
| 14 | |
|---|
| 15 | homepage http://www.python.org |
|---|
| 16 | master_sites ${homepage}/ftp/python/2.5 \ |
|---|
| 17 | ftp://ftp.python.org/pub/python/2.5 |
|---|
| 18 | |
|---|
| 19 | distname Python-${version} |
|---|
| 20 | use_bzip2 yes |
|---|
| 21 | checksums sha1 98ce9346cc4a7ef4621ecdcfc3957d595d97a078 \ |
|---|
| 22 | rmd160 f6977a6c3d3ca54c27ad9270918237a7e6521d0b |
|---|
| 23 | |
|---|
| 24 | depends_lib bin:bzip2:bzip2 port:ncursesw port:openssl \ |
|---|
| 25 | port:readline port:sqlite3 port:zlib \ |
|---|
| 26 | port:db44 |
|---|
| 27 | |
|---|
| 28 | configure.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 | |
|---|
| 36 | test.run yes |
|---|
| 37 | test.target test |
|---|
| 38 | |
|---|
| 39 | destroot.target install maninstall |
|---|
| 40 | post-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 | |
|---|
| 45 | platform puredarwin { |
|---|
| 46 | configure.args-append --disable-toolbox-glue --disable-framework |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | platform 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 | |
|---|
| 56 | variant tk { |
|---|
| 57 | configure.args-delete --disable-tk |
|---|
| 58 | configure.args-append --enable-tk |
|---|
| 59 | depends_lib-append port:tk |
|---|
| 60 | } |
|---|
| 61 | variant readline { |
|---|
| 62 | configure.args-delete --without-readline |
|---|
| 63 | configure.args-append --with-readline |
|---|
| 64 | depends_lib-append port:readline |
|---|
| 65 | } |
|---|