source: trunk/dports/gnome/gnome-applets/Portfile @ 119533

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

dependents of libgtop: rebuild with version 2.30 due to ABI change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 119533 2014-04-29 16:31:59Z devans@macports.org $
3
4PortSystem      1.0
5
6name            gnome-applets
7version         3.5.92
8revision        2
9set branch      [join [lrange [split ${version} .] 0 1] .]
10description     GNOME panel applets.
11long_description This package contains applets for use with the \
12                GNOME panel.
13maintainers     devans openmaintainer
14categories      gnome
15license         GPL-2+
16platforms       darwin
17homepage        https://wiki.gnome.org/Projects/GnomeApplets
18master_sites    gnome:sources/${name}/${branch}/
19
20use_xz          yes
21
22checksums       rmd160  aff6f3b134e5ddac18d7bc7f7bc1255645ac87fb \
23                sha256  f6178cb702a39a4103fcb97e9a266bf6d05f05ac5064818f119c023d76170e83
24
25depends_build   port:pkgconfig \
26                port:intltool \
27                port:gnome-doc-utils \
28                port:gnome-common
29
30depends_lib     port:gnome-icon-theme \
31                port:gtk3 \
32                port:gconf \
33                port:gnome-panel \
34                port:libgtop \
35                port:gnome-settings-daemon \
36                port:libwnck3 \
37                port:libnotify \
38                port:policykit \
39                port:gucharmap \
40                port:libxml2 \
41                port:rarian
42
43patchfiles      patch-configure.in.diff
44
45configure.cflags-append \
46                -Wno-format-nonliteral \
47                -Wno-missing-prototypes
48
49post-patch {
50    reinplace "s|/usr/bin/env python|${configure.python}|" \
51        ${worksrcpath}/invest-applet/invest/chart.py \
52        ${worksrcpath}/invest-applet/invest/invest-applet.py \
53        ${worksrcpath}/invest-applet/invest/invest-chart \
54        ${worksrcpath}/invest-applet/invest/test.py
55}
56
57# update m4/intltool.m4 and autoreconf
58
59pre-configure {
60    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
61}
62
63use_autoreconf  yes
64autoreconf.args -fvi
65
66variant python26 conflicts python27 description {Use python 2.6} {
67    configure.python          ${prefix}/bin/python2.6
68    depends_lib-append        port:py26-gobject
69    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
70    configure.pkg_config_path ${python_framework}/lib/pkgconfig
71}
72
73variant python27 conflicts python26 description {Use python 2.7} {
74    configure.python          ${prefix}/bin/python2.7
75    depends_lib-append        port:py27-gobject
76    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
77    configure.pkg_config_path ${python_framework}/lib/pkgconfig
78}
79
80if {![variant_isset python26]} {
81    default_variants +python27
82}
83
84configure.args  --without-hal \
85                --disable-networkmanager \
86                --disable-mixer-applet \
87                --disable-battstat \
88                --disable-cpufreq \
89                --disable-frequency-selector \
90                --x-includes=${prefix}/include \
91                --x-libraries=${prefix}/lib \
92                --disable-scrollkeeper \
93                --disable-schemas-install \
94                --disable-silent-rules
95
96post-activate {
97   system "scrollkeeper-update"
98   system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
99   system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
100        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
101}
102
103livecheck.type  gnome-with-unstable
Note: See TracBrowser for help on using the repository browser.