mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
mail-filter/imapfilter: add libressl support
Package-Manager: portage-2.2.20.1
This commit is contained in:
43
mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild
Normal file
43
mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="An IMAP mail filtering utility"
|
||||
HOMEPAGE="http://imapfilter.hellug.gr"
|
||||
SRC_URI="https://github.com/lefcha/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
dev-libs/libpcre
|
||||
dev-lang/lua:*"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS="AUTHORS NEWS README samples/*"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "/^PREFIX/s:/usr/local:${EPREFIX}/usr:" \
|
||||
-e "/^MANDIR/s:man:share/man:" \
|
||||
-e "/^CFLAGS/s:CFLAGS =:CFLAGS +=:" \
|
||||
-e "/^CFLAGS/s/-O//" \
|
||||
src/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman doc/imapfilter.1 doc/imapfilter_config.5
|
||||
}
|
||||
@@ -14,9 +14,9 @@ LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
RDEPEND="dev-libs/openssl
|
||||
RDEPEND="dev-libs/openssl:0
|
||||
dev-libs/libpcre
|
||||
>=dev-lang/lua-5.1"
|
||||
dev-lang/lua:*"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS="AUTHORS NEWS README samples/*"
|
||||
|
||||
Reference in New Issue
Block a user