summaryrefslogtreecommitdiff
blob: b2c4cc417e25323bab2ce303983efed0a5c28a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4
PYTHON_DEPEND="2:2.6"

inherit gnome2-utils multilib python waf-utils

DESCRIPTION="Plugin for thunar that adds context-menu items for dropbox."
HOMEPAGE="http://www.softwarebakery.com/maato/thunar-dropbox.html"
SRC_URI="http://www.softwarebakery.com/maato/files/${PN}/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="net-misc/dropbox
	>=xfce-base/thunar-1.2"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

DOCS=( AUTHORS ChangeLog )

pkg_setup() {
	python_set_active_version 2
	python_pkg_setup
}

src_prepare() {
	sed -e "s:gtk-update-icon-cache.*:/bin/true':" \
		-e "s:/lib/:/$(get_libdir)/:" -i wscript || die "sed failed"
}

pkg_preinst() { gnome2_icon_savelist; }
pkg_postinst() { gnome2_icon_cache_update /usr/share/icons/hicolor; }
pkg_postrm() { gnome2_icon_cache_update /usr/share/icons/hicolor; }