# -*- 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 # $Id$ PortSystem 1.0 name gnome-control-center version 2.26.0 revision 1 set branch [join [lrange [split ${version} .] 0 1] .] description Control center for GNOME 2.0 project. long_description ${description} maintainers devans openmaintainer categories gnome platforms darwin homepage http://www.gnome.org/ master_sites gnome:sources/${name}/${branch}/ checksums md5 eed8feccc37712e34d88bd3b20e46962 \ sha1 4730780aaab599869a2dfe2d72d68dd54bb77058 \ rmd160 d22c75b21d63bad9321ad1221e442f381da8dd35 depends_lib port:metacity \ port:nautilus \ port:libcanberra \ port:gnome-panel \ port:gnome-settings-daemon depends_build port:gnome-doc-utils if {${os.platform} == "darwin" && ${os.major} < 9} { patchfiles patch-libslab-director-tile.c.diff } use_bzip2 yes configure.args \ --mandir=${prefix}/share/man \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --disable-hal \ --disable-scrollkeeper \ --disable-update-mimedb \ --disable-schemas-install post-patch { reinplace "s|/usr/share|${prefix}/share|g" \ ${worksrcpath}/capplets/common/gnome-theme-info.c \ ${worksrcpath}/libwindow-settings/metacity-window-manager.c } post-destroot { file delete ${destroot}${prefix}/etc/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas file delete ${destroot}${prefix}/share/applications/mimeinfo.cache } post-activate { system " \ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`&&\ gconftool-2 --makefile-install-rule \ ${prefix}/etc/gconf/schemas/*.schemas &&\ gconftool-2 --direct --config-source=\$GCONF_CONFIG_SOURCE \ --recursive-unset /schemas/apps/panel &&\ gconftool-2 --direct --config-source \ xml:readwrite:${prefix}/etc/gconf/gconf.xml.defaults \ --load ${prefix}/etc/gconf/schemas/panel-default-setup.entries " system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/scrollkeeper-update; true" system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true" system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true" } platform darwin { post-destroot { system "cd ${destroot}${prefix}/lib/window-manager-settings/ && \ ln -s libmetacity.so libmetacity.dylib" system "cd ${destroot}${prefix}/lib && \ ln -s libgnome-window-settings.1.0.0.dylib libgnome-window-settings.1.0.0.so" } } livecheck.check regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}