1 | # $Id: Portfile,v 1.8 2003/08/06 06:27:37 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name python21 |
---|
4 | version 2.1.3 |
---|
5 | revision 0 |
---|
6 | categories lang |
---|
7 | maintainers robert@or.homeip.net |
---|
8 | description An interpreted, object-oriented programming language |
---|
9 | platforms darwin |
---|
10 | distname Python-${version} |
---|
11 | extract.sufx .tgz |
---|
12 | master_sites ftp://ftp.python.org/pub/python/${version}/ |
---|
13 | checksums md5 a8b04cdc822a6fc833ed9b99c7fba589 |
---|
14 | depends_lib lib:expat.0:expat |
---|
15 | extract.only Python-${version}${extract.sufx} |
---|
16 | post-patch { |
---|
17 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py |
---|
18 | reinplace "s|'Tools/scripts/pydoc'||" ${worksrcpath}/setup.py |
---|
19 | reinplace "s|osname = string.replace(.*)|&; machine = string.replace(machine, ' ', '_')|" ${worksrcpath}/Lib/distutils/util.py |
---|
20 | reinplace "s|/bin/env python|&2.1|" ${worksrcpath}/Tools/scripts/pydoc |
---|
21 | } |
---|
22 | configure.args --with-suffix=.exe --with-dyld |
---|
23 | destroot.destdir prefix=${destroot}${prefix} |
---|
24 | post-destroot { |
---|
25 | # only keep 2.1 specific version to prevent 2.2 clash |
---|
26 | file delete ${destroot}${prefix}/bin/python.exe |
---|
27 | file rename -force ${destroot}${prefix}/bin/python2.1.exe \ |
---|
28 | ${destroot}${prefix}/bin/python2.1 |
---|
29 | system "install -m 0755 ${worksrcpath}/Tools/scripts/pydoc \ |
---|
30 | ${destroot}${prefix}/bin/pydoc2.1" |
---|
31 | } |
---|
32 | |
---|
33 | long_description \ |
---|
34 | Python is an interpreted, interactive, object-oriented programming \ |
---|
35 | language that combines remarkable power with very clear syntax. \ |
---|
36 | \ |
---|
37 | This is the older 2.1 series of Python which is needed when installing \ |
---|
38 | the Zope and/or Plone ports. |
---|
39 | |
---|
40 | # vim: ts=8 sw=8 |
---|