Ticket #22517: Portfile

File Portfile, 2.2 KB (added by eborisch@…, 14 years ago)
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    python26-doc
6version                 2.6.4
7categories              lang
8platforms               darwin
9maintainers             nomaintainer
10
11description             HTML documentation for Python 2.6
12long_description        HTML documentation for Python 2.6. Use by running \
13                        'pydoc2.6 TOPIC', e.g. 'pydoc2.6 NUMBERS'.
14
15homepage                http://www.python.org/
16master_sites            ${homepage}/ftp/python/${version}/ \
17                        ftp://ftp.python.org/pub/python/${version}/ \
18                        ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \
19                        ftp://ftp.python.jp/pub/python/${version}/
20
21dist_subdir             [lindex [split $name -] 0]
22distname                Python-${version}
23extract.suffix          .tgz
24
25checksums       md5 17dcac33e4f3adb69a57c2607b6de246
26
27depends_lib     port:gettext port:python26:latex2html
28
29patchfiles      patch-Makefile.pre.in.diff \
30                patch-Misc-setuid-prog.c.diff \
31                patch-Modules-posixmodule.c.diff \
32                patch-setup.py.diff \
33                patch-Lib-cgi.py.diff
34
35configure.args  --enable-shared \
36                        --mandir=${prefix}/share/man \
37                        --disable-framework
38
39post-patch {
40    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
41}
42
43build.target    html
44build.cmd       { cd Doc && make }
45
46destroot {
47        file mkdir ${destroot}${prefix}/share/doc/
48        file copy $worksrcpath/Doc/build/html ${destroot}${prefix}/share/doc/${name}
49}
50
51platform darwin 7 {
52        # there is no SystemStubs on 10.3
53        post-patch { reinplace "s|-lSystemStubs||g" ${worksrcpath}/Makefile.pre.in }
54        # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth@gmail.com, ticket #13322)
55        configure.ldflags-append "-lcc_dynamic"
56}
57
58platform darwin 8 {
59        configure.args-append   --with-cxx=/usr/bin/g++-4.0
60}
61
62platform darwin 9 {
63        configure.cppflags-append       -D__DARWIN_UNIX03
64        configure.args-append   --with-cxx=/usr/bin/g++-4.0
65}
66
67variant universal {
68    configure.args-append   --enable-universalsdk=/
69}
70
71# for w/o quicktime sdk, etc. (be prepared for framework build, though)
72platform puredarwin {
73#       configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
74        configure.args-append   --disable-toolbox-glue --disable-framework
75}
76
77livecheck.type  regex
78livecheck.url   ${homepage}download/releases/
79livecheck.regex {Python (2\.6(?:\.\d+)*)}
80