source: trunk/dports/gnome/gnome-control-center/Portfile @ 30151

Last change on this file since 30151 was 30151, checked in by rhwood@…, 13 years ago

New port gnome-control-center obsoletes port control-center

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 30151 2007-10-21 19:28:01Z rhwood@macports.org $
2PortSystem 1.0
3name            gnome-control-center
4version         2.20.1
5revision        0
6description     Control center for GNOME 2.0 project.
7long_description        ${description}
8maintainers     rhwood openmaintainer
9categories      gnome
10platforms       darwin
11homepage        http://www.gnome.org/
12master_sites    gnome:sources/${name}/[join [lrange [split ${version} .] 0 1] .]/
13checksums       rmd160 ce5c5a270679f779fbec59aa887aba239b3f1d84
14depends_lib     \
15        port:iso-codes \
16        port:nautilus \
17        port:desktop-file-utils \
18        port:libgnomekbd \
19        port:libxklavier \
20        port:gnome-panel \
21        port:metacity \
22        port:gst-plugins-base \
23        port:evolution-data-server \
24        port:vte \
25        port:dbus \
26        port:dbus-glib
27depends_build   port:gnome-doc-utils
28use_bzip2       yes
29#patchfiles     patch-libslab_directory-tile.c.diff
30configure.args  \
31                --mandir=${prefix}/share/man \
32                --disable-hal \
33                --enable-gstreamer \
34                --disable-scrollkeeper \
35                --disable-update-mimedb
36configure.cppflags-append "-L${prefix}/lib"
37configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
38post-patch {
39        #reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}/share:/usr|g" \
40        ${worksrcpath}/capplets/background/gnome-wp-xml.c
41
42        reinplace  "s|/usr/share|${prefix}/share|g" \
43        ${worksrcpath}/capplets/common/gnome-theme-info.c \
44        ${worksrcpath}/libwindow-settings/metacity-window-manager.c
45}
46
47post-destroot   {
48        file delete ${destroot}${prefix}/etc/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas
49}
50
51post-activate   {
52                system " \
53                export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`&&\
54                gconftool-2 --makefile-install-rule \
55                        ${prefix}/etc/gconf/schemas/*.schemas &&\
56                gconftool-2 --direct --config-source=\$GCONF_CONFIG_SOURCE \
57                        --recursive-unset /schemas/apps/panel &&\
58                gconftool-2 --direct --config-source \
59                        xml:readwrite:${prefix}/etc/gconf/gconf.xml.defaults \
60                        --load ${prefix}/etc/gconf/schemas/panel-default-setup.entries "
61                system "scrollkeeper-update"
62}
63
64platform darwin {
65        post-destroot {
66                system "cd ${destroot}${prefix}/lib/window-manager-settings/ && \
67                ln -s libmetacity.dylib libmetacity.so"
68
69                system "cd ${destroot}${prefix}/lib && \
70                        ln -s libgnome-window-settings.1.0.0.dylib libgnome-window-settings.1.0.0.so"
71        }
72}
Note: See TracBrowser for help on using the repository browser.