diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-10-10 20:11:40 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-10-10 20:11:40 -0400 |
commit | 0df36f97c1587808fe00cbd3d2fdf86eb949c0ea (patch) | |
tree | 59b169283268c4f33c969c9f525f243f8ffd7b40 /mail-filter | |
parent | mail-filter/gld: add libressl support (diff) | |
download | gentoo-0df36f97c1587808fe00cbd3d2fdf86eb949c0ea.tar.gz gentoo-0df36f97c1587808fe00cbd3d2fdf86eb949c0ea.tar.bz2 gentoo-0df36f97c1587808fe00cbd3d2fdf86eb949c0ea.zip |
mail-filter/imapfilter: add libressl support
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild | 43 | ||||
-rw-r--r-- | mail-filter/imapfilter/imapfilter-2.5.7.ebuild | 4 |
2 files changed, 45 insertions, 2 deletions
diff --git a/mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild b/mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild new file mode 100644 index 000000000000..a91b2c869a1d --- /dev/null +++ b/mail-filter/imapfilter/imapfilter-2.5.7-r1.ebuild @@ -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 +} diff --git a/mail-filter/imapfilter/imapfilter-2.5.7.ebuild b/mail-filter/imapfilter/imapfilter-2.5.7.ebuild index 0fafc178a58e..90abab6786fc 100644 --- a/mail-filter/imapfilter/imapfilter-2.5.7.ebuild +++ b/mail-filter/imapfilter/imapfilter-2.5.7.ebuild @@ -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/*" |