# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ RESTRICT="mirror" DESCRIPTION="Official plugins for cairo-dock" HOMEPAGE="http://developer.berlios.de/projects/cairo-dock/" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="alsa gnome laptop rhythmbox trayicon weather wifi xfce -xmms" # USE_flags_plugins:These USE flags make some plugins optional # alsa=alsamixer # gnome=gnome-integration # laptop=powermanager # rhythmbox=rhythmbox # trash-plugin=dustbin # trayicon=systray # weather=weather # wifi=wifi # xfce=xfce-integration # xmms=xmms xmms_warning() { if ! useq xmms ; then ewarn "Xmms isn't in portage, thus plugin is forcefully disabled." fi } powermanager_warning() { if ! useq powermanager ; then ewarn "For powermanager plugin, enable the laptop USE flag." fi } wifi_warning() { if ! useq wifi ; then ewarn "For wifi plugin, enable the wifi USE flag." fi } trayicon_warning() { if ! useq trayicon ; then ewarn "For systray plugin, enable the trayicon USE flag." fi } DEPEND="" RDEPEND="alsa? ( ~x11-plugins/cairo-dock-plugins-alsaMixer-${PV} ) ~x11-plugins/cairo-dock-plugins-clock-${PV} ~x11-plugins/cairo-dock-plugins-Cairo-Penguin-${PV} ~x11-plugins/cairo-dock-plugins-dustbin-${PV} gnome? ( ~x11-plugins/cairo-dock-plugins-gnome-integration-${PV} ) ~x11-plugins/cairo-dock-plugins-logout-${PV} laptop? ( ~x11-plugins/cairo-dock-plugins-powermanager-${PV} ) ~x11-plugins/cairo-dock-plugins-rendering-${PV} rhythmbox? ( ~x11-plugins/cairo-dock-plugins-rhythmbox-${PV} ) ~x11-plugins/cairo-dock-plugins-shortcuts-${PV} ~x11-plugins/cairo-dock-plugins-showDesklets-${PV} trayicon? ( ~x11-plugins/cairo-dock-plugins-systray-${PV} ) ~x11-plugins/cairo-dock-plugins-weather-${PV} wifi? ( ~x11-plugins/cairo-dock-plugins-wifi-${PV} ) xfce? ( ~x11-plugins/cairo-dock-plugins-xfce-integration-${PV} ) ~x11-plugins/cairo-dock-plugins-Xgamma-${PV}" pkg_postinst() { xmms_warning powermanager_warning wifi_warning trayicon_warning ewarn "All plugins are provided by individual packages in x11-plugins." ewarn "Some of these are automatically pulled in by this ebuild based" ewarn "on USE flags. Others you will need to emerge manually. The" ewarn "following is a list of packages not included here but can be" ewarn "individually installed:" ewarn "x11-plugins/cairo-dock-plugins-mail" ewarn "x11-plugins/cairo-dock-plugins-systray" ewarn "x11-plugins/cairo-dock-plugins-template" ewarn "x11-plugins/cairo-dock-plugins-terminal" ewarn "x11-plugins/cairo-dock-plugins-tomboy" ewarn "DO NOT report bugs to Gentoo's bugzilla" ewarn "Please report all bugs to #gentoo-desktop-effects" ewarn "Thank you on behalf of the Gentoo Xeffects team" }