Ticket #27369: pycairo-numpy-test.diff
File pycairo-numpy-test.diff, 2.2 KB (added by afb@…, 14 years ago) |
---|
-
python/py26-cairo/Portfile
6 6 name py26-cairo 7 7 set my_name py2cairo 8 8 version 1.8.10 9 revision 1 9 10 categories python x11 10 11 platforms darwin 11 12 maintainers mcalhoun openmaintainer … … 24 25 rmd160 932e19f2f582bdf5735bdc92720b76edfb0a0c8e 25 26 26 27 depends_build port:pkgconfig 27 depends_lib path:lib/pkgconfig/cairo.pc:cairo \ 28 port:py26-numpy 28 depends_lib port:python26 \ 29 path:lib/pkgconfig/cairo.pc:cairo 30 # depends_test 31 depends_build-append port:py26-numpy 29 32 30 33 configure.python ${prefix}/bin/python2.6 31 34 … … 47 50 ${destroot}${docdir} 48 51 } 49 52 53 depends_build-append port:py26-py 54 test.run yes 55 test.cmd "cd test && py.test-2.6" 56 test.target 57 50 58 livecheck.type regex 51 59 livecheck.url http://cairographics.org/releases/ 52 60 livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" -
python/py25-cairo/Portfile
6 6 name py25-cairo 7 7 set my_name pycairo 8 8 version 1.8.2 9 revision 1 9 10 categories python x11 10 11 platforms darwin 11 12 maintainers mcalhoun … … 25 26 26 27 depends_build port:pkgconfig 27 28 depends_lib port:python25 \ 28 path:lib/pkgconfig/cairo.pc:cairo \ 29 port:py25-numpy 29 path:lib/pkgconfig/cairo.pc:cairo 30 # depends_test 31 depends_build-append port:py25-numpy 30 32 31 33 configure.python ${prefix}/bin/python2.5 32 34 … … 52 54 move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python_prefix}/lib 53 55 } 54 56 57 post-patch { reinplace "s/python /python2.5 /" ${worksrcpath}/test/test.test } 58 test.run yes 59 test.cmd "cd test && python2.5" 60 test.target test.py 61 55 62 livecheck.type regex 56 63 livecheck.url http://cairographics.org/releases/ 57 64 livecheck.regex LATEST-pycairo-(\\d+(?:\\.\\d+)*)