source: trunk/dports/lang/python24-doc/Portfile

Last change on this file was 105662, checked in by jmr@…, 4 years ago

python24-doc: set license, remove unused file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 105662 2013-04-29 23:25:04Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            python24-doc
6version         2.4.4
7categories      lang
8license         PSF
9platforms       darwin freebsd linux
10maintainers     nomaintainer
11description     HTML documentation for Python 2.4
12long_description    HTML documentation for Python 2.4. Use by running \
13                    'pydoc2.4 TOPIC', e.g. 'pydoc2.4 NUMBERS'.
14
15homepage        http://www.python.org/
16master_sites    ${homepage}ftp/python/${version}/ \
17                ftp://ftp.python.org/pub/python/${version}/
18dist_subdir     [lindex [split $name -] 0]
19distname        Python-${version}
20checksums       md5 0ba90c79175c017101100ebf5978e906
21patchfiles      patch-configure \
22                patch-Makefile.pre.in \
23                patch-Lib-cgi.py \
24                patch-Lib-site.py \
25                patch-setup.py \
26                patch-Include-pyport.h \
27                patch-Mac-OSX-Makefile.in \
28                patch-Mac-OSX-IDLE-Makefile.in \
29                patch-Mac-OSX-PythonLauncher-Makefile.in
30
31use_bzip2       yes
32
33depends_lib     port:gettext port:python24 port:latex2html
34
35configure.args  --enable-shared \
36                --mandir=${prefix}/share/man \
37                --bindir=${prefix}/bin \
38                --libdir=${prefix}/lib \
39                --without-readline \
40                --enable-framework=${prefix}/Library/Frameworks \
41                --disable-tk \
42                --enable-ipv6
43
44post-patch {
45    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
46    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/site.py
47    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Mac/OSX/Makefile.in
48    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
49}
50
51build.target    html
52build.cmd       { cd Doc && make }
53
54destroot.target frameworkinstall maninstall
55destroot {
56        set framewdir ${prefix}/Library/Frameworks/Python.framework
57        file mkdir ${destroot}${framewdir}/Versions/2.4/Resources/English.ljproj/Documentation
58        system "cd $worksrcpath/Doc/html/ && \
59                cp -r * ${destroot}${framewdir}/Versions/2.4/Resources/English.ljproj/Documentation"
60}
61
62
63# delete symlinks without version suffix, use python_select instead to choose version
64
65platform puredarwin {
66    configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
67    configure.args-append   --disable-toolbox-glue --disable-framework
68    destroot.target     install maninstall
69}
70
71platform darwin 8 {
72    configure.args-append --with-cxx=/usr/bin/g++-4.0
73}
74
75platform darwin 9 {
76    configure.cppflags-append    -D__DARWIN_UNIX03
77}
78
79platform freebsd {
80    configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
81    configure.args-append   --disable-framework
82    build.target        all libpython2.4.so
83    destroot.target     install maninstall
84}
85
86platform linux {
87    configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
88    configure.args-append   --disable-framework
89    build.target        all libpython2.4.so
90    destroot.target     install maninstall
91}
92
93livecheck.type  regex
94livecheck.url   http://www.python.org/download/releases/
95livecheck.regex Python (2.4.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.