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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gnome-system-log |
---|
7 | version 3.8.1 |
---|
8 | license GPL-2 GFDL-1.1 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description GNOME system log viewer. |
---|
11 | long_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 | |
---|
16 | maintainers gmail.com:juanrgar openmaintainer |
---|
17 | categories gnome |
---|
18 | platforms darwin |
---|
19 | homepage https://www.gnome.org |
---|
20 | master_sites gnome:sources/${name}/${branch}/ |
---|
21 | |
---|
22 | use_xz yes |
---|
23 | |
---|
24 | checksums rmd160 927d6dcc1daf14e7065c80b215cc316bd485629b \ |
---|
25 | sha256 2393d00e059212b5a1135589d11412c0639fe9e60958ccff1bac238139dd4967 |
---|
26 | |
---|
27 | depends_build port:pkgconfig \ |
---|
28 | port:intltool \ |
---|
29 | port:itstool |
---|
30 | |
---|
31 | depends_lib port:desktop-file-utils \ |
---|
32 | port:gnome-icon-theme \ |
---|
33 | port:gnome-icon-theme-symbolic \ |
---|
34 | port:gtk3 |
---|
35 | |
---|
36 | depends_run port:gnome-settings-daemon \ |
---|
37 | port:yelp |
---|
38 | |
---|
39 | configure.args --disable-zlib \ |
---|
40 | --disable-schemas-compile \ |
---|
41 | --disable-silent-rules |
---|
42 | |
---|
43 | default_variants +zlib |
---|
44 | |
---|
45 | variant 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 | |
---|
56 | pre-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 |
---|
67 | post-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 | |
---|
74 | livecheck.type gnome |
---|