[95240] trunk/dports/python
jmr at macports.org
jmr at macports.org
Sat Jul 7 07:49:46 PDT 2012
Revision: 95240
https://trac.macports.org/changeset/95240
Author: jmr at macports.org
Date: 2012-07-07 07:49:46 -0700 (Sat, 07 Jul 2012)
Log Message:
-----------
py*-twisted: unify, updating most subports to 11.1.0 in the process (#32645, #31711)
Modified Paths:
--------------
trunk/dports/python/py-twisted/Portfile
Added Paths:
-----------
trunk/dports/python/py-twisted/files/
Removed Paths:
-------------
trunk/dports/python/py25-twisted/
trunk/dports/python/py26-twisted/
trunk/dports/python/py27-twisted/
Modified: trunk/dports/python/py-twisted/Portfile
===================================================================
--- trunk/dports/python/py-twisted/Portfile 2012-07-07 14:44:43 UTC (rev 95239)
+++ trunk/dports/python/py-twisted/Portfile 2012-07-07 14:49:46 UTC (rev 95240)
@@ -1,14 +1,15 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; 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
-version 8.0.1
+version 11.1.0
categories python devel net
license MIT
platforms darwin
-maintainers free.fr:olv.bonnet akitada openmaintainer
+maintainers akitada mcalhoun free.fr:olv.bonnet openmaintainer
description An event-based Python framework for internet applications
long_description Twisted is an event-driven networking framework \
written in Python. Twisted supports TCP, UDP, SSL/TLS, \
@@ -17,21 +18,32 @@
much more.
homepage http://www.twistedmatrix.com/
-master_sites http://tmrc.mit.edu/mirror/twisted/Twisted/8.0/
+
+set dl_version [join [lrange [split ${version} .] 0 1] .]
+master_sites http://tmrc.mit.edu/mirror/twisted/Twisted/${dl_version} \
+ http://twistedmatrix.com/Releases/Twisted/${dl_version}
distname Twisted-${version}
use_bzip2 yes
-checksums md5 1ba5bb530356a867cfee35e65e58a43c \
- sha1 3a9ef797356788b719829f56694f38bd6407d4c9 \
- rmd160 94e1501d134a1193851e7351a7af076161c01e95
-depends_lib-append port:py24-zopeinterface
+checksums rmd160 569419f06bd72d658a870cee6ac596f00008a955 \
+ sha256 7fbb4529aaa3547708bb0a84377107db1e6ae7a6a9940bb8d8b05976c2754f15
-build {}
+python.versions 24 25 26 27
-post-destroot {
- foreach f [glob -directory ${destroot}${prefix}/bin *] {
- move $f ${destroot}${prefix}/bin/[file tail $f]2.4
- }
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-zopeinterface
+ post-destroot {
+ if {${python.version} <= 25} {
+ foreach f [glob -tails -directory ${destroot}${prefix}/bin *] {
+ move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}-${python.branch}
+ }
+ }
+ # update the plugin cache
+ system "PYTHONPATH=${destroot}${python.pkgd} ${python.bin} ${filespath}/getPlugins.py"
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url http://twistedmatrix.com/trac/wiki/Downloads
+ livecheck.regex "The current release is Twisted (\\d+(?:\\.\\d+)*)"
}
-
-destroot.env "PYTHONPATH=\$PYTHONPATH:${destroot}${python.pkgd}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120707/4dc43f8b/attachment.html>
More information about the macports-changes
mailing list