# -*- 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 107787 2013-07-05 20:04:36Z devans@macports.org $

PortSystem      1.0

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

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

#
# This is a metaport
#

supported_archs noarch

#
# TODO
#
# The following modules are included in the current GNOME desktop
# environment specification but have not yet been ported to MacPorts
#
# brasero  (no support for darwin Mac OS X, requires Linux SG or BSD CAM)
# cheese   (requires Video4Linux or  V4L2)
# deskbar-applet
# dconf (not required, GIO (glib2) includes a native gsettings backend for Mac OS X)
# ekiga (requires Video4Linux or  V4L2)
# evolution
# evolution-exchange
# evolution-mapi
# evolution-webcal
# gnome-bluetooth
# gnome-color-manager
# gnome-desktop-sharp
# gnome-disk-utility
# gnome-nettool
# gnome-packagekit
# gnome-power-manager
# gnome-screensaver
# gnome-system-tools
# gnome-user-share
# hampster-applet
# mousetweaks
# nautilus-sendto
# orca
# rygel
# sound-juicer (depends on brasero)
# 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
#
# gnome-netstatus (builds but doesn't work -- tries to open /proc/net/dev)
# gnome-system-monitor (builds but segfaults on processes/resources -- probably due to lack of support for MacOSX in libgtop)
#

depends_lib     \
                port:alacarte \
                port:at-spi2-atk \
                port:at-spi2-core \
                port:bug-buddy \
                port:empathy \
                port:eog \
                port:epiphany \
                port:evince \
                port:evolution-data-server \
                port:file-roller \
                port:gcalctool \
                port:gconf-editor \
                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-icon-theme-symbolic \
                port:gnome-keyring \
                port:gnome-media \
                port:gnome-menus \
                port:gnome-panel \
                port:gnome-python-desktop \
                port:gnome-session \
                port:gnome-settings-daemon \
                port:gnome-speech \
                port:gnome-terminal \
                port:gnome-themes \
                port:gnome-user-docs \
                port:gnome-utils \
                port:gobject-introspection \
                port:gstreamer010-gst-plugins-base \
                port:gstreamer010-gst-plugins-good \
                port:gstreamer010 \
                port:gtk-engines2 \
                port:libgtkhtml3 \
                port:gtksourceview2 \
                port:gucharmap \
                port:gvfs \
                port:libgnome-keyring \
                port:libgnomekbd \
                port:libgtop \
                port:libgweather \
                port:liboobs \
                port:librsvg \
                port:libsoup \
                port:libwnck \
                port:metacity \
                port:nautilus \
                port:seahorse \
                port:seahorse-plugins \
                port:swfdec-gnome \
                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.
#

#
# GNOME Deprecations
#
# The following modules have been deprecated during this cycle.
# They are not shipped with GNOME anymore.
#

# gnome-speech
# gok
# libgail-gnome
# libgnomeprint
# libgnomeprintui

#
# mono fails on leopard ppc - #17996
#
if {${build_arch} == "i386" || ([variant_isset universal] && [lsearch ${universal_archs} i386] != -1)} {
    depends_lib-append port:gnome-sharp2
}

distfiles
use_configure   no
build           { }

variant broken description {Build ports that are broken or need work} {
    depends_lib-append \
                port:gnome-netstatus \
                port:gnome-system-monitor
}

#
# these ports are included in the Desktop spec but conflict with at-spi2-atk
# used by newer gtk3 based ports and are, therefore, considered optional
# They will be removed in a future version.
#
 
variant assist description {Build AT-SPI based ports} {
    depends_lib-append \
                port:dasher \
                port:gdm \
                port:gnome-mag
}

variant python25 conflicts python26 python27 description {Use python 2.5} {
    depends_lib-append        port:py25-pygtksourceview
}

variant python26 conflicts python25 python27 description {Use python 2.6} {
    depends_lib-append        port:py26-pygtksourceview
}

variant python27 conflicts python25 python26 description {Use python 2.7} {
    depends_lib-append        port:py27-pygtksourceview
}

if {![variant_isset python25] && ![variant_isset python26]} {
    default_variants +python27
}

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
}

livecheck.type  none
