# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:fenc=utf-8::et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup active_variants 1.1 PortGroup github 1.0 PortGroup python 1.0 github.setup pygobject pycairo 1.15.4 v # uncomment when upgrading to next version # github.tarball_from releases revision 2 name py-cairo categories-append graphics license {LGPL-2.1 MPL-1.1} platforms darwin maintainers sean openmaintainer description Pycairo is set of Python bindings for the cairo graphics library long_description ${description} checksums rmd160 16ce1ad969a9fb06f8f28a7b07495b738d1af22f \ sha256 9cfd69b782400048df819298f889b4ea924e16edadcaf94bb3b19c02b798df2d python.versions 27 34 35 36 if {${name} ne ${subport}} { depends_build port:pkgconfig depends_lib-append path:lib/pkgconfig/cairo.pc:cairo variant quartz { require_active_variants cairo quartz } variant x11 { require_active_variants cairo x11 } if {[catch {set result [active_variants cairo quartz]}]} { default_variants-append +quartz } if {[catch {set result [active_variants cairo x11]}]} { default_variants-append +x11 } post-extract { fs-traverse item ${worksrcpath} { if {[file isdirectory ${item}]} { file attributes ${item} -permissions a+rx } elseif {[file isfile ${item}]} { file attributes ${item} -permissions a+r } } } patchfiles pkgconfig-dir-lib-pkgconfig.patch livecheck.type none }