# -*- 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
PortGroup compiler_blacklist_versions 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers cal openmaintainer
description Python bindings for GObject, version 3
PyGObject is a Python dynamic module that enables developers to use the \
power of GObject, which is part of the GNOME platform.
homepage https://wiki.gnome.org/Projects/PyGObject
master_sites gnome:sources/${my_name}/${branch}/
distname ${my_name}-${version}
checksums sha256 de620e00fe7ecb788aa2dc0d664e41f71b8e718e728168e8d982cf193a9e7e64 \
rmd160 e33890c8023a0a30202126b9973d4b749b6dbae9
if {${name} ne ${subport}} {
depends_build-append port:pkgconfig
depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:py${python.version}-cairo \
port:gobject-introspection
# blacklist compilers that do not support C11
compiler.blacklist *gcc* {clang < 300}
configure.python ${python.bin}
configure.pkg_config_path \
${python.prefix}/lib/pkgconfig
configure.pre_args --prefix='${python.prefix}'
configure.args --disable-glibtest \
configure.cppflags-append \
-I${python.prefix}/include
build.cmd [portbuild::build_getmaketype]
destroot.cmd ${build.cmd}
destroot.destdir DESTDIR=${destroot}
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]