summaryrefslogtreecommitdiff
blob: 4ec905268853f6fff0fabe2adba04586a283cf4d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3
inherit gnome2-utils

DESCRIPTION="A collaboration and sharing tool that is designed to keep things simple and to stay out of your way."
HOMEPAGE="http://sparkleshare.org/"
SRC_URI="https://github.com/downloads/hbons/SparkleShare/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc libnotify nautilus"

RDEPEND=">=dev-lang/mono-2.2
	>=dev-dotnet/gtk-sharp-2.12.2
	>=dev-dotnet/glib-sharp-2.12.2
	libnotify? ( dev-dotnet/notify-sharp )
	dev-dotnet/webkit-sharp
	nautilus? ( dev-python/nautilus-python )
	>=dev-vcs/git-1.7.1
	virtual/libintl"
DEPEND="${RDEPEND}
	sys-devel/gettext
	dev-util/pkgconfig
	doc? ( >=app-text/gnome-doc-utils-0.17.3 )"
#	appindicator? ( >=dev-dotnet/appindicator-sharp-0.0.7 )

src_configure() {
	local myconf
	if use debug ; then
		myconf="${myconf} --enable-debug"
	else
		myconf="${myconf} --enable-release"
	fi
	econf ${myconf} || die
}

src_install() {
	emake DESTDIR="${D}" install || die

	dodoc AUTHORS NEWS README || die
}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}