[84489] trunk/dports/python

snc at macports.org snc at macports.org
Mon Sep 26 11:57:06 PDT 2011


Revision: 84489
          http://trac.macports.org/changeset/84489
Author:   snc at macports.org
Date:     2011-09-26 11:57:05 -0700 (Mon, 26 Sep 2011)
Log Message:
-----------
py-twisted-web2:
 * unify
 * fix livecheck
 * license

Modified Paths:
--------------
    trunk/dports/python/py-twisted-web2/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-twisted-web2/
    trunk/dports/python/py26-twisted-web2/
    trunk/dports/python/py27-twisted-web2/

Modified: trunk/dports/python/py-twisted-web2/Portfile
===================================================================
--- trunk/dports/python/py-twisted-web2/Portfile	2011-09-26 18:55:23 UTC (rev 84488)
+++ trunk/dports/python/py-twisted-web2/Portfile	2011-09-26 18:57:05 UTC (rev 84489)
@@ -1,30 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
-name			py-twisted-web2
-version			8.1.0
+name                py-twisted-web2
+version            8.1.0
+python.versions     24 25 26 27
+# py-twisted-web2 was originally for python24
+# so keep `python.default_version  24`
 set branch [join [lrange [split $version .] 0 1] .]
-categories		python devel net
-platforms		darwin
-maintainers		nomaintainer
-description		Twisted.Web2 is the next generation Web Server \
-			Framework built with Twisted.
-long_description	Twisted.Web2 is the next generation Web Server \
-			Framework built with Twisted. Web2 is under active \
-			development and it's APIs should not be considered \
-			stable at this point. It is not a version of \
-			Twisted.Web and with that in mind compatibility is \
-			not of the highest concern, though the compatibility \
-			layer does support many but not all twisted.web \
-			resources.
-homepage		http://twistedmatrix.com/projects/web2/
-master_sites	        http://tmrc.mit.edu/mirror/twisted/Web2/${branch}
-distname		TwistedWeb2-${version}
-use_bzip2		yes
-checksums		md5 e34b48edf6fef075bd41ddbd215aed32 \
-			sha1 4a03e62453037b009ee5f0e1396be792249b9e2f \
-			rmd160 b77f70a62c93e13f51ab715ff6d1c379885a28bc
+categories        python devel net
+platforms        darwin
+maintainers         snc openmaintainer
+license             MIT
+description        Twisted.Web2 is the next generation Web Server \
+            Framework built with Twisted.
+long_description    Twisted.Web2 is the next generation Web Server \
+            Framework built with Twisted. Web2 is under active \
+            development and it's APIs should not be considered \
+            stable at this point. It is not a version of \
+            Twisted.Web and with that in mind compatibility is \
+            not of the highest concern, though the compatibility \
+            layer does support many but not all twisted.web \
+            resources.
+homepage        http://twistedmatrix.com/projects/web2/
+master_sites            http://tmrc.mit.edu/mirror/twisted/Web2/${branch}
 
-depends_build-append	port:py-twisted
+if {${subport} != ${name}} {
+    distname            TwistedWeb2-${version}
+    use_bzip2           yes
+    checksums           rmd160  b77f70a62c93e13f51ab715ff6d1c379885a28bc \
+                        sha256  0f016d498b1db0216861e9b8fbf8ad49b5b587fa64a18f1640095c1e4f93e391
+
+    if {${python.version} == 24} {
+        depends_build-append    port:py-twisted
+    } else {
+        depends_build-append    port:py${python.version}-twisted
+    }
+    
+    livecheck.type      none
+} else {
+    livecheck.url       http://twistedmatrix.com/Releases/Twisted/
+    livecheck.regex     (\\d+(\\.\\d+)+)
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110926/972d2bf6/attachment.html>


More information about the macports-changes mailing list