diff options
-rw-r--r-- | mail-filter/imapfilter/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/imapfilter/imapfilter-2.6.16.ebuild | 43 | ||||
-rw-r--r-- | mail-filter/imapfilter/metadata.xml | 8 |
3 files changed, 52 insertions, 0 deletions
diff --git a/mail-filter/imapfilter/Manifest b/mail-filter/imapfilter/Manifest new file mode 100644 index 0000000..f8949b1 --- /dev/null +++ b/mail-filter/imapfilter/Manifest @@ -0,0 +1 @@ +DIST imapfilter-2.6.16.tar.gz 59636 BLAKE2B 9de58800ab88aa6e22ead001fd4e635b1991d23a2345d729a59438d3774148b1478b561c36848af155da7d15e84afdf900b73054ef268243f333843b71417d1e SHA512 0500931143e593eb69357ef6a6a40be971abadd22d7e807685b88927da8db9a928470f5cad460252b95ccd42efcfd39b5c4001a8796fa79cbd35018405a7be19 diff --git a/mail-filter/imapfilter/imapfilter-2.6.16.ebuild b/mail-filter/imapfilter/imapfilter-2.6.16.ebuild new file mode 100644 index 0000000..a260b1f --- /dev/null +++ b/mail-filter/imapfilter/imapfilter-2.6.16.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="An IMAP mail filtering utility" +HOMEPAGE="https://github.com/lefcha/imapfilter" +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:0= ) + dev-libs/libpcre + dev-lang/lua:*" +DEPEND="${RDEPEND}" + +DOCS="AUTHORS NEWS README samples/*" + +src_prepare() { + default + 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/metadata.xml b/mail-filter/imapfilter/metadata.xml new file mode 100644 index 0000000..905d603 --- /dev/null +++ b/mail-filter/imapfilter/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="github">lefcha/imapfilter</remote-id> + </upstream> +</pkgmetadata> |