1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
9 inherit autotools eutils python-r1 linux-info gnome2 readme.gentoo user
11 DESCRIPTION="Store, Sync and Share Files Online"
12 HOMEPAGE="https://www.dropbox.com"
13 SRC_URI="https://www.dropbox.com/download?dl=packages/${P}.tar.bz2"
17 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
20 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 RDEPEND="${PYTHON_DEPS}
25 dev-python/pygtk:2[${PYTHON_USEDEP}]
33 dev-python/docutils[${PYTHON_USEDEP}]"
35 CONFIG_CHECK="~INOTIFY_USER"
41 DOC_CONTENTS="Add any users who wish to have access to the dropbox nautilus
42 plugin to the group 'dropbox'. You need to setup a drobox account
43 before using this plugin. Visit ${HOMEPAGE} for more information."
49 G2CONF="${G2CONF} $(use_enable debug) --disable-static"
55 -e "s|~/[.]dropbox-dist|${EPREFIX}/opt/dropbox|" \
56 -e "s|\(DROPBOXD_PATH = \).*|\1\"${EPREFIX}/opt/dropbox/dropboxd\"|" \
59 epatch "${FILESDIR}"/${PN}-0.7.0-system-rst2man.patch
60 sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
61 AT_NOELIBTOOLIZE=yes eautoreconf
67 local extensiondir="$(pkg-config --variable=extensiondir libnautilus-extension)"
68 [ -z ${extensiondir} ] && die "pkg-config unable to get nautilus extensions dir"
70 # Strip $EPREFIX from $extensiondir as fowners/fperms act on $ED not $D
71 extensiondir="${extensiondir#${EPREFIX}}"
73 use prefix || fowners root:dropbox "${extensiondir}"/libnautilus-dropbox.so
74 fperms o-rwx "${extensiondir}"/libnautilus-dropbox.so
76 readme.gentoo_create_doc
78 python_replicate_script "${ED}"/usr/bin/dropbox
83 readme.gentoo_print_elog