Changeset 143618 for trunk/dports/lang


Ignore:
Timestamp:
Dec 15, 2015, 11:40:40 PM (3 years ago)
Author:
eborisch@…
Message:

py-htmldocs: Remove 25, add 35. Update download / regex checks. Set license to restrictive to avoid having MacPorts 'build' packages (which are essentially re-archiving the exctraction of the distfile.) installs_lib is 'no', so this won't impact other packages distribution.

File:
1 edited

Legend:

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

    r137288 r143618  
    55name                py-htmldocs
    66PortGroup           python 1.0
    7 python.versions     25 26 27 31 32 33 34
     7python.versions     26 27 31 32 33 34 35
    88python.default_version 27
    99version             1.0
    1010revision            1
    11 license             {PSF}
     11
     12# Not really, but don't bother serving up archives from packages.macports.org
     13# when they would (effectively) be a re-packaging of the distribution file.
     14# installs_libs below keeps this from impacting any (if they exist) ports
     15# depending on this one.
     16license             restrictive
    1217
    1318if {$subport != $name} {
    14     if {${python.version} == 25} { version 2.5.4 }
    1519    if {${python.version} == 26} { version 2.6.9 }
    16     if {${python.version} == 27} { version 2.7.10 }
     20    if {${python.version} == 27} { version 2.7.11 }
    1721    if {${python.version} == 31} { version 3.1.5 }
    1822    if {${python.version} == 32} { version 3.2.6 }
    1923    if {${python.version} == 33} { version 3.3.6 }
    2024    if {${python.version} == 34} { version 3.4.3 }
     25    if {${python.version} == 35} { version 3.5.1 }
    2126}
    2227
     
    4146        file://${prefix}/share/doc/python${python.version}-doc/index.html
    4247
    43     master_sites        http://www.python.org/ftp/python/doc/${version}/
     48    master_sites        http://docs.python.org/${python.branch}/archives
    4449    distname            python-${version}-docs-html
    4550    set extractname     ${distname}
    4651    depends_lib-delete  port:python${python.version}
    4752    notes               ${long_description}
    48 
    49     if {${python.version} == 25} {
    50       distname            html-${version}
    51       set extractname     Python-Docs-2.5.4
    52       checksums \
    53         rmd160  78cf1d55bc50b9c4535d1519a11a0a4e1a47a12e \
    54         sha256  b73eaeaf0400e64d9bb223cfb0d09a935e8044f0ba485e5bc549b003e6df8325
    55     }
    5653
    5754    if {${python.version} == 26} {
     
    6360    if {${python.version} == 27} {
    6461      checksums \
    65         rmd160  23594a2ee90be4f9cc62dc1fdbeb81592282665e \
    66         sha256  e5f399cccc365f16679a32cd79d2b1bd0906c8838b7ea83f5a0c8236d2324e61
     62        rmd160  95434961a1497ac299413170d7497b4bade9daed \
     63        sha256  5d23768c9b06a2df01479b625a5b0b3aaf6e863b7d2b959c9033ef2d858999ec
    6764    }
    6865   
     
    8784    if {${python.version} == 34} {
    8885      checksums \
    89         rmd160  43bb8781c5200f3df04e992494cd7299b7709137 \
    90         sha256  87d4f8739205fe6f2cbcb10c6f1b33546d3b7f41e6bc96de34f992ccf5c10fbf
     86        rmd160  3cfdc8682fee199be83163026aa2a387f36e14af \
     87        sha256  62690cf2d6781cf761aa4ae3c81b8a794700f6b61e4cef0cadbcf4f96a5b7da1
     88    }
     89
     90    if {${python.version} == 35} {
     91      checksums \
     92        rmd160  49486d6fc7612d3633b463ccada35c9db8d6f856 \
     93        sha256  88987a65776e5f8449509125b246a6146a0566434a2492bfb1adf57232b5a371
    9194    }
    9295
     
    101104    }
    102105   
    103     livecheck.url       http://www.python.org/ftp/python/doc/
     106    livecheck.url       https://docs.python.org/${python.branch}/download.html
    104107    livecheck.type      regex
    105     set version_pattern [string range ${python.version} 0 end-1]\\.[string index ${python.version} end]
    106     livecheck.regex     (${version_pattern}\[\\.0-9\]*)
     108    livecheck.regex     python-(\[0-9\]+(\\.\[0-9abrc\]+){2})-docs
    107109} else {
    108110    livecheck.type      none
Note: See TracChangeset for help on using the changeset viewer.