[90965] trunk/dports/python

jmr at macports.org jmr at macports.org
Tue Mar 20 02:46:25 PDT 2012


Revision: 90965
          https://trac.macports.org/changeset/90965
Author:   jmr at macports.org
Date:     2012-03-20 02:46:24 -0700 (Tue, 20 Mar 2012)
Log Message:
-----------
unify py*-mechanize, add py27 (#29032), update to 0.2.5, set license, mark noarch

Modified Paths:
--------------
    trunk/dports/python/py-mechanize/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-mechanize/
    trunk/dports/python/py26-mechanize/

Modified: trunk/dports/python/py-mechanize/Portfile
===================================================================
--- trunk/dports/python/py-mechanize/Portfile	2012-03-20 09:37:20 UTC (rev 90964)
+++ trunk/dports/python/py-mechanize/Portfile	2012-03-20 09:46:24 UTC (rev 90965)
@@ -2,35 +2,40 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name                py-mechanize
-version             0.1.9
+version             0.2.5
 categories          python www
+license             {BSD ZPL-2.1}
 platforms           darwin
-maintainers         openmaintainer akitada
+supported_archs     noarch
+maintainers         krischik akitada openmaintainer
 description         Stateful programmatic web browsing
 long_description    Stateful programmatic web browsing, after Andy \
                     Lester's Perl module WWW::Mechanize.
 
 homepage            http://wwwsearch.sourceforge.net/mechanize
-master_sites        ${homepage}/src
+master_sites        http://pypi.python.org/packages/source/m/mechanize \
+                    ${homepage}/src
 distname            mechanize-${version}
-checksums           md5 6754f9959a2d00ec028bf84db9300e87 \
-                    sha1 6d34e0ee75d86fc95e87342721d6ad7f00bdbaba \
-                    rmd160 009298883f7f68f96bf4fc7a9cdd20e6c936f6a8
+checksums           md5 32657f139fc2fb75bcf193b63b8c60b2 \
+                    sha1 9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 \
+                    rmd160 f9deafaeb591cd4047a6f8845221463320c86d9b
 
-depends_lib-append  port:py-clientform
-                    
-test.run            yes
-test.cmd            ${python.bin}
-test.target         test.py
+python.versions     24 25 26 27
 
-post-destroot {
-    foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
+if {$subport != $name} {
+    test.run            yes
+    test.cmd            ${python.bin}
+    test.target         test.py
+    
+    post-destroot {
+        foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
+            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
+        }
+        foreach f [glob -directory ${worksrcpath}/examples *] {
+            copy $f ${destroot}${prefix}/share/doc/${subport}/examples/[file tail $f]
+        }
     }
-    foreach f [glob -directory ${worksrcpath}/examples *] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
-    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120320/c44dff07/attachment-0001.html>


More information about the macports-changes mailing list