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

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

gnome-applets: patch configure to correctly set PYTHON_PREFIX and PYTHON_EXEC_PREFIX based on variant, fixes invest applet.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 86227 2011-10-22 16:38:01Z devans@macports.org $
3
4PortSystem 1.0
5
6name            gnome-applets
7version         2.30.0
8revision        6
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        http://www.gnome.org/
18master_sites    gnome:sources/${name}/${branch}/
19
20checksums       md5     2afcbedc10b1a0e8072ac4eefdc8d770 \
21                sha1    b6359ebe1991709c66709b108609fcb8cfae4b57 \
22                rmd160  ad3c2bb2062de7599a8a34403bf517be21f9abae
23
24depends_build   port:pkgconfig \
25                port:intltool \
26                port:gnome-doc-utils
27
28depends_lib     port:gnome-icon-theme \
29                port:gconf \
30                port:gnome-panel \
31                port:gnome-desktop \
32                port:libgtop \
33                port:libgnomekbd \
34                port:gnome-settings-daemon \
35                port:libwnck \
36                port:libnotify \
37                port:policykit-gnome \
38                port:gucharmap \
39                port:libxml2 \
40                port:libgweather \
41                port:gst-plugins-base
42
43use_bzip2       yes
44
45patchfiles      patch-configure.diff
46
47variant python25 conflicts python26 python27 description {Use python 2.5} {
48    configure.python          ${prefix}/bin/python2.5
49    depends_lib-append        port:py25-gtk
50    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5
51    configure.pkg_config_path ${python_framework}/lib/pkgconfig
52}
53
54variant python26 conflicts python25 python27 description {Use python 2.6} {
55    configure.python          ${prefix}/bin/python2.6
56    depends_lib-append        port:py26-gtk
57    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
58    configure.pkg_config_path ${python_framework}/lib/pkgconfig
59}
60
61variant python27 conflicts python25 python26 description {Use python 2.7} {
62    configure.python          ${prefix}/bin/python2.7
63    depends_lib-append        port:py27-gtk
64    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
65    configure.pkg_config_path ${python_framework}/lib/pkgconfig
66}
67
68if {![variant_isset python25] && ![variant_isset python26]} {
69    default_variants +python27
70}
71
72configure.args  --without-hal \
73                --enable-mixer-applet \
74                --disable-battstat \
75                --disable-cpufreq \
76                --disable-frequency-selector \
77                --x-includes=${prefix}/include \
78                --x-libraries=${prefix}/lib \
79                --disable-scrollkeeper \
80                --disable-schemas-install
81
82#
83# gnome-panel -> evolution-data-server -> nss is not universal
84
85universal_variant no
86
87post-activate {
88   system "scrollkeeper-update"
89   system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
90   system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
91        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
92}
93
94livecheck.type  regex
95livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
96livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.