Ticket #42035: gnome-system-log-3990-Portfile

File gnome-system-log-3990-Portfile, 2.7 KB (added by juanrgar (Juan R. García Blanco), 10 years ago)

gnome-system-log@3.9.90

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$
3
4PortSystem          1.0
5
6name                gnome-system-log
7version             3.9.90
8license             GPL-2 GFDL-1.1
9set branch          [join [lrange [split ${version} .] 0 1] .]
10description         GNOME system log viewer.
11long_description    GNOME Log File Viewer is a graphical, menu-driven viewer that you can use \
12                    to view and monitor your system logs. GNOME Log File Viewer comes with \
13                    a few functions that can help you manage your logs, including a log \
14                    monitor and log statistics display.
15
16maintainers         gmail.com:juanrgar openmaintainer
17categories          gnome
18platforms           darwin
19homepage            https://www.gnome.org
20master_sites        gnome:sources/${name}/${branch}/
21
22use_xz              yes
23
24checksums           rmd160  37b004ca1ef7b62b2ecc261ac41d309916e935bf \
25                    sha256  9eeb51982d347aa7b33703031e2c1d8084201374665425cd62199649b29a5411
26
27depends_build       port:pkgconfig \
28                    port:intltool \
29                    port:itstool
30
31depends_lib         port:desktop-file-utils \
32                    port:gnome-icon-theme \
33                    port:gnome-icon-theme-symbolic \
34                    port:gtk3
35
36depends_run         port:gnome-settings-daemon \
37                    port:yelp
38
39configure.args      --disable-zlib \
40                    --disable-schemas-compile \
41                    --disable-silent-rules
42
43default_variants    +zlib
44
45variant zlib description {Enable zlib support} {
46    depends_lib-append port:zlib
47    configure.args-delete --disable-zlib
48    configure.args-append --enable-zlib
49}
50
51# if port gnome-utils is installed
52# and gnome-system-log binary exists
53# and port gnome-system-log is NOT installed
54# deactivate outdated port gnome-utils
55 
56pre-activate {
57    if {![catch {registry_active gnome-utils}]} {
58        if {[file exists ${prefix}/bin/gnome-system-log]} {
59            if {[catch {registry_active gnome-system-log}]} {
60                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
61            }
62        }
63    }
64}
65
66# port installs hicolor and HighContrast icons, desktop application file, and gschemas
67post-activate {
68    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
69    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/HighContrast"
70    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
71    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
72}
73
74livecheck.type  gnome-with-unstable