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-screenshot |
---|
7 | version 3.10.1 |
---|
8 | license GPL-2 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description GNOME dictionary application. |
---|
11 | long_description GNOME Dictionary can look for the definition or translation \ |
---|
12 | of a word in existing databases over the Internet. |
---|
13 | |
---|
14 | maintainers gmail.com:juanrgar openmaintainer |
---|
15 | categories gnome |
---|
16 | platforms darwin |
---|
17 | homepage https://www.gnome.org |
---|
18 | master_sites gnome:sources/${name}/${branch}/ |
---|
19 | |
---|
20 | use_xz yes |
---|
21 | |
---|
22 | checksums rmd160 dfe871e614d4b477aea2b211edd237f50c14e0da \ |
---|
23 | sha256 9a4ed8821187e5a6923245508df4c116f28278b3089580eb2c4e6d32d178ba68 |
---|
24 | |
---|
25 | depends_build port:pkgconfig \ |
---|
26 | port:intltool |
---|
27 | |
---|
28 | depends_lib port:desktop-file-utils \ |
---|
29 | port:gnome-icon-theme \ |
---|
30 | port:gtk3 \ |
---|
31 | port:libcanberra \ |
---|
32 | port:xorg-libXext |
---|
33 | |
---|
34 | depends_run port:gnome-settings-daemon \ |
---|
35 | port:yelp |
---|
36 | |
---|
37 | configure.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 | |
---|
45 | pre-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 |
---|
56 | post-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 | |
---|
61 | livecheck.type gnome |
---|