# -*- 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 active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description GNOME git repository viewer.
long_description gitg is a fast git repository browser. It currently features: \
\n * Loading large repositories very fast \
\n * Show/browse repository history \
\n * Show highlighted revision diff \
\n * Browse file tree of a revision and export by drag and drop \
\n * Search in the revision history on subject, author or hash \
\n * Switch between history view of branches easily \
\n * Commit view providing per hunk stage/unstage and commit
maintainers {devans @dbevans} openmaintainer
homepage https://www.gnome.org/
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 444ae82b90a2f88a03a89b7fdcdd5bd92de381db \
sha256 26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5
depends_build port:pkgconfig \
depends_lib port:desktop-file-utils \
port:gsettings-desktop-schemas \
depends_run port:adwaita-icon-theme
gobject_introspection yes
patchfiles patch-autogen.sh.diff
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
configure.cmd ./autogen.sh
# blacklist compilers that do not support C11 redefinition of typedefs
# redefinition of typedef 'GgitRef' at libgit2-glib/ggit-ref.h:33
# redefinition of typedef 'GgitCloneOptions' at libgit2-glib/ggit-clone-options.h:34
# redefinition of typedef 'GgitCommit' at libgit2-glib/ggit-commit.h:37
# redefinition of typedef 'GgitRemote' at libgit2-glib/ggit-remote.h:34
compiler.blacklist *gcc* {clang < 300}
configure.args --enable-compile-warnings=no \
--disable-schemas-compile \
if {[variant_isset quartz]} {
require_active_variants gtk3 quartz
require_active_variants gtk3 x11
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"