[88899] trunk/dports/lang/py-htmldocs/Portfile

dports at macports.org dports at macports.org
Sat Jan 14 15:46:59 PST 2012


Revision: 88899
          http://trac.macports.org/changeset/88899
Author:   dports at macports.org
Date:     2012-01-14 15:46:57 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
py-htmldocs: don't access ${python.version} in stub port; set
livecheck only in subports (see #32840)

Modified Paths:
--------------
    trunk/dports/lang/py-htmldocs/Portfile

Modified: trunk/dports/lang/py-htmldocs/Portfile
===================================================================
--- trunk/dports/lang/py-htmldocs/Portfile	2012-01-14 23:44:32 UTC (rev 88898)
+++ trunk/dports/lang/py-htmldocs/Portfile	2012-01-14 23:46:57 UTC (rev 88899)
@@ -10,21 +10,23 @@
 revision            1
 license             {PSF}
 
-if {${python.version} == 25} {
-    version             2.5.4
+if {$subport != $name} {
+    if {${python.version} == 25} {
+        version             2.5.4
+    }
+    if {${python.version} == 26} {
+        version             2.6.7
+    }
+    if {${python.version} == 27} {
+        version             2.7.2
+    }
+    if {${python.version} == 31} {
+        version             3.1.4
+    }
+    if {${python.version} == 32} {
+        version             3.2.2
+    }
 }
-if {${python.version} == 26} {
-    version             2.6.7
-}
-if {${python.version} == 27} {
-    version             2.7.2
-}
-if {${python.version} == 31} {
-    version             3.1.4
-}
-if {${python.version} == 32} {
-    version             3.2.2
-}
 
 categories          lang
 platforms           darwin
@@ -38,10 +40,7 @@
 description         HTML documentation for Python
 long_description    ${description}. Unified port supplies py2\[567\]-htmldocs
 homepage            http://www.python.org/
-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\]*)
+livecheck.type      none
 
 if {${name} != ${subport}} {
     description         HTML documentation for Python ${version}
@@ -52,6 +51,11 @@
     distname            python-${version}-docs-html
     set extractname     ${distname}
 
+    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\]*)
+
     if {${python.version} == 25} {
         checksums           md5     b4041ec1faf9b6070aad451eeb5ab487 \
                             sha1    f547228fbabc9b259ca4c4b32daffc813cfe5455 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/50aa445d/attachment.html>


More information about the macports-changes mailing list