source: trunk/dports/gnome/gnome-dictionary/Portfile @ 126617

Last change on this file since 126617 was 126617, checked in by devans@…, 5 years ago

gnome-dictionary: update to version 3.14.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
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: Portfile 126617 2014-10-12 21:26:43Z devans@macports.org $
3
4PortSystem          1.0
5
6name                gnome-dictionary
7version             3.14.1
8license             GPL-2 GFDL-1.1 LGPL-2.1
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         juanrgar devans openmaintainer
15categories          gnome
16platforms           darwin
17homepage            https://www.gnome.org
18master_sites        gnome:sources/${name}/${branch}/
19
20use_xz              yes
21
22checksums           rmd160  83eb221d48567194c4b27b39f3f40db985bb2aac \
23                    sha256  95611416f82617440babc2646056985232170cdadf6cacc5c27680913ea3fa31
24
25depends_build       port:pkgconfig \
26                    port:intltool \
27                    port:itstool \
28                    port:yelp-tools
29
30depends_lib         port:desktop-file-utils \
31                    port:gtk3
32
33depends_run         port:gnome-settings-daemon \
34                    port:yelp
35
36# update m4/intltool.m4 and autoreconf
37
38pre-configure {
39    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
40}
41
42use_autoreconf      yes
43autoreconf.args     -fvi
44
45configure.args      --disable-schemas-compile \
46                    --disable-silent-rules
47
48# if port gnome-utils is installed
49# and gnome-dictionary binary exists
50# and port gnome-dictionary is NOT installed
51# deactivate outdated port gnome-utils
52 
53pre-activate {
54    if {![catch {registry_active gnome-utils}]} {
55        if {[file exists ${prefix}/bin/gnome-dictionary]} {
56            if {[catch {registry_active gnome-dictionary}]} {
57                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
58            }
59        }
60    }
61}
62
63# port installs desktop application file, and gschemas
64post-activate {
65    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
66    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
67}
68
69livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.