You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
67 lines
2.2 KiB
Tcl
67 lines
2.2 KiB
Tcl
# -*- 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.20.0 v
|
|
name py-cairo
|
|
github.tarball_from releases
|
|
revision 0
|
|
|
|
categories-append graphics
|
|
license {LGPL-2.1 MPL-1.1}
|
|
platforms darwin
|
|
maintainers nomaintainer
|
|
|
|
description Pycairo is set of Python bindings for the cairo graphics library
|
|
long_description ${description}
|
|
|
|
checksums rmd160 e27cf9ad27fb430ea1eed8da41bb9bb6108284bc \
|
|
sha256 5695a10cb7f9ae0d01f665b56602a845b0a8cb17e2123bfece10c2e58552468c \
|
|
size 344370
|
|
|
|
python.versions 27 35 36 37 38 39
|
|
|
|
if {${name} ne ${subport}} {
|
|
if {${python.version} == 27} {
|
|
github.setup pygobject pycairo 1.18.2 v
|
|
revision 0
|
|
checksums rmd160 49a2ed4c9cf5c2606e7cf7c9693bceff40a1bebf \
|
|
sha256 dcb853fd020729516e8828ad364084e752327d4cff8505d20b13504b32b16531 \
|
|
size 200462
|
|
}
|
|
|
|
depends_build-append port:pkgconfig
|
|
depends_lib-append path:lib/pkgconfig/cairo.pc:cairo
|
|
|
|
depends_test-append port:py${python.version}-pytest \
|
|
port:py${python.version}-hypothesis
|
|
|
|
test.run yes
|
|
|
|
# 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 {set result [active_variants cairo quartz]}]} {
|
|
default_variants-append +quartz
|
|
}
|
|
|
|
if {[catch {set result [active_variants cairo x11]}]} {
|
|
default_variants-append +x11
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|