# -*- 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 92150 2012-04-20 08:49:33Z jeremyhu@macports.org $

PortSystem      1.0

name            gnome-desktop-suite
version         2.30.2
revision        2
categories      gnome
license         Permissive
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/TwoPointTwentynine/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
#
# at-spi2-atk
# at-spi2-core
# brasero  (no support for darwin Mac OS X, requires Linux SG or BSD CAM)
# cheese   (requires Video4Linux or  V4L2)
# deskbar-applet
# ekiga (requires Video4Linux or  V4L2)
# evolution
# evolution-exchange
# evolution-mapi
# evolution-webcal
# gnome-bluetooth
# gnome-desktop-sharp
# gnome-disk-utility
# gnome-nettool
# gnome-packagekit
# gnome-power-manager
# gnome-screensaver
# gnome-system-tools
# gnome-user-share
# gok
# hampster-applet
# mousetweaks
# nautilus-sendto
# orca
# 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:bug-buddy \
                port:dasher \
                port:empathy \
                port:eog \
                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-mag \
                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:gst-plugins-base \
                port:gst-plugins-good \
                port:gstreamer \
                port:gtk-engines2 \
                port:gvfs \
                port:libgtkhtml3 \
                port:gtksourceview2 \
                port:gucharmap \
                port:libgail-gnome \
                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: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

#
# yelp will build only for i386 or ppc, and it has dependencies that are not universal
#
if { ![variant_isset universal] && (${build_arch} == "i386" || ${build_arch} == "ppc")} {
    depends_lib-append port:yelp
}

#
# 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
}

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
