source: trunk/dports/gnome/gitg/Portfile

Last change on this file was 153328, checked in by devans@…, 10 months ago

gitg: update to version 3.22.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# -*- 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
2# $Id: Portfile 153328 2016-09-29 04:33:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           compiler_blacklist_versions 1.0
7PortGroup           gobject_introspection 1.0
8
9name                gitg
10version             3.22.0
11license             GPL-2+
12set branch          [join [lrange [split ${version} .] 0 1] .]
13description         GNOME git repository viewer.
14long_description    gitg is a fast git repository browser. It currently features: \
15                    \n * Loading large repositories very fast \
16                    \n * Show/browse repository history \
17                    \n * Show highlighted revision diff \
18                    \n * Browse file tree of a revision and export by drag and drop \
19                    \n * Search in the revision history on subject, author or hash \
20                    \n * Switch between history view of branches easily \
21                    \n * Commit view providing per hunk stage/unstage and commit
22
23maintainers         juanrgar devans openmaintainer
24categories          gnome devel
25platforms           darwin
26homepage            http://www.gnome.org/
27master_sites        gnome:sources/${name}/${branch}/
28
29use_xz              yes
30
31checksums           rmd160  c73323d0c4e68c54be5597718dffe34657fb9162 \
32                    sha256  ba6895f85c18748294075980a5e03e0936ad4e84534dbb0d8f9e29aa874ddeaf
33
34depends_build       port:pkgconfig \
35                    port:intltool \
36                    port:gnome-common \
37                    port:autoconf \
38                    port:automake \
39                    port:libtool
40
41depends_lib         port:desktop-file-utils \
42                    port:gsettings-desktop-schemas \
43                    port:gtk3 \
44                    port:gtksourceview3 \
45                    port:gtkspell3 \
46                    port:libgee \
47                    port:libgit2-glib \
48                    port:libpeas \
49                    port:libsoup \
50                    port:libsecret
51
52depends_run         port:gnome-themes-standard
53
54gobject_introspection yes
55
56patchfiles          patch-autogen.sh.diff
57
58# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
59
60configure.cmd       ./autogen.sh
61
62# blacklist compilers that do not support C11 redefinition of typedefs
63# redefinition of typedef 'GgitRef' at libgit2-glib/ggit-ref.h:33
64# redefinition of typedef 'GgitCloneOptions' at libgit2-glib/ggit-clone-options.h:34
65# redefinition of typedef 'GgitCommit' at libgit2-glib/ggit-commit.h:37
66# redefinition of typedef 'GgitRemote' at libgit2-glib/ggit-remote.h:34
67compiler.blacklist  *gcc* {clang < 300}
68
69configure.args      --enable-compile-warnings=no \
70                    --disable-schemas-compile \
71                    --disable-silent-rules
72
73variant quartz {}
74
75if {[variant_isset quartz]} {
76    require_active_variants gtk3 quartz
77} else {
78    require_active_variants gtk3 x11
79}
80
81post-activate {
82    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
83    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
84    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
85}
86
87livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.