source: trunk/dports/gnome/gnome-system-log/Portfile

Last change on this file was 142404, checked in by devans@…, 21 months ago

gnome-system-log: depend on gnome-themes-standard rather than gnome-settings-daemon, increment revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 142404 2015-11-11 04:55:32Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gnome-system-log
7version             3.9.90
8revision            3
9license             GPL-2+
10set branch          [join [lrange [split ${version} .] 0 1] .]
11description         GNOME system log viewer.
12long_description    GNOME Log File Viewer is a graphical, menu-driven viewer that you can use \
13                    to view and monitor your system logs. GNOME Log File Viewer comes with \
14                    a few functions that can help you manage your logs, including a log \
15                    monitor and log statistics display.
16
17maintainers         juanrgar devans openmaintainer
18categories          gnome
19platforms           darwin
20homepage            https://www.gnome.org
21master_sites        gnome:sources/${name}/${branch}/
22
23use_xz              yes
24
25checksums           rmd160  37b004ca1ef7b62b2ecc261ac41d309916e935bf \
26                    sha256  9eeb51982d347aa7b33703031e2c1d8084201374665425cd62199649b29a5411
27
28depends_build       port:pkgconfig \
29                    port:intltool \
30                    port:itstool \
31                    port:yelp-tools \
32                    port:autoconf \
33                    port:automake \
34                    port:libtool \
35                    port:gnome-common
36
37depends_lib         port:desktop-file-utils \
38                    port:gtk3
39
40depends_run         port:gnome-themes-standard \
41                    port:yelp
42
43# apply upstream patch to prevent configuration failure when using autogen.sh
44# see patch comments for details
45
46patchfiles          patch-fix-autogen-and-configure.diff
47
48# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
49
50post-patch {
51    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
52}
53
54configure.cmd       ./autogen.sh
55
56configure.args      --disable-zlib \
57                    --disable-schemas-compile \
58                    --disable-silent-rules
59
60default_variants    +zlib
61
62variant zlib description {Enable zlib support} {
63    depends_lib-append port:zlib
64    configure.args-delete --disable-zlib
65    configure.args-append --enable-zlib
66}
67
68# if port gnome-utils is installed
69# and gnome-system-log binary exists
70# and port gnome-system-log is NOT installed
71# deactivate outdated port gnome-utils
72 
73pre-activate {
74    if {![catch {registry_active gnome-utils}]} {
75        if {[file exists ${prefix}/bin/gnome-system-log]} {
76            if {[catch {registry_active gnome-system-log}]} {
77                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
78            }
79        }
80    }
81}
82
83# port installs hicolor and HighContrast icons, desktop application file, and gschemas
84post-activate {
85    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
86    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/HighContrast"
87    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
88    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
89}
90
91livecheck.type  gnome-with-unstable
Note: See TracBrowser for help on using the repository browser.