# -*- 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
PortGroup compiler_blacklist_versions 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description Glib wrapper library around the libgit2 git access library.
long_description ${description}
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/action/show/Apps/Gitg
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 1f636833ae323c693cb92b4deb926b4d82c07627 \
sha256 2ad6f20db2e38bbfdb6cb452704fe8a911036b86de82dc75bb0f3b20db40ce9c
depends_build port:pkgconfig
depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
patchfiles patch-configure.ac.diff
gobject_introspection yes
compiler.blacklist *gcc* {clang < 300}
configure.args --disable-silent-rules \
--enable-compile-warnings=minimum \
# requires python >= 3.2.3
variant python35 conflicts python36 description {Enable Python support, using python35} {
configure.args-delete --enable-python=no
configure.args-append --enable-python=yes
depends_lib-append port:py35-gobject3
configure.python ${prefix}/bin/python3.5
configure.pkg_config_path-append ${frameworks_dir}/Python.framework/Versions/3.5/lib/pkgconfig/
variant python36 conflicts python35 description {Enable Python support, using python36} {
configure.args-delete --enable-python=no
configure.args-append --enable-python=yes
depends_lib-append port:py36-gobject3
configure.python ${prefix}/bin/python3.6