--- thunar-0.5.0_rc2-r3.ebuild.orig 2006-12-28 03:12:43.000000000 +0100 +++ thunar-0.5.0_rc2-r3.ebuild 2006-12-28 09:09:50.000000000 +0100 @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/xfce-base/thunar/thunar-0.5.0_rc2-r3.ebuild,v 1.1 2006/12/28 02:12:43 nichoj Exp $ +# $Header: $ inherit xfce44 versionator @@ -50,7 +50,7 @@ >=media-libs/jpeg-6b startup-notification? ( >=x11-libs/startup-notification-0.4 ) pcre? ( >=dev-libs/libpcre-6.0 ) - trash-panel-plugin? ( >=xfce-base/xfce4-panel-${XFCE_MASTER_VERSION} ) + trash-panel-plugin? ( dbus? ( >=xfce-base/xfce4-panel-${XFCE_MASTER_VERSION} ) ) " DEPEND="${RDEPEND} @@ -69,7 +69,6 @@ $(use_enable pcre) \ $(use_enable startup-notification) \ $(use_enable thumbnail gnome-thumbnailers) \ - $(use_enable trash-panel-plugin tpa-plugin) " if use hal; then @@ -77,3 +76,14 @@ else XFCE_CONFIG="${XFCE_CONFIG} --with-volume-manager=none" fi + +use trash-panel-plugin && use dbus || XFCE_CONFIG="${XFCE_CONFIG} --disable-tpa-plugin" + + +pkg_setup() { + if use trash-panel-plugin && ! use dbus ; then + ewarn "trash-panel-plugin requires ${PN} with dbus support" + ewarn "Enable dbus use flag and re-emerge this ebuild if you want this feature." + epause 3 + fi +}