New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82270


Ignore:
Timestamp:
08/11/11 14:12:56 (4 years ago)
Author:
eborisch@…
Message:

py-htmldocs: new unified port; Replaces python2[567]-doc

Location:
trunk/dports/lang
Files:
2 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/py-htmldocs/Portfile

    r80009 r82270  
    22# $Id$ 
    33 
    4 PortSystem 1.0 
     4PortSystem          1.0 
     5name                py-htmldocs 
     6PortGroup           python 1.0 
     7python.versions     25 26 27 
     8python.default_version 27 
    59 
    6 name                python27-doc 
    7 version             2.7.2 
     10if {${python.version} == 25} { 
     11    version             2.5.4 
     12} 
     13if {${python.version} == 26} { 
     14    version             2.6.7 
     15} 
     16if {${python.version} == 27} { 
     17    version             2.7.2 
     18} 
     19 
    820categories          lang 
    921platforms           darwin 
     
    1224supported_archs     noarch 
    1325 
    14 description         HTML documentation for Python ${version} 
    15 long_description    HTML documentation for Python ${version}. Accessible at \ 
    16                     file://${prefix}/share/doc/${name}/index.html 
    17  
    18 homepage            http://www.python.org/ 
    19 master_sites        http://www.python.org/ftp/python/doc/${version}/ 
    20 distname            python-${version}-docs-html 
    21  
    22 checksums           md5     40f0bd51b221662cae14fb0c6b6f622b \ 
    23                     sha1    0886850a5bcf3e14e903cd33d51d1a8b664cfe36 \ 
    24                     rmd160  d898264a2f0da8be8722396d25149c987e3614f8 
    25                                          
    2626use_bzip2           yes 
    27  
    2827use_configure       no 
    2928 
    30 build {} 
     29if {${name} != ${subport}} { 
     30    description         HTML documentation for Python ${version} 
     31    long_description    HTML documentation for Python ${version}. Accessible at \ 
     32                        file://${prefix}/share/doc/${subport}/index.html 
    3133 
    32 destroot { 
    33     file mkdir ${destroot}${prefix}/share/doc/ 
    34     file copy ${worksrcpath}/ ${destroot}${prefix}/share/doc/${name} 
     34    homepage            http://www.python.org/ 
     35    master_sites        http://www.python.org/ftp/python/doc/${version}/ 
     36    distname            python-${version}-docs-html 
     37    set extractname     ${distname} 
     38 
     39    if {${python.version} == 25} { 
     40        checksums           md5     b4041ec1faf9b6070aad451eeb5ab487 \ 
     41                            sha1    f547228fbabc9b259ca4c4b32daffc813cfe5455 \ 
     42                            rmd160  78cf1d55bc50b9c4535d1519a11a0a4e1a47a12e 
     43        distname            html-${version} 
     44        set extractname     Python-Docs-2.5.4 
     45    } 
     46    if {${python.version} == 26} { 
     47        checksums           md5     a2fc12049840d5c66262c546cdf241fd \ 
     48                            sha1    8cf151a4fd80f6a636d2292d340cd20858a58132 \ 
     49                            rmd160  f8ac90c6e97888f1bb0f0207994c0c05d27b83ac 
     50    } 
     51    if {${python.version} == 27} { 
     52        checksums           md5     40f0bd51b221662cae14fb0c6b6f622b \ 
     53                            sha1    0886850a5bcf3e14e903cd33d51d1a8b664cfe36 \ 
     54                            rmd160  d898264a2f0da8be8722396d25149c987e3614f8 
     55    } 
     56 
     57    build {} 
     58 
     59    destroot { 
     60        file mkdir ${destroot}${prefix}/share/doc/ 
     61        file copy ${workpath}/${extractname} ${destroot}${prefix}/share/doc/python${python.version}-doc 
     62    } 
    3563} 
    3664 
    37 livecheck.type    regex 
    38 livecheck.url   ${homepage}download/releases/ 
    39 livecheck.regex {Python (2\.7(?:\.\d+)*)} 
    4065 
  • trunk/dports/lang/python25-doc/Portfile

    r60534 r82270  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 
    12# $Id$ 
    23 
    3 PortSystem 1.0 
     4PortSystem          1.0 
     5name                python25-doc 
     6version             2.5.2 
     7categories          lang 
     8platforms           darwin 
     9maintainers         nomaintainer 
    410 
    5 name                    python25-doc 
    6 version                 2.5.2 
    7 categories              lang 
    8 platforms               darwin 
    9 maintainers             nomaintainer 
     11replaced_by         py25-htmldocs 
     12revision            1 
     13distfiles      
    1014 
    11 description             HTML documentation for Python 2.5 
    12 long_description        HTML documentation for Python 2.5. Use by running \ 
    13                         'pydoc2.5 TOPIC', e.g. 'pydoc2.5 NUMBERS'. 
     15description         HTML documentation for Python 2.5 
    1416 
    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}/ 
     17homepage            http://www.python.org/ 
    2018 
    21 dist_subdir             [lindex [split $name -] 0] 
    22 distname                Python-${version} 
    23 extract.suffix          .tgz 
    24  
    25 checksums       md5 3f7ca8aa86c6bd275426d63b46e07992 \ 
    26                 sha1 7a835c93a904ae4ecb2d23b5183e94d3b92f8305 \ 
    27                 rmd160 a6e2e81910639a362f265af2e3814e7b47e2110a 
    28  
    29 depends_lib     port:gettext port:python25 port:latex2html 
    30  
    31 patchfiles      patch-configure.diff \ 
    32                 patch-Makefile.pre.in.diff \ 
    33                 patch-Misc-setuid-prog.c.diff \ 
    34                 patch-Modules-posixmodule.c.diff \ 
    35                 patch-setup.py.diff \ 
    36                 patch-Lib-cgi.py.diff 
    37  
    38 configure.args  --enable-shared \ 
    39                         --mandir=${prefix}/share/man \ 
    40                         --disable-framework 
    41  
    42 post-patch { 
    43     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py 
     19livecheck.type      none 
     20pre-configure { 
     21    ui_error "Please do not install this port since it has been replaced by 'py25-htmldocs'." 
     22    return -code error 
    4423} 
    4524 
    46 build.target    html 
    47 build.cmd       { cd Doc && make } 
    48  
    49 destroot { 
    50         file mkdir ${destroot}${prefix}/share/doc/ 
    51         file copy $worksrcpath/Doc/html ${destroot}${prefix}/share/doc/${name} 
    52 } 
    53  
    54 platform darwin 8 { 
    55         configure.args-append   --with-cxx=/usr/bin/g++-4.0 
    56 } 
    57  
    58 platform darwin 9 { 
    59         configure.cppflags-append       -D__DARWIN_UNIX03 
    60         configure.args-append   --with-cxx=/usr/bin/g++-4.0 
    61 } 
    62  
    63 variant universal { 
    64     configure.args-append   --enable-universalsdk 
    65 } 
    66  
    67 # for w/o quicktime sdk, etc. (be prepared for framework build, though) 
    68 platform puredarwin { 
    69 #       configure.args-delete   --enable-framework=${prefix}/Library/Frameworks 
    70         configure.args-append   --disable-toolbox-glue --disable-framework 
    71 } 
    72  
    73 livecheck.type  regex 
    74 livecheck.url   ${homepage}download/releases/ 
    75 livecheck.regex {Python (2\.5(?:\.\d+)*)} 
    76  
  • trunk/dports/lang/python26-doc/Portfile

    r64026 r82270  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 
    12# $Id$ 
    23 
    3 PortSystem 1.0 
     4PortSystem          1.0 
     5name                        python26-doc 
     6version                     2.6.4 
     7categories                  lang 
     8platforms                   darwin 
     9maintainers                 nomaintainer 
    410 
    5 name                    python26-doc 
    6 version                 2.6.4 
    7 categories              lang 
    8 platforms               darwin 
    9 maintainers             nomaintainer 
     11replaced_by         py26-htmldocs 
     12revision            1 
     13distfiles      
    1014 
    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'. 
     15description                 HTML documentation for Python 2.6 
    1416 
    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}/ 
     17homepage                    http://www.python.org/ 
    2018 
    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 port: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 
     19livecheck.type      none 
     20pre-configure { 
     21    ui_error "Please do not install this port since it has been replaced by 'py26-htmldocs'." 
     22    return -code error 
    4123} 
    4224 
    43 build.target    html 
    44 build.cmd       { cd Doc && make } 
    4525 
    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 8 { 
    52         configure.args-append   --with-cxx=/usr/bin/g++-4.0 
    53 } 
    54  
    55 platform darwin 9 { 
    56         configure.cppflags-append       -D__DARWIN_UNIX03 
    57         configure.args-append   --with-cxx=/usr/bin/g++-4.0 
    58 } 
    59  
    60 variant universal { 
    61     configure.args-append   --enable-universalsdk=/ 
    62 } 
    63  
    64 # for w/o quicktime sdk, etc. (be prepared for framework build, though) 
    65 platform puredarwin { 
    66 #       configure.args-delete   --enable-framework=${prefix}/Library/Frameworks 
    67         configure.args-append   --disable-toolbox-glue --disable-framework 
    68 } 
    69  
    70 livecheck.type  regex 
    71 livecheck.url   ${homepage}download/releases/ 
    72 livecheck.regex {Python (2\.6(?:\.\d+)*)} 
    73  
  • trunk/dports/lang/python27-doc/Portfile

    r80009 r82270  
    22# $Id$ 
    33 
    4 PortSystem 1.0 
     4PortSystem          1.0 
     5name                    python27-doc 
     6version                     2.7.2 
     7categories                  lang 
     8platforms                   darwin 
     9maintainers                 nomaintainer 
    510 
    6 name                python27-doc 
    7 version             2.7.2 
    8 categories          lang 
    9 platforms           darwin 
    10 maintainers         eborisch \ 
    11                     openmaintainer 
    12 supported_archs     noarch 
     11replaced_by         py27-htmldocs 
     12revision            1 
     13distfiles      
    1314 
    14 description         HTML documentation for Python ${version} 
    15 long_description    HTML documentation for Python ${version}. Accessible at \ 
    16                     file://${prefix}/share/doc/${name}/index.html 
     15description                 HTML documentation for Python 2.7 
    1716 
    18 homepage            http://www.python.org/ 
    19 master_sites        http://www.python.org/ftp/python/doc/${version}/ 
    20 distname            python-${version}-docs-html 
     17homepage                    http://www.python.org/ 
    2118 
    22 checksums           md5     40f0bd51b221662cae14fb0c6b6f622b \ 
    23                     sha1    0886850a5bcf3e14e903cd33d51d1a8b664cfe36 \ 
    24                     rmd160  d898264a2f0da8be8722396d25149c987e3614f8 
    25                                          
    26 use_bzip2           yes 
    27  
    28 use_configure       no 
    29  
    30 build {} 
    31  
    32 destroot { 
    33     file mkdir ${destroot}${prefix}/share/doc/ 
    34     file copy ${worksrcpath}/ ${destroot}${prefix}/share/doc/${name} 
     19livecheck.type      none 
     20pre-configure { 
     21    ui_error "Please do not install this port since it has been replaced by 'py27-htmldocs'." 
     22    return -code error 
    3523} 
    3624 
    37 livecheck.type    regex 
    38 livecheck.url   ${homepage}download/releases/ 
    39 livecheck.regex {Python (2\.7(?:\.\d+)*)} 
    4025 
     26 
Note: See TracChangeset for help on using the changeset viewer.