From 868c4e90f8f432aeb2ae3eec5421277a12c35b6f Mon Sep 17 00:00:00 2001
From: Manuel Friedli <manuel@fritteli.ch>
Date: Tue, 1 Jun 2010 17:10:07 +0000
Subject: [PATCH] added nautilus-dropbox-0.6.2

---
 gnome-extra/nautilus-dropbox/Manifest         |  2 +
 .../nautilus-dropbox-0.6.2.ebuild             | 71 +++++++++++++++++++
 2 files changed, 73 insertions(+)
 create mode 100644 gnome-extra/nautilus-dropbox/Manifest
 create mode 100644 gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.2.ebuild

diff --git a/gnome-extra/nautilus-dropbox/Manifest b/gnome-extra/nautilus-dropbox/Manifest
new file mode 100644
index 0000000..a9dded7
--- /dev/null
+++ b/gnome-extra/nautilus-dropbox/Manifest
@@ -0,0 +1,2 @@
+DIST nautilus-dropbox-0.6.2.tar.bz2 320684 RMD160 fc1744d0c53de9a0d96633e82acab61e9f1b35e4 SHA1 335f81f847c3fb4261ae40bed360e27cfc541ec2 SHA256 8d0f47f9e33a4d35132b9e618d692cf9f950d91f79f12b6f0f88d6a38d921f2d
+EBUILD nautilus-dropbox-0.6.2.ebuild 1840 RMD160 a0b7c5a0701a8c484a7f68954ee3f097a7209142 SHA1 9b4abc9d83dd1615f46858b0fa7f8d5e5947a8f2 SHA256 3455131a53a42046c65cb45f516aee893fcfaede444da31b6f1647bca8958863
diff --git a/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.2.ebuild b/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.2.ebuild
new file mode 100644
index 0000000..ea3d6a1
--- /dev/null
+++ b/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils libtool linux-info python gnome2
+
+DESCRIPTION="Store, Sync and Share Files Online"
+HOMEPAGE="http://www.dropbox.com/"
+SRC_URI="https://www.dropbox.com/download?dl=packages/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="gnome-base/nautilus
+	dev-python/pygtk
+	dev-python/docutils
+	net-misc/wget
+	x11-libs/libnotify
+	x11-libs/libXinerama"
+
+DEPEND="${RDEPEND}
+	dev-util/pkgconfig"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+CONFIG_CHECK="INOTIFY_USER"
+
+pkg_setup () {
+	linux-info_pkg_setup
+
+	# create the group for the daemon, if necessary
+	# truthfully this should be run for any dropbox plugin
+	enewgroup dropbox
+}
+
+src_configure () {
+	econf --disable-static
+}
+
+src_install () {
+	emake DESTDIR="${D}" install || die
+
+	local extensiondir="$(pkg-config --variable=extensiondir libnautilus-extension)"
+	[ -z ${extensiondir} ] && die "pkg-config unable to get nautilus extensions dir"
+
+	find "${D}" -name '*.la' -delete
+}
+
+pkg_postinst () {
+	gnome2_pkg_postinst
+
+	# Allow only for users in the dropbox group
+	# see http://forums.getdropbox.com/topic.php?id=3329&replies=5#post-22898
+	local extensiondir="$(pkg-config --variable=extensiondir libnautilus-extension)"
+	[ -z ${extensiondir} ] && die "pkg-config unable to get nautilus extensions dir"
+
+	chown root:dropbox "${ROOT}${extensiondir}"/lib${PN}.so || die "chown failed"
+	chmod o-rwx "${ROOT}${extensiondir}"/lib${PN}.so || die "chmod failed"
+
+	elog "Add any users who wish to have access to the dropbox nautilus"
+	elog "plugin to the group 'dropbox'."
+	elog
+	elog "If you've installed old version, Remove \${HOME}/.dropbox-dist first."
+	elog
+	elog " $ rm -rf \${HOME}/.dropbox-dist"
+	elog " $ dropbox start -i"
+}