# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 eutils DESCRIPTION="A nautilus plugin to easily share folders over the SMB protocol" HOMEPAGE="http://gentoo.ovibes.net/nautilus-share" SRC_URI="http://gentoo.ovibes.net/${PN}/${P}.tar.gz" IUSE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" RDEPEND=" >=gnome-base/nautilus-2.5.0 >=gnome-base/eel-2.5.0 >=dev-libs/glib-2.4.0 >=gnome-base/libglade-2.4.0 >=sys-apps/dbus-0.23 >=dev-libs/libdaemon-0.7 >=x11-themes/gnome-icon-theme-2.10.1" DOCS="AUTHORS ChangeLog NEWS README TODO" G2CONF="--with-dbus-sys=/etc/dbus-1/system.d" USE_DESTDIR="1" pkg_setup() { if ! built_with_use sys-apps/dbus gtk; then eerror "Need GLib support in DBUS." eerror "Please re-emerge sys-apps/dbus with gtk USE flag enabled." die "unmet dependencies" fi } src_unpack() { unpack ${A} cd ${S} if has_version '>=sys-apps/dbus-0.30'; then einfo "Applying dbus-0.30 API change patches..." epatch ${FILESDIR}/${PN}-0.5.1-dbus-api.patch epatch ${FILESDIR}/${PN}-0.5.1-dbus-api-2.patch epatch ${FILESDIR}/${PN}-0.5.1-dbus-api-3.patch fi epatch ${FILESDIR}/${PN}-0.5.1-stock-icon.patch } src_install() { gnome2_src_install "$@" if has_version '>=sys-apps/dbus-0.30'; then dodir /usr/share/dbus-1/services cat >${D}/usr/share/dbus-1/services/net.ovibes.dbus.smbparser.service \ <> ${D}/etc/samba/smb.conf <${D}/etc/samba/smb.conf <