1 |
commit: 0e1e8ba45af1913742d440c63efde2390eca9e2c |
2 |
Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> |
3 |
AuthorDate: Sun Jun 26 19:18:57 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 09:31:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e1e8ba4 |
7 |
|
8 |
mail-filter/imapfilter: add 5.4 & luajit to LUA_COMPAT, correctly depend on libpcre2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/828110 |
11 |
Closes: https://bugs.gentoo.org/854471 |
12 |
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/26082 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
mail-filter/imapfilter/imapfilter-2.7.5-r1.ebuild | 48 +++++++++++++++++++++++ |
17 |
1 file changed, 48 insertions(+) |
18 |
|
19 |
diff --git a/mail-filter/imapfilter/imapfilter-2.7.5-r1.ebuild b/mail-filter/imapfilter/imapfilter-2.7.5-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..6f25c2f85bc8 |
22 |
--- /dev/null |
23 |
+++ b/mail-filter/imapfilter/imapfilter-2.7.5-r1.ebuild |
24 |
@@ -0,0 +1,48 @@ |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
31 |
+ |
32 |
+inherit lua-single toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="An IMAP mail filtering utility" |
35 |
+HOMEPAGE="https://github.com/lefcha/imapfilter" |
36 |
+SRC_URI="https://github.com/lefcha/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="MIT" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~ppc ~x86" |
41 |
+ |
42 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ dev-libs/openssl:0= |
46 |
+ dev-libs/libpcre2 |
47 |
+ ${LUA_DEPS}" |
48 |
+DEPEND="${RDEPEND}" |
49 |
+ |
50 |
+DOCS="AUTHORS NEWS README samples/*" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ sed -i -e "/^PREFIX/s:/usr/local:${EPREFIX}/usr:" \ |
55 |
+ -e "/^MANDIR/s:man:share/man:" \ |
56 |
+ -e "/^CFLAGS/s:CFLAGS =:CFLAGS +=:" \ |
57 |
+ -e "/^CFLAGS/s/-O//" \ |
58 |
+ src/Makefile || die |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ emake \ |
63 |
+ CC="$(tc-getCC)" \ |
64 |
+ LDFLAGS="${LDFLAGS}" \ |
65 |
+ INCDIRS=$(lua_get_CFLAGS) \ |
66 |
+ LIBLUA=$(lua_get_LIBS) |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ default |
71 |
+ doman doc/imapfilter.1 doc/imapfilter_config.5 |
72 |
+} |