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-font-viewer |
---|
7 | version 3.10.0 |
---|
8 | license GPL-2 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description GNOME font viewer and thumbnailer. |
---|
11 | long_description GNOME font viewer can preview fonts and create thumbnails for fonts. |
---|
12 | |
---|
13 | maintainers gmail.com:juanrgar openmaintainer |
---|
14 | categories gnome |
---|
15 | platforms darwin |
---|
16 | homepage https://www.gnome.org |
---|
17 | master_sites gnome:sources/${name}/${branch}/ |
---|
18 | |
---|
19 | use_xz yes |
---|
20 | |
---|
21 | checksums rmd160 6f91268183f7ae4bca1083aba3d51271b7e1849b \ |
---|
22 | sha256 3928350f58ac6c95f44b64cba1a5f03437b19d9b2645a7b01176067504fdd652 |
---|
23 | |
---|
24 | depends_build port:pkgconfig \ |
---|
25 | port:intltool |
---|
26 | |
---|
27 | depends_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 | |
---|
36 | depends_run port:gnome-settings-daemon |
---|
37 | |
---|
38 | configure.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 | |
---|
46 | pre-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 |
---|
57 | post-activate { |
---|
58 | system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" |
---|
59 | } |
---|
60 | |
---|
61 | livecheck.type gnome |
---|