1 | # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name python26-doc |
---|
6 | version 2.6.4 |
---|
7 | categories lang |
---|
8 | platforms darwin |
---|
9 | maintainers nomaintainer |
---|
10 | |
---|
11 | description HTML documentation for Python 2.6 |
---|
12 | long_description HTML documentation for Python 2.6. Use by running \ |
---|
13 | 'pydoc2.6 TOPIC', e.g. 'pydoc2.6 NUMBERS'. |
---|
14 | |
---|
15 | homepage http://www.python.org/ |
---|
16 | master_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 | |
---|
21 | dist_subdir [lindex [split $name -] 0] |
---|
22 | distname Python-${version} |
---|
23 | extract.suffix .tgz |
---|
24 | |
---|
25 | checksums md5 17dcac33e4f3adb69a57c2607b6de246 |
---|
26 | |
---|
27 | depends_lib port:gettext port:python26:latex2html |
---|
28 | |
---|
29 | patchfiles 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 | |
---|
35 | configure.args --enable-shared \ |
---|
36 | --mandir=${prefix}/share/man \ |
---|
37 | --disable-framework |
---|
38 | |
---|
39 | post-patch { |
---|
40 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py |
---|
41 | } |
---|
42 | |
---|
43 | build.target html |
---|
44 | build.cmd { cd Doc && make } |
---|
45 | |
---|
46 | destroot { |
---|
47 | file mkdir ${destroot}${prefix}/share/doc/ |
---|
48 | file copy $worksrcpath/Doc/build/html ${destroot}${prefix}/share/doc/${name} |
---|
49 | } |
---|
50 | |
---|
51 | platform 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 | |
---|
58 | platform darwin 8 { |
---|
59 | configure.args-append --with-cxx=/usr/bin/g++-4.0 |
---|
60 | } |
---|
61 | |
---|
62 | platform darwin 9 { |
---|
63 | configure.cppflags-append -D__DARWIN_UNIX03 |
---|
64 | configure.args-append --with-cxx=/usr/bin/g++-4.0 |
---|
65 | } |
---|
66 | |
---|
67 | variant universal { |
---|
68 | configure.args-append --enable-universalsdk=/ |
---|
69 | } |
---|
70 | |
---|
71 | # for w/o quicktime sdk, etc. (be prepared for framework build, though) |
---|
72 | platform puredarwin { |
---|
73 | # configure.args-delete --enable-framework=${prefix}/Library/Frameworks |
---|
74 | configure.args-append --disable-toolbox-glue --disable-framework |
---|
75 | } |
---|
76 | |
---|
77 | livecheck.type regex |
---|
78 | livecheck.url ${homepage}download/releases/ |
---|
79 | livecheck.regex {Python (2\.6(?:\.\d+)*)} |
---|
80 | |
---|