[143618] trunk/dports/lang/py-htmldocs/Portfile
eborisch at macports.org
eborisch at macports.org
Tue Dec 15 15:40:40 PST 2015
Revision: 143618
https://trac.macports.org/changeset/143618
Author: eborisch at macports.org
Date: 2015-12-15 15:40:40 -0800 (Tue, 15 Dec 2015)
Log 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.
Modified Paths:
--------------
trunk/dports/lang/py-htmldocs/Portfile
Modified: trunk/dports/lang/py-htmldocs/Portfile
===================================================================
--- trunk/dports/lang/py-htmldocs/Portfile 2015-12-15 23:39:52 UTC (rev 143617)
+++ trunk/dports/lang/py-htmldocs/Portfile 2015-12-15 23:40:40 UTC (rev 143618)
@@ -4,20 +4,25 @@
PortSystem 1.0
name py-htmldocs
PortGroup python 1.0
-python.versions 25 26 27 31 32 33 34
+python.versions 26 27 31 32 33 34 35
python.default_version 27
version 1.0
revision 1
-license {PSF}
+# Not really, but don't bother serving up archives from packages.macports.org
+# when they would (effectively) be a re-packaging of the distribution file.
+# installs_libs below keeps this from impacting any (if they exist) ports
+# depending on this one.
+license restrictive
+
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} == 27} { version 2.7.11 }
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 }
+ if {${python.version} == 35} { version 3.5.1 }
}
categories lang
@@ -40,20 +45,12 @@
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}/
+ master_sites http://docs.python.org/${python.branch}/archives
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 \
@@ -62,8 +59,8 @@
if {${python.version} == 27} {
checksums \
- rmd160 23594a2ee90be4f9cc62dc1fdbeb81592282665e \
- sha256 e5f399cccc365f16679a32cd79d2b1bd0906c8838b7ea83f5a0c8236d2324e61
+ rmd160 95434961a1497ac299413170d7497b4bade9daed \
+ sha256 5d23768c9b06a2df01479b625a5b0b3aaf6e863b7d2b959c9033ef2d858999ec
}
if {${python.version} == 31} {
@@ -86,10 +83,16 @@
if {${python.version} == 34} {
checksums \
- rmd160 43bb8781c5200f3df04e992494cd7299b7709137 \
- sha256 87d4f8739205fe6f2cbcb10c6f1b33546d3b7f41e6bc96de34f992ccf5c10fbf
+ rmd160 3cfdc8682fee199be83163026aa2a387f36e14af \
+ sha256 62690cf2d6781cf761aa4ae3c81b8a794700f6b61e4cef0cadbcf4f96a5b7da1
}
+ if {${python.version} == 35} {
+ checksums \
+ rmd160 49486d6fc7612d3633b463ccada35c9db8d6f856 \
+ sha256 88987a65776e5f8449509125b246a6146a0566434a2492bfb1adf57232b5a371
+ }
+
build {}
destroot {
@@ -100,10 +103,9 @@
system "chmod -R a+rX ${destdocdir}"
}
- livecheck.url http://www.python.org/ftp/python/doc/
+ livecheck.url https://docs.python.org/${python.branch}/download.html
livecheck.type regex
- set version_pattern [string range ${python.version} 0 end-1]\\.[string index ${python.version} end]
- livecheck.regex (${version_pattern}\[\\.0-9\]*)
+ livecheck.regex python-(\[0-9\]+(\\.\[0-9abrc\]+){2})-docs
} else {
livecheck.type none
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151215/b7388dd5/attachment-0001.html>
More information about the macports-changes
mailing list