summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <NP-Hardass@gentoo.org>2016-02-08 20:24:28 -0500
committerNP-Hardass <NP-Hardass@gentoo.org>2016-02-08 21:46:12 -0500
commit2e203f15d86504178b466382aec0f5990f3f683e (patch)
tree7005aedcf4d468760d43757ae5a39f3e5ca56ece /mate-extra/caja-dropbox
parentapp-text/atril: Import 1.10.x from Project:MATE repo (diff)
downloadgentoo-2e203f15d86504178b466382aec0f5990f3f683e.tar.gz
gentoo-2e203f15d86504178b466382aec0f5990f3f683e.tar.bz2
gentoo-2e203f15d86504178b466382aec0f5990f3f683e.zip
mate-extra/caja-dropbox: Import 1.10.x from Project:MATE repo
Package-Manager: portage-2.2.26
Diffstat (limited to 'mate-extra/caja-dropbox')
-rw-r--r--mate-extra/caja-dropbox/Manifest1
-rw-r--r--mate-extra/caja-dropbox/caja-dropbox-1.10.1.ebuild90
-rw-r--r--mate-extra/caja-dropbox/files/caja-dropbox-1.10.0-system-rst2man.patch13
3 files changed, 104 insertions, 0 deletions
diff --git a/mate-extra/caja-dropbox/Manifest b/mate-extra/caja-dropbox/Manifest
index 98df5d0d08b4..cfc7dad4781c 100644
--- a/mate-extra/caja-dropbox/Manifest
+++ b/mate-extra/caja-dropbox/Manifest
@@ -1 +1,2 @@
+DIST caja-dropbox-1.10.1.tar.xz 306296 SHA256 f171c83cbc162d48fee9dfd67872161db82d93f30a417f9d228402935516f54f SHA512 519f035881197f35b6ff1351cd953c939add62401c3807cfec011697e609766cd19a7effa4cd5978633901e31972f869b0765378893e75fbd6ac202e755e0b94 WHIRLPOOL b3e1a7c045144fee883e35fb2131fc25ddbd9db53a93148e15e9eb827def0e41bc200146e0b243d5f2bd3fe03c5f9eb19ce9d65a0b67c0410b7cf108844b55e6
DIST caja-dropbox-1.8.0.tar.xz 310592 SHA256 bb26151cad68e910979af6dd8b323434462a2457998ad67529660135c0caa513 SHA512 33c0804ba756ec50b531e4992b74577848f52fef60b8c69b96f307a2b8a57fd42ff951d6d3fdd55a6b1e260c4f46d0a26f90f730a88dc45a66e2d78888492fbc WHIRLPOOL 3b200e6a1b5e6f9926566962c48b9585fa0f9cc1ccc8ee89e45489d87c41cbf50a2b1bd62036140ba7492edf5a2812b918c4c4596b17c4674e0821a72d29550f
diff --git a/mate-extra/caja-dropbox/caja-dropbox-1.10.1.ebuild b/mate-extra/caja-dropbox/caja-dropbox-1.10.1.ebuild
new file mode 100644
index 000000000000..fa6fda8f7ce3
--- /dev/null
+++ b/mate-extra/caja-dropbox/caja-dropbox-1.10.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+GNOME2_LA_PUNT="yes"
+
+inherit autotools eutils gnome2 python-single-r1 linux-info user versionator
+
+MATE_BRANCH="$(get_version_component_range 1-2)"
+
+SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
+DESCRIPTION="Store, Sync and Share Files Online"
+HOMEPAGE="http://www.dropbox.com/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="debug"
+
+RDEPEND="
+ dev-libs/atk:0
+ >=dev-libs/glib-2.14:2
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ >=mate-base/caja-1.10:0
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ net-misc/dropbox:0
+ x11-libs/cairo:0
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/libXinerama:0
+ x11-libs/pango:0"
+
+DEPEND="${RDEPEND}
+ dev-python/docutils:0
+ virtual/pkgconfig:*"
+
+G2CONF="${G2CONF} $(use_enable debug) --disable-static"
+
+CONFIG_CHECK="~INOTIFY_USER"
+
+pkg_setup () {
+ python-single-r1_pkg_setup
+ check_extra_config
+ enewgroup dropbox
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Use system dropbox.
+ sed -e "s|~/[.]dropbox-dist|/opt/dropbox|" \
+ -e 's|\(DROPBOXD_PATH = \).*|\1"/opt/dropbox/dropboxd"|' \
+ -i caja-dropbox.in || die
+
+ # Use system rst2man.
+ epatch "${FILESDIR}"/${P}-system-rst2man.patch
+
+ AT_NOELIBTOOLIZE=yes eautoreconf
+}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_install () {
+ python_fix_shebang caja-dropbox.in
+
+ gnome2_src_install
+
+ local extensiondir="$(pkg-config --variable=extensiondir libcaja-extension)"
+ [ -z ${extensiondir} ] && die "pkg-config unable to get caja extensions dir"
+
+ # Strip $EPREFIX from $extensiondir as fowners/fperms act on $ED not $D.
+ extensiondir="${extensiondir#${EPREFIX}}"
+ use prefix || fowners root:dropbox "${extensiondir}"/libcaja-dropbox.so
+ fperms o-rwx "${extensiondir}"/libcaja-dropbox.so
+}
+
+pkg_postinst () {
+ gnome2_pkg_postinst
+
+ elog
+ elog "Add any users who wish to have access to the dropbox caja"
+ elog "plugin to the group 'dropbox'. You need to setup a drobox account"
+ elog "before using this plugin. Visit ${HOMEPAGE} for more information."
+ elog
+}
diff --git a/mate-extra/caja-dropbox/files/caja-dropbox-1.10.0-system-rst2man.patch b/mate-extra/caja-dropbox/files/caja-dropbox-1.10.0-system-rst2man.patch
new file mode 100644
index 000000000000..740418249d8d
--- /dev/null
+++ b/mate-extra/caja-dropbox/files/caja-dropbox-1.10.0-system-rst2man.patch
@@ -0,0 +1,13 @@
+Index: nautilus-dropbox-0.7.0/configure.ac
+===================================================================
+--- nautilus-dropbox-0.7.0.orig/configure.ac
++++ nautilus-dropbox-0.7.0/configure.ac
+@@ -31,7 +31,7 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLI
+
+ AC_PATH_PROG([PYTHON], [python])
+
+-AC_PATH_PROG([RST2MAN], [rst2man], [python rst2man.py])
++AC_PATH_PROG([RST2MAN], [rst2man.py], [python rst2man.py])
+ AC_SUBST(RST2MAN)
+
+ # define module checking macro