# -*- 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: Portfile 57664 2009-09-14 18:22:23Z devans@macports.org $

PortSystem      1.0

name            gnome-desktop-suite
version         2.26.3
revision        2
categories      gnome
maintainers     devans openmaintainer
description     The GNOME desktop environment
long_description \
                The GNOME desktop environment is the set of libraries, applications and services \
                that work as a cohesive integrated user interface produced by the GNOME project. \
                The desktop environment is one of the suites of software packages that form \
                the complete GNOME project offerings.

homepage        http://live.gnome.org/TwoPointTwentyfive/Desktop
master_sites
platforms       darwin

#
# TODO
#
# The following modules are included in the current GNOME desktop
# environment specification but have not yet been ported to MacPorts
#
# deskbar-applet
# evolution
# evolution-exchange
# evolution-mapi
# evolution-webcal
# gnome-desktop-sharp
# gnome-nettool
# gnome-power-manager
# gnome-screensaver
# gnome-user-share
# gok
# mousetweaks
# orca
# swfdec-gnome
# tomboy
# vinagre
#
# BROKEN PORTS
#
# The following ports are included in the current GNOME desktop
# environment specification and have been ported to MacPorts but
# are currently broken and/or need to be updated
#
# brasero  (no support for darwin Mac OS X, requires Linux SG or BSD CAM)
# cheese   (requires Video4Linux or  V4L2)
# ekiga (requires Video4Linux or  V4L2)
# sound-juicer (depends on brasero)

depends_lib     \
                port:alacarte \
                port:bug-buddy \
                port:dasher \
                port:eog \
                port:empathy \
                port:epiphany \
                port:evince \
                port:evolution-data-server \
                port:file-roller \
                port:gcalctool \
                port:gconf-editor \
                port:gdm \
                port:gedit \
                port:gnome-applets \
                port:gnome-backgrounds \
                port:gnome-control-center \
                port:gnome-desktop \
                port:gnome-doc-utils \
                port:gnome-games \
                port:gnome-icon-theme \
                port:gnome-keyring \
                port:gnome-netstatus \
                port:gnome-mag \
                port:gnome-media \
                port:gnome-menus \
                port:gnome-panel \
                port:gnome-python-desktop \
                port:gnome-session \
                port:gnome-settings-daemon \
                port:gnome-sharp2 \
                port:gnome-speech \
                port:gnome-system-monitor \
                port:gnome-terminal \
                port:gnome-themes \
                port:gnome-user-docs \
                port:gnome-utils \
                port:gstreamer \
                port:gst-plugins-base \
                port:gst-plugins-good \
                port:gtk-engines2 \
                port:libgtkhtml3 \
                port:gtksourceview2 \
                port:gucharmap \
                port:libgail-gnome \
                port:libgnomekbd \
                port:libgtop \
                port:libgweather \
                port:liboobs \
                port:librsvg \
                port:libsoup \
                port:libwnck \
                port:metacity \
                port:nautilus \
                port:py25-pygtksourceview \
                port:seahorse \
                port:seahorse-plugins \
                port:totem \
                port:totem-pl-parser \
                port:vino \
                port:vte \
                port:yelp \
                port:zenity

#
# Upcoming GNOME Deprecations
#
# The following modules are heading towards planned deprecation. The GNOME
# project does not recommend using them in new applications unless you
# require functionality that has not already been moved elsewhere.
#

depends_lib-append \
                port:libgnomeprint \
                port:libgnomeprintui

#
# mono fails on leopard ppc - #17996
#

if {"darwin" == ${os.platform} && 9 == ${os.major} && ${configure.build_arch} == "ppc"} {
	depends_lib-delete port:gnome-sharp2
}

distfiles
use_configure   no
build           { }

destroot        {
    file mkdir ${destroot}${prefix}/share/doc/gnome
    file copy ${filespath}/README.${name}.txt.in ${destroot}${prefix}/share/doc/gnome/README.${name}.txt
    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/share/doc/gnome/README.${name}.txt
}

post-activate        {
    ui_msg "\nTo start gnome put \"exec gnome-session\" in your .xinitrc"
    ui_msg "See also http://trac.macports.org/wiki/GNOME\n"
}

livecheck.type  none
