blob: d509d9e7f83fef363764240377a43953a0a787db (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-news/liferea/liferea-1.0_rc2.ebuild,v 1.1.1.1 2005/11/30 09:45:21 chriswhite Exp $
inherit gnome2
MY_P="${P/_rc/-RC}"
DESCRIPTION="News Aggregator for RDF/RSS/CDF/Atom/Echo/etc feeds"
HOMEPAGE="http://liferea.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="dbus firefox gtkhtml mozilla"
RDEPEND=">=x11-libs/gtk+-2
>=dev-libs/libxml2-2.5.10
firefox? ( www-client/mozilla-firefox )
!firefox? ( mozilla? ( www-client/mozilla ) )
gtkhtml? ( =gnome-extra/libgtkhtml-2* )
!mozilla? ( !firefox? ( =gnome-extra/libgtkhtml-2* ) )
>=gnome-base/gconf-2
dbus? ( >=sys-apps/dbus-0.30 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
DOCS="README AUTHORS ChangeLog COPYING"
USE_DESTDIR="1"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if ! use gtkhtml && ! use mozilla && ! use firefox ; then
ewarn "None of the \"gtkhtml\", \"mozilla\" or \"firefox\" HTML backends"
ewarn "was selected by USE flags. Will use \"gtkhtml\"."
elif use mozilla && use firefox ; then
ewarn "Both \"mozilla\" and \"firefox\" were selected by USE flags."
ewarn "Will use \"firefox\"."
fi
}
src_compile() {
if ! use mozilla && ! use firefox || use gtkhtml ; then
G2CONF="${G2CONF} --enable-gtkhtml2"
else
G2CONF="${G2CONF} --disable-gtkhtml2"
fi
if use firefox ; then
G2CONF="${G2CONF} --enable-gecko=firefox"
elif use mozilla ; then
G2CONF="${G2CONF} --enable-gecko=mozilla"
else
G2CONF="${G2CONF} --disable-gecko"
fi
G2CONF="${G2CONF} $(use_enable dbus)"
gnome2_src_compile
}
|