# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup active_variants 1.1 PortGroup github 1.0 PortGroup python 1.0 github.setup pygobject pycairo 1.27.0 v name py-cairo github.tarball_from releases revision 0 categories-append graphics license {LGPL-2.1 MPL-1.1} maintainers nomaintainer description Pycairo is set of Python bindings for the cairo graphics library long_description {*}${description} checksums rmd160 0fb3d1f81dc48f1f3a2f4c04912bf53ba94520af \ sha256 5cb21e7a00a2afcafea7f14390235be33497a2cce53a98a19389492a60628430 \ size 661450 python.versions 27 35 36 37 38 39 310 311 312 313 if {${name} ne ${subport}} { depends_build-append path:bin/pkg-config:pkgconfig \ port:py${python.version}-cython \ port:py${python.version}-setuptools if {${python.version} == 27} { github.setup pygobject pycairo 1.18.2 v revision 0 checksums rmd160 49a2ed4c9cf5c2606e7cf7c9693bceff40a1bebf \ sha256 dcb853fd020729516e8828ad364084e752327d4cff8505d20b13504b32b16531 \ size 200462 } elseif {${python.version} < 37} { github.setup pygobject pycairo 1.20.1 v revision 0 checksums rmd160 7e4477f3067503c40b6e31d985b21cf6c214acc2 \ sha256 1ee72b035b21a475e1ed648e26541b04e5d7e753d75ca79de8c583b25785531b \ size 344639 } elseif {${python.version} == 37} { github.setup pygobject pycairo 1.23.0 v revision 0 checksums rmd160 eed7451eca845fcd980d7de18079d913631a795b \ sha256 9b61ac818723adc04367301317eb2e814a83522f07bbd1f409af0dada463c44c \ size 344623 } elseif {${python.version} == 38} { github.setup pygobject pycairo 1.26.1 v revision 0 checksums rmd160 2eda068376d5949629f3c174472f4d3d40f53c72 \ sha256 a11b999ce55b798dbf13516ab038e0ce8b6ec299b208d7c4e767a6f7e68e8430 \ size 346882 } else { python.pep517_backend meson } depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \ path:lib/pkgconfig/glib-2.0.pc:glib2 depends_test-append port:py${python.version}-hypothesis test.run yes test.env-append PYTHONPATH=${destroot}${python.pkgd} # cairo/surface.c:478: error: #pragma GCC diagnostic not allowed inside functions # early clang versions don't use CPATH compiler.blacklist-append *gcc-3.* *gcc-4.* {clang < 300} variant quartz { require_active_variants cairo quartz } variant x11 { require_active_variants cairo x11 } if {[catch {active_variants cairo quartz} result] || $result} { default_variants-append +quartz } if {[catch {active_variants cairo x11} result] || $result} { default_variants-append +x11 } livecheck.type none }