summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>2009-09-25 12:35:03 +0000
committerFabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>2009-09-25 12:35:03 +0000
commitef3b18f9f4f77d5d1a4cc5800bc39fd3182ffea6 (patch)
tree571f12397a94cb77a72862efa129ab58e582db95 /gnome-extra
parentapp-misc/buoh: New Ebuild for bug 112141 (diff)
downloadsunrise-reviewed-ef3b18f9f4f77d5d1a4cc5800bc39fd3182ffea6.tar.gz
sunrise-reviewed-ef3b18f9f4f77d5d1a4cc5800bc39fd3182ffea6.tar.bz2
sunrise-reviewed-ef3b18f9f4f77d5d1a4cc5800bc39fd3182ffea6.zip
gnome-extra/nautilus-dropbox: Highly improvement into ebuild. Thanks to Mauro '[equilibrium]' Toffanin
svn path=/sunrise/; revision=9288
Diffstat (limited to 'gnome-extra')
-rw-r--r--gnome-extra/nautilus-dropbox/ChangeLog4
-rw-r--r--gnome-extra/nautilus-dropbox/Manifest5
-rw-r--r--gnome-extra/nautilus-dropbox/metadata.xml3
-rw-r--r--gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.1-r1.ebuild77
4 files changed, 87 insertions, 2 deletions
diff --git a/gnome-extra/nautilus-dropbox/ChangeLog b/gnome-extra/nautilus-dropbox/ChangeLog
index c9ff04ecc..bae961c51 100644
--- a/gnome-extra/nautilus-dropbox/ChangeLog
+++ b/gnome-extra/nautilus-dropbox/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 25 Sep 2009; Fabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>
+ +nautilus-dropbox-0.6.1-r1.ebuild, metadata.xml:
+ Highly improvement into ebuild. Thanks to Mauro '[equilibrium]' Toffanin
+
24 Sep 2009; Fabiano Francesconi (elbryan) <fabiano.francesconi@gmail.com>
nautilus-dropbox-0.6.1.ebuild:
Added kernel configuration option check. Ebuild improvement, thanks to
diff --git a/gnome-extra/nautilus-dropbox/Manifest b/gnome-extra/nautilus-dropbox/Manifest
index 375096703..f8ef63655 100644
--- a/gnome-extra/nautilus-dropbox/Manifest
+++ b/gnome-extra/nautilus-dropbox/Manifest
@@ -1,4 +1,5 @@
DIST nautilus-dropbox-0.6.1.tar.bz2 306545 RMD160 52638938e453dc3b7e13d52fda41c964d6338892 SHA1 c22c91a368fc03daac44db95d43fb9aa6ff0a92a SHA256 104520fc0a16c733cfd1e9a4ffa0ab1f4ad9a2a5dbf15357011ea3b9c331e36f
+EBUILD nautilus-dropbox-0.6.1-r1.ebuild 2128 RMD160 2c7b8955df3d27b94248eed50ff822d11ca8402f SHA1 a8bb6afd3a5adc785a95487f66f28b0004ba9d56 SHA256 733b1fdabccb57fa8e47f25f152477952435d631fdb465b613da4f0534d39d98
EBUILD nautilus-dropbox-0.6.1.ebuild 1565 RMD160 28ba44c5c71107ebd901e4f762b049acfa896074 SHA1 d21f926e8b14c387a338acb7a4f1e55aa6d4f977 SHA256 1e99f188f10fdfb53025d603a33ae45242886e84b6f6d49a61e1f0bb8f911012
-MISC ChangeLog 789 RMD160 63176a25152a7d15b998fbe13d1327b6bdee6a34 SHA1 18bb9f46a4b55fe378111e33b47d399e3226b8bb SHA256 d206807c79b0ad7b2fb74bc4cd7c4b3791a98bf468b36cc93b8fe184282c6976
-MISC metadata.xml 171 RMD160 ed284df01c230fc7990a6b5888b39166d23f29ba SHA1 f3d64a69044b710e23fb874b3ee4cd338858c8b4 SHA256 a7b30fbacd0e4c312c07a3efac112a3794c81d134442d8104325734d03425adf
+MISC ChangeLog 993 RMD160 11b8e5a2a8d81cf355d05b3b4c6219125c430620 SHA1 1dea3b66ccc15ecb9b1db26a4cba073177e89147 SHA256 bb1871c77f7d6cbc2c946764010d885f1af1ceb68f25dce693db5e3b0e9d1faf
+MISC metadata.xml 242 RMD160 72c1f8e7a96de7112f574141382fda832e250048 SHA1 22cbe9e51e29839d6e84107c3a253dfee6efa674 SHA256 f5962210c985aca5c398b7016d01a5fe6f58c1cc66c4f0f68cebeefd64f604d7
diff --git a/gnome-extra/nautilus-dropbox/metadata.xml b/gnome-extra/nautilus-dropbox/metadata.xml
index 6f1d493c5..c726223fc 100644
--- a/gnome-extra/nautilus-dropbox/metadata.xml
+++ b/gnome-extra/nautilus-dropbox/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>maintainer-wanted</herd>
+<use>
+ <flag name="static-libs">Compile static libraries</flag>
+</use>
</pkgmetadata>
diff --git a/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.1-r1.ebuild b/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.1-r1.ebuild
new file mode 100644
index 000000000..07f852e4a
--- /dev/null
+++ b/gnome-extra/nautilus-dropbox/nautilus-dropbox-0.6.1-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2009 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.getdropbox.com/"
+SRC_URI="http://www.getdropbox.com/download?dl=packages/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+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 $(use_enable static-libs 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"
+
+ if ! use static-libs; then
+ rm "${D}${extensiondir}"/lib${PN}.la || die "rm .la file failed"
+ fi
+}
+
+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"
+
+ if use static-libs; then
+ chown root:dropbox "${ROOT}${extensiondir}"/lib${PN}.{a,la} || die "chown failed"
+ chmod o-rwx "${ROOT}${extensiondir}"/lib${PN}.{a,la} || die "chmod failed"
+ fi
+ 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"
+}