summaryrefslogtreecommitdiffstats
path: root/net-mail/biff/biff-0.17.ebuild
blob: b311230f90dd5dbf28c1b5d96bd4c24e7adba3a5 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/gnubiff/gnubiff-2.1.3.ebuild,v 1.4 2005/10/02 11:42:12 agriffis Exp $

inherit eutils

DESCRIPTION="A mail notification program"
LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 x86"

src_unpack() {
    tar xjf "${FILESDIR}"/biff+comsat-0.17.tar.bz2
    cd biff+comsat-0.17
    epatch "${FILESDIR}"/biff+comsat-0.10-nobr.patch.bz2
}

src_compile() {
    cd "${WORKDIR}"/biff+comsat-0.17
    sh configure
    perl -pi -e '
	s,^CC=.*$,CC=cc,;
	s,-O2,\$(RPM_OPT_FLAGS),;
	s,^BINDIR=.*$,BINDIR=/usr/bin,;
	s,^MANDIR=.*$,MANDIR=/usr/share/man,;
	s,^SBINDIR=.*$,SBINDIR=/usr/sbin,;
	' MCONFIG

    emake -C biff || die
}

src_install() {
    cd "${WORKDIR}"/biff+comsat-0.17
    dobin biff/biff
    doman biff/biff.1
}