blob: b270c1d8c0cb39e6135e7becfb74d7109db7645c (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd-stuff/lcd-stuff-0.1.2.ebuild,v 1.1 2007/01/13 15:05:37 rbu Exp $
DESCRIPTION="lcd-stuff is a client for lcdproc that displays RSS, Weather, MPD and new mail."
HOMEPAGE="http://lcd-stuff.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
KEYWORDS="~x86"
SLOT="0"
LICENSE="GPL-2" # and GPL-2 only
DEPEND="app-misc/lcdproc
net-misc/curl
imap? ( net-libs/libetpan )
mpd? ( media-libs/libmpd )
mp3? ( media-libs/taglib )
xml? ( net-libs/libnxml )
rss? ( net-libs/libmrss net-libs/libnxml )"
RDEPEND=${DEPEND}
DEPEND="${DEPEND}
dev-util/pkgconfig"
IUSE="imap mpd mp3 xml rss"
src_compile() {
local XMLRSSLIB="$(use_enable rss mrss)"
if use rss ; then
# If we want rss, we must also have xml
XMLRSSLIB="${XMLRSSLIB} --enable-nxml"
else
XMLRSSLIB="${XMLRSSLIB} $(use_enable xml nxml)"
fi
econf \
$(use_enable imap libetpan) \
$(use_enable mpd libmpd) \
$(use_enable mp3 taglib_c) \
$XMLRSSLIB \
|| die "configure failed"
emake || die "make failed"
}
src_install()
{
emake DESTDIR=${D} install || die "make install failed"
insinto /etc
doins lcd-stuff.conf
newconfd "${FILESDIR}/${PN}.confd" ${PN}
newinitd "${FILESDIR}/${PN}.initd" ${PN}
dodoc ChangeLog README
}
|