[76842] trunk/dports/python

afb at macports.org afb at macports.org
Thu Mar 10 01:33:20 PST 2011


Revision: 76842
          http://trac.macports.org/changeset/76842
Author:   afb at macports.org
Date:     2011-03-10 01:33:19 -0800 (Thu, 10 Mar 2011)
Log Message:
-----------
py*-cairo: make py*-numpy a build(test) dependency
           maintainer timeout, 3+ months (#27369)

Modified Paths:
--------------
    trunk/dports/python/py-cairo/Portfile
    trunk/dports/python/py25-cairo/Portfile
    trunk/dports/python/py26-cairo/Portfile
    trunk/dports/python/py27-cairo/Portfile

Modified: trunk/dports/python/py-cairo/Portfile
===================================================================
--- trunk/dports/python/py-cairo/Portfile	2011-03-10 08:56:56 UTC (rev 76841)
+++ trunk/dports/python/py-cairo/Portfile	2011-03-10 09:33:19 UTC (rev 76842)
@@ -25,8 +25,9 @@
 
 depends_build   port:pkgconfig
 depends_lib     port:python24 \
-                path:lib/pkgconfig/cairo.pc:cairo \
-                port:py-numpy
+                path:lib/pkgconfig/cairo.pc:cairo
+# depends_test
+depends_build-append port:py-numpy
 
 configure.python    ${prefix}/bin/python2.4
 
@@ -52,5 +53,10 @@
     move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python_prefix}/lib
 }
 
+post-patch      { reinplace "s/python /python2.4 /" ${worksrcpath}/test/test.test }
+test.run         yes
+test.cmd         "cd test && python2.4"
+test.target      test.py
+
 livecheck.type  regex
 livecheck.regex ${my_name}-(1\\.4\\.\\d+)

Modified: trunk/dports/python/py25-cairo/Portfile
===================================================================
--- trunk/dports/python/py25-cairo/Portfile	2011-03-10 08:56:56 UTC (rev 76841)
+++ trunk/dports/python/py25-cairo/Portfile	2011-03-10 09:33:19 UTC (rev 76842)
@@ -26,8 +26,9 @@
 
 depends_build   port:pkgconfig
 depends_lib     port:python25 \
-                path:lib/pkgconfig/cairo.pc:cairo \
-                port:py25-numpy
+                path:lib/pkgconfig/cairo.pc:cairo
+# depends_test
+depends_build-append port:py25-numpy
 
 configure.python    ${prefix}/bin/python2.5
 
@@ -53,6 +54,11 @@
     move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python_prefix}/lib
 }
 
+post-patch      { reinplace "s/python /python2.5 /" ${worksrcpath}/test/test.test }
+test.run         yes
+test.cmd         "cd test && python2.5"
+test.target      test.py
+
 livecheck.type   regex
 livecheck.url    http://cairographics.org/releases/
 livecheck.regex  LATEST-pycairo-(\\d+(?:\\.\\d+)*)

Modified: trunk/dports/python/py26-cairo/Portfile
===================================================================
--- trunk/dports/python/py26-cairo/Portfile	2011-03-10 08:56:56 UTC (rev 76841)
+++ trunk/dports/python/py26-cairo/Portfile	2011-03-10 09:33:19 UTC (rev 76842)
@@ -25,8 +25,10 @@
                     rmd160  932e19f2f582bdf5735bdc92720b76edfb0a0c8e
 
 depends_build   port:pkgconfig
-depends_lib     path:lib/pkgconfig/cairo.pc:cairo \
-                port:py26-numpy
+depends_lib     port:python26 \
+                path:lib/pkgconfig/cairo.pc:cairo
+# depends_test
+depends_build-append port:py26-numpy
 
 configure.python    ${prefix}/bin/python2.6
 
@@ -48,6 +50,11 @@
         ${destroot}${docdir}
 }
 
+depends_build-append port:py26-py 
+test.run         yes
+test.cmd         "cd test && py.test-2.6"
+test.target      
+
 livecheck.type   regex
 livecheck.url    http://cairographics.org/releases/
 livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Modified: trunk/dports/python/py27-cairo/Portfile
===================================================================
--- trunk/dports/python/py27-cairo/Portfile	2011-03-10 08:56:56 UTC (rev 76841)
+++ trunk/dports/python/py27-cairo/Portfile	2011-03-10 09:33:19 UTC (rev 76842)
@@ -25,8 +25,10 @@
                     rmd160  932e19f2f582bdf5735bdc92720b76edfb0a0c8e
 
 depends_build   port:pkgconfig
-depends_lib     path:lib/pkgconfig/cairo.pc:cairo \
-                port:py27-numpy
+depends_lib     port:python27 \
+                path:lib/pkgconfig/cairo.pc:cairo
+# depends_test
+depends_build-append port:py27-numpy
 
 configure.python    ${prefix}/bin/python2.7
 
@@ -48,6 +50,11 @@
         ${destroot}${docdir}
 }
 
+depends_build-append port:py27-py 
+test.run         yes
+test.cmd         "cd test && py.test-2.7"
+test.target      
+
 livecheck.type   regex
 livecheck.url    http://cairographics.org/releases/
 livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110310/f34c0d98/attachment-0001.html>


More information about the macports-changes mailing list