diff options
author | Michael Kohl <citizen428@gentoo.org> | 2006-01-13 23:14:23 +0000 |
---|---|---|
committer | Michael Kohl <citizen428@gentoo.org> | 2006-01-13 23:14:23 +0000 |
commit | 1936a40d4ce2622922963286a117c90581958135 (patch) | |
tree | 38fa3d59b84777f743794aa46ba392c4e6de1bb7 /net-news/liferea/liferea-1.0-r1.ebuild | |
parent | sh love (diff) | |
download | gentoo-2-1936a40d4ce2622922963286a117c90581958135.tar.gz gentoo-2-1936a40d4ce2622922963286a117c90581958135.tar.bz2 gentoo-2-1936a40d4ce2622922963286a117c90581958135.zip |
Revision bump to include a patch so Liferea can be built against Firefox 1.5.
(Portage version: 2.0.53)
Diffstat (limited to 'net-news/liferea/liferea-1.0-r1.ebuild')
-rw-r--r-- | net-news/liferea/liferea-1.0-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net-news/liferea/liferea-1.0-r1.ebuild b/net-news/liferea/liferea-1.0-r1.ebuild new file mode 100644 index 000000000000..678cc1c0115b --- /dev/null +++ b/net-news/liferea/liferea-1.0-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-news/liferea/liferea-1.0-r1.ebuild,v 1.1 2006/01/13 23:14:23 citizen428 Exp $ + +inherit gnome2 eutils + + +DESCRIPTION="News Aggregator for RDF/RSS/CDF/Atom/Echo/etc feeds" +HOMEPAGE="http://liferea.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${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/gtkhtml-2* ) + !mozilla? ( !firefox? ( =gnome-extra/gtkhtml-2* ) ) + >=gnome-base/gconf-2 + dbus? ( >=sys-apps/dbus-0.30 )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +DOCS="README AUTHORS ChangeLog COPYING" +USE_DESTDIR="1" + + +src_unpack () { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/liferea-firefox-1.5.patch +} + +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 +} + +src_install() { + gnome2_src_install + rm -f ${D}/usr/bin/${PN} + mv ${D}/usr/bin/${PN}-bin ${D}/usr/bin/${PN} +} |