summaryrefslogtreecommitdiff
blob: f81760429dc982beeb5223668c6066e1d26d6178 (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
58
59
60
61
62
63
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/electricsheep-2.7_beta11.ebuild,v 1.1 2009/09/17 21:56:05 patrick Exp $

EAPI=2

inherit eutils flag-o-matic kde-functions autotools

DESCRIPTION="realize the collective dream of sleeping computers from all over the internet"
HOMEPAGE="http://electricsheep.org/"
SRC_URI="http://dev.gentooexperimental.org/~dreeevil/electricsheep-2.7_beta11.tar.bz2"

IUSE="kde" #gnome
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="dev-libs/expat
	>=gnome-base/libglade-2.5.0:2.0
	media-video/ffmpeg
	sys-libs/zlib
	>=x11-libs/gtk+-2.7.0:2
	x11-libs/libX11"
RDEPEND="${DEPEND}
	app-arch/gzip
	media-gfx/flam3
	media-video/mplayer
	net-misc/curl
	x11-misc/xdg-utils
	kde? ( kde-base/kscreensaver )"
#	gnome? ( gnome-extra/gnome-screensaver )
DEPEND="${DEPEND}
	>=dev-util/pkgconfig-0.9.0
	x11-proto/xproto"

src_prepare() {
	epatch "${FILESDIR}"/${PN}-xdg-utils.patch
	epatch "${FILESDIR}"/${PN}-gnome.patch
	eautoreconf
}

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

	# install the xscreensaver config file
	insinto /usr/share/xscreensaver/config
	doins ${PN}.xml || die "${PN}.xml failed"

	if use kde; then
		set-kdedir
		insinto /usr/share/applications
		newins ${PN}.desktop{.kde,} || die "${PN}.desktop.kde failed"
		insinto "${KDEDIR}/share/applnk/System/ScreenSavers"
		newins ${PN}.desktop{.kde,} || die "${PN}.desktop.kde failed"
	fi

	#if use gnome; then
	#	insinto /usr/share/applications/screensavers
	#	doins ${PN}.desktop || die "${PN}.desktop failed"
	#	exeinto /usr/libexec/gnome-screensaver
	#	doexe ${PN}-saver || die "${PN}-saver failed"
	#fi
}