# -*- 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 # $Id$ PortSystem 1.0 name py-htmldocs PortGroup python 1.0 python.versions 25 26 27 31 32 33 34 python.default_version 27 version 1.0 revision 1 license {PSF} if {$subport != $name} { if {${python.version} == 25} { version 2.5.4 } if {${python.version} == 26} { version 2.6.9 } if {${python.version} == 27} { version 2.7.10 } if {${python.version} == 31} { version 3.1.5 } if {${python.version} == 32} { version 3.2.6 } if {${python.version} == 33} { version 3.3.6 } if {${python.version} == 34} { version 3.4.3 } } categories lang platforms darwin maintainers eborisch \ openmaintainer supported_archs noarch installs_libs no use_bzip2 yes use_configure no description Local HTML documentation for Python. long_description ${description} homepage http://www.python.org/ master_sites http://www.python.org/ftp/python/doc/ if {${name} != ${subport}} { description HTML documentation for Python ${version} long_description Access Python ${version} HTML docs via \ file://${prefix}/share/doc/python${python.version}-doc/index.html master_sites http://www.python.org/ftp/python/doc/${version}/ distname python-${version}-docs-html set extractname ${distname} depends_lib-delete port:python${python.version} notes ${long_description} if {${python.version} == 25} { distname html-${version} set extractname Python-Docs-2.5.4 checksums \ rmd160 78cf1d55bc50b9c4535d1519a11a0a4e1a47a12e \ sha256 b73eaeaf0400e64d9bb223cfb0d09a935e8044f0ba485e5bc549b003e6df8325 } if {${python.version} == 26} { checksums \ rmd160 a7bd375ac3a62249529da805693c3b15510ff976 \ sha256 f3faa71f4b0cc8fa2bb6c5624233ae79983a2d5c11195fb2089668c60ceb7f1f } if {${python.version} == 27} { checksums \ rmd160 23594a2ee90be4f9cc62dc1fdbeb81592282665e \ sha256 e5f399cccc365f16679a32cd79d2b1bd0906c8838b7ea83f5a0c8236d2324e61 } if {${python.version} == 31} { checksums \ rmd160 29717979d6a8b4e970a4747e101259da3e3890c1 \ sha256 ff327cfaa1219d8d82fcb4f3bae3ec4ce28567982a49784004130521d282faa0 } if {${python.version} == 32} { checksums \ rmd160 039539fc90454d35525c8b9478156f7135b86622 \ sha256 b746ef40a29abe7949e5f183e236a0734c58b841c0600043160a518390704c13 } if {${python.version} == 33} { checksums \ rmd160 84290bfaea54b943025f7088268f256d4a50cf71 \ sha256 54da33f8a91be819e7ac22fdc88c5125bdd4c67494f52dd79d6b603572c41fb0 } if {${python.version} == 34} { checksums \ rmd160 43bb8781c5200f3df04e992494cd7299b7709137 \ sha256 87d4f8739205fe6f2cbcb10c6f1b33546d3b7f41e6bc96de34f992ccf5c10fbf } build {} destroot { set destdocdir \ ${destroot}${prefix}/share/doc/python${python.version}-doc file mkdir ${destroot}${prefix}/share/doc file copy ${workpath}/${extractname} ${destdocdir} system "chmod -R a+rX ${destdocdir}" } livecheck.url http://www.python.org/ftp/python/doc/ livecheck.type regex set version_pattern [string range ${python.version} 0 end-1]\\.[string index ${python.version} end] livecheck.regex (${version_pattern}\[\\.0-9\]*) } else { livecheck.type none }