summaryrefslogtreecommitdiff
blob: e25e772eed99c794bc575bea3d7b1540d24ba6ab (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
GCONF_DEBUG="yes"

inherit autotools eutils gnome2 mono-env versionator

MY_PN="do-plugins"
PVC=$(get_version_component_range 1-3)

DESCRIPTION="Plugins to put the Do in Gnome Do"
HOMEPAGE="https://launchpad.net/do-plugins"
SRC_URI="https://launchpad.net/${MY_PN}/trunk/${PVC}/+download/${P}.tar.gz"

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

RDEPEND="
	>=gnome-extra/gnome-do-0.9
	dev-dotnet/wnck-sharp
	banshee? ( >=media-sound/banshee-1.4.2 )
"
DEPEND="${RDEPEND}
	virtual/pkgconfig
"

src_prepare() {
	# Skip failing plugins (from ArchLinux)
	sed -i -e '/DiskMounter/d
		/Transmission/d' Makefile.am || die

	eautoreconf
	gnome2_src_prepare
}

src_configure() {
	gnome2_src_configure \
		$(use banshee) \
		--disable-empathy \
		--disable-flickr \
		--disable-transmission
}

src_compile() {
	# The make system is unfortunately broken for parallel builds and
	# upstream indicated on IRC that they have no intention to fix
	# that.
	MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_compile
}