source: trunk/dports/gnome/baobab/Portfile

Last change on this file was 153325, checked in by devans@…, 12 months ago

baobab: update to version 3.22.0, license, dependencies, no longer uses intltool.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 153325 2016-09-29 04:26:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                baobab
7version             3.22.0
8license             GPL-2+
9set branch          [join [lrange [split ${version} .] 0 1] .]
10description         GNOME disk usage analyzer.
11long_description    Disk Usage Analyzer is a graphical, menu-driven application to analyse \
12                    disk usage in a GNOME environment. It can easily scan either the whole \
13                    filesystem tree, or a specific user-requested directory branch (local or remote). \
14                    It also auto-detects in real-time any changes made to your home directory as far \
15                    as any mounted/unmounted device. Disk Usage Analyzer also provides a full graphical \
16                    treemap window for each selected folder.
17
18maintainers         juanrgar devans openmaintainer
19categories          gnome
20platforms           darwin
21homepage            https://wiki.gnome.org/Apps/Baobab
22master_sites        gnome:sources/${name}/${branch}/
23
24use_xz              yes
25
26checksums           rmd160  b9b2372440127ff0a3f3e2ff9661e271f93ed4de \
27                    sha256  796e784886d5bdf2e9d8ac94d74d5f94e055f4285ef54dc16552fb9c9b9c3e99
28
29depends_build       port:pkgconfig \
30                    port:itstool \
31                    port:yelp-tools \
32                    port:appstream-glib
33
34depends_lib         port:desktop-file-utils \
35                    port:gtk3 \
36                    port:vala
37
38depends_run         port:gnome-themes-standard \
39                    port:yelp
40
41patchfiles          patch-warning-flags.diff
42
43use_autoreconf      yes
44autoreconf.args     -fvi
45
46configure.args      --disable-schemas-compile \
47                    --disable-silent-rules
48
49# if port gnome-utils is installed
50# and baobab binary exists
51# and port baobab is NOT installed
52# deactivate outdated port gnome-utils
53
54pre-activate {
55    if {![catch {registry_active gnome-utils}]} {
56        if {[file exists ${prefix}/bin/baobab]} {
57            if {[catch {registry_active baobab}]} {
58                registry_deactivate_composite gnome-utils "" [list ports_nodepcheck 1]
59            }
60        }
61    }
62}
63
64# port installs hicolor and HighContrast icons, desktop application file, and gschemas
65post-activate {
66    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
67    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
68    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/HighContrast"
69    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
70}
71
72livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.