Ticket #42035: gnome-screenshot-Portfile

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

gnome-screenshot 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-screenshot
7version             3.10.1
8license             GPL-2
9set branch          [join [lrange [split ${version} .] 0 1] .]
10description         GNOME dictionary application.
11long_description    GNOME Dictionary can look for the definition or translation \
12                    of a word in existing databases over the Internet.
13
14maintainers         gmail.com:juanrgar openmaintainer
15categories          gnome
16platforms           darwin
17homepage            https://www.gnome.org
18master_sites        gnome:sources/${name}/${branch}/
19
20use_xz              yes
21
22checksums           rmd160  dfe871e614d4b477aea2b211edd237f50c14e0da \
23                    sha256  9a4ed8821187e5a6923245508df4c116f28278b3089580eb2c4e6d32d178ba68
24
25depends_build       port:pkgconfig \
26                    port:intltool
27
28depends_lib         port:desktop-file-utils \
29                    port:gnome-icon-theme \
30                    port:gtk3 \
31                    port:libcanberra \
32                    port:xorg-libXext
33
34depends_run         port:gnome-settings-daemon \
35                    port:yelp
36
37configure.args      --disable-schemas-compile \
38                    --disable-silent-rules
39
40# if port gnome-utils is installed
41# and gnome-screenshot binary exists
42# and port gnome-screenshot is NOT installed
43# deactivate outdated port gnome-utils
44 
45pre-activate {
46    if {![catch {registry_active gnome-utils}]} {
47        if {[file exists ${prefix}/bin/gnome-screenshot]} {
48            if {[catch {registry_active gnome-screenshot}]} {
49                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
50            }
51        }
52    }
53}
54
55# port installs desktop application file, and gschemas
56post-activate {
57    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
58    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
59}
60
61livecheck.type  gnome