summaryrefslogtreecommitdiff
blob: 05f6885f8413a338e7d4f73b372822d610a82b71 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmaiload/wmmaiload-2.2.1.ebuild,v 1.3 2006/08/05 08:16:11 hansmi Exp $

DESCRIPTION="dockapp that monitors one or more mailboxes."
SRC_URI="http://tnemeth.free.fr/projets/programmes/${P}.tar.gz"
HOMEPAGE="http://tnemeth.free.fr/projets/dockapps.html"

SLOT="0"
KEYWORDS="~amd64 ppc ~sparc x86"
LICENSE="GPL-2"

RDEPEND=">=x11-libs/gtk+-1.2.10-r11"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4.1.4-r1"

IUSE=""

src_compile() {
	./configure -p /usr || die "configure failed"

	# Let's wipe out those horrid defaults
	for file in "wmmaiload/Makefile wmmaiload-config/Makefile"
	do
		sed -i 's/^CFLAGS/#CFLAGS/' ${file}
		sed -i 's/^CPPFLAGS/#CPPFLAGS/' ${file}
		sed -i 's/^DEBUG_CFLAGS/#DEBUG_CFLAGS/' ${file}
		sed -i 's/^DEBUG_CPPFLAGS/#DEBUG_CPPFLAGS/' ${file}
		sed -i 's/^DEBUG_LDFLAGS/#DEBUG_LDFLAGS/' ${file}
	done

	emake || die "parallel make failed"
}

src_install () {
	dobin wmmaiload/wmmaiload wmmaiload-config/wmmaiload-config
	doman doc/wmmaiload.1 doc/wmmaiload-config.1
	dodoc AUTHORS ChangeLog FAQ NEWS README THANKS TODO doc/sample.wmmailoadrc
}