# -*- 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 # $Id: Portfile 153328 2016-09-29 04:33:55Z devans@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup compiler_blacklist_versions 1.0 PortGroup gobject_introspection 1.0 name gitg version 3.22.0 license GPL-2+ 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 juanrgar devans openmaintainer categories gnome devel platforms darwin homepage http://www.gnome.org/ master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 c73323d0c4e68c54be5597718dffe34657fb9162 \ sha256 ba6895f85c18748294075980a5e03e0936ad4e84534dbb0d8f9e29aa874ddeaf depends_build port:pkgconfig \ port:intltool \ port:gnome-common \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gsettings-desktop-schemas \ port:gtk3 \ port:gtksourceview3 \ port:gtkspell3 \ port:libgee \ port:libgit2-glib \ port:libpeas \ port:libsoup \ port:libsecret depends_run port:gnome-themes-standard 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 \ --disable-silent-rules variant quartz {} if {[variant_isset quartz]} { require_active_variants gtk3 quartz } else { require_active_variants gtk3 x11 } post-activate { 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" } livecheck.type gnome