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

Last change on this file was 147435, checked in by devans@…, 18 months ago

gnome-dictionary: update to version 3.20.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 147435 2016-04-03 17:04:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6
7name                gnome-dictionary
8version             3.20.0
9license             GPL-2 GFDL-1.1 LGPL-2.1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11description         GNOME dictionary application.
12long_description    GNOME Dictionary can look for the definition or translation \
13                    of a word in existing databases over the Internet.
14
15maintainers         juanrgar devans openmaintainer
16categories          gnome
17platforms           darwin
18homepage            https://www.gnome.org
19master_sites        gnome:sources/${name}/${branch}/
20
21use_xz              yes
22
23checksums           rmd160  763b9cdc31185161887557554b45edb782fc2e51 \
24                    sha256  efb36377d46eff9291d3b8fec37baab2355f9dc8bc7edb791b6a625574716121
25
26depends_build       port:pkgconfig \
27                    port:intltool \
28                    port:itstool \
29                    port:yelp-tools \
30                    port:gtk-doc \
31                    port:autoconf \
32                    port:automake \
33                    port:libtool
34
35depends_lib         port:desktop-file-utils \
36                    port:gtk3
37
38depends_run         port:gnome-themes-standard \
39                    port:yelp
40
41gobject_introspection yes
42
43
44# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
45
46post-patch {
47    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
48}
49
50configure.cmd       ./autogen.sh
51
52configure.args      --disable-schemas-compile \
53                    --disable-silent-rules
54
55# if port gnome-utils is installed
56# and gnome-dictionary binary exists
57# and port gnome-dictionary is NOT installed
58# deactivate outdated port gnome-utils
59 
60pre-activate {
61    if {![catch {registry_active gnome-utils}]} {
62        if {[file exists ${prefix}/bin/gnome-dictionary]} {
63            if {[catch {registry_active gnome-dictionary}]} {
64                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
65            }
66        }
67    }
68}
69
70# port installs desktop application file, and gschemas
71post-activate {
72    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
73    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
74}
75
76livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.