Ticket #747: Portfile.2

File Portfile.2, 1.5 KB (added by robert@…, 21 years ago)

ATTACHMENT: python21-2.1.3

Line 
1# $Id: Portfile,v 1.8 2003/08/06 06:27:37 rshaw Exp $
2PortSystem 1.0
3name            python21
4version         2.1.3
5revision        0
6categories      lang
7maintainers     robert@or.homeip.net
8description     An interpreted, object-oriented programming language
9platforms       darwin
10distname        Python-${version}
11extract.sufx    .tgz
12master_sites    ftp://ftp.python.org/pub/python/${version}/
13checksums       md5 a8b04cdc822a6fc833ed9b99c7fba589
14depends_lib     lib:expat.0:expat
15extract.only    Python-${version}${extract.sufx}
16post-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}
22configure.args          --with-suffix=.exe --with-dyld
23destroot.destdir        prefix=${destroot}${prefix}
24post-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
33long_description \
34Python is an interpreted, interactive, object-oriented programming \
35language that combines remarkable power with very clear syntax. \
36\
37This is the older 2.1 series of Python which is needed when installing \
38the Zope and/or Plone ports.
39
40# vim: ts=8 sw=8