| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/imapfilter/imapfilter-2.5.2.ebuild,v 1.4 2012/08/11 12:57:08 maekke Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="An IMAP mail filtering utility"
|
| 10 |
HOMEPAGE="http://imapfilter.hellug.gr"
|
| 11 |
SRC_URI="mirror://github/lefcha/imapfilter/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="MIT"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ppc x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
RDEPEND="dev-libs/openssl
|
| 19 |
dev-libs/libpcre
|
| 20 |
>=dev-lang/lua-5.1"
|
| 21 |
DEPEND="${RDEPEND}"
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
sed -i -e "/^PREFIX/s:/local::" \
|
| 25 |
-e "/^MANDIR/s:man:share/man:" \
|
| 26 |
-e "/^CFLAGS/s:CFLAGS =:CFLAGS +=:" \
|
| 27 |
-e "/^CFLAGS/s/-O//" \
|
| 28 |
src/Makefile || die
|
| 29 |
}
|
| 30 |
|
| 31 |
src_compile() {
|
| 32 |
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" install
|
| 37 |
dodoc AUTHORS NEWS README samples/*
|
| 38 |
doman doc/imapfilter.1 doc/imapfilter_config.5
|
| 39 |
}
|