# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description A Cairo Canvas Widget for GTK+ version 3
long_description GooCanvas is a canvas widget for GTK+ version 3 that uses the cairo 2D library \
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Projects/GooCanvas
master_sites gnome:sources/${gname}/${branch}/
distname ${gname}-${version}
checksums rmd160 e287fb64b998b3e4dc3f68d88860bf6c4d6c1736 \
sha256 c728e2b7d4425ae81b54e1e07a3d3c8a4bd6377a63cffa43006045bceaa92e90
depends_build port:pkgconfig \
patchfiles patch-configure.diff
gobject_introspection yes
configure.args --disable-silent-rules \
# doesn't support python3 yet
variant python27 description {Build Python bindings using Python 2.7} {
set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
configure.args-replace --enable-python=no --enable-python=yes
configure.python ${prefix}/bin/python2.7
configure.pkg_config_path ${python_prefix}/lib/pkgconfig
depends_lib-append port:py27-gobject3
default_variants +python27