Ticket #42035: gnome-font-viewer-Portfile

File gnome-font-viewer-Portfile, 2.0 KB (added by juanrgar (Juan R. García Blanco), 10 years ago)

gnome-font-viewer Portfile

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-font-viewer
7version             3.10.0
8license             GPL-2
9set branch          [join [lrange [split ${version} .] 0 1] .]
10description         GNOME font viewer and thumbnailer.
11long_description    GNOME font viewer can preview fonts and create thumbnails for fonts.
12
13maintainers         gmail.com:juanrgar openmaintainer
14categories          gnome
15platforms           darwin
16homepage            https://www.gnome.org
17master_sites        gnome:sources/${name}/${branch}/
18
19use_xz              yes
20
21checksums           rmd160  6f91268183f7ae4bca1083aba3d51271b7e1849b \
22                    sha256  3928350f58ac6c95f44b64cba1a5f03437b19d9b2645a7b01176067504fdd652
23
24depends_build       port:pkgconfig \
25                    port:intltool
26
27depends_lib         port:desktop-file-utils \
28                    port:gnome-icon-theme \
29                    port:gnome-icon-theme-symbolic \
30                    port:gsettings-desktop-schemas \
31                    port:gtk3 \
32                    port:gnome-desktop \
33                    port:fontconfig \
34                    port:freetype
35
36depends_run         port:gnome-settings-daemon
37
38configure.args      --disable-schemas-compile \
39                    --disable-silent-rules
40
41# if port gnome-utils is installed
42# and gnome-font-viewer binary exists
43# and port gnome-font-viewer is NOT installed
44# deactivate outdated port gnome-utils
45 
46pre-activate {
47    if {![catch {registry_active gnome-utils}]} {
48        if {[file exists ${prefix}/bin/gnome-font-viewer]} {
49            if {[catch {registry_active gnome-font-viewer}]} {
50                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
51            }
52        }
53    }
54}
55
56# port installs desktop application file
57post-activate {
58    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
59}
60
61livecheck.type  gnome