summaryrefslogtreecommitdiff
blob: e3cc6041af9c2b8e320507c2984794f59c99ec4a (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/gbuffy/gbuffy-0.2.6-r1.ebuild,v 1.1 2006/03/25 06:19:52 agriffis Exp $

inherit eutils

DESCRIPTION="A multi-mailbox biff-like monitor"
HOMEPAGE="http://www.fiction.net/blong/programs/gbuffy/"
SRC_URI="http://www.fiction.net/blong/programs/${PN}/${P}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"

IUSE="gnome ssl"

DEPEND="x11-libs/libPropList
	media-libs/compface
	>=x11-libs/gtk+-1.1.11
	gnome? ( =gnome-base/gnome-applets-1* )
	ssl? ( dev-libs/openssl )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/gbuffy-1.patch
	epatch ${FILESDIR}/gbuffy-search-3.patch
}

src_compile() {
	if use gnome; then
		econf --enable-applet || die
		emake || die
		mv gbuffy gbuffy_applet
		make clean
	fi
	econf --disable-applet || die
	emake || die
}

src_install() {
	einstall || die
	dodoc ChangeLog CHANGES GBuffy LICENSE README ToDo
	doman gbuffy.1
	use gnome && dobin gbuffy_applet
}