blob: 1483122261c98516002bf87f66867d330b739f3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Indexes and searches Maildir/MH folders"
HOMEPAGE="https://github.com/vandry/mairix"
SRC_URI="https://github.com/vandry/mairix/releases/download/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="zlib bzip2"
RDEPEND="
dev-libs/openssl:=
zlib? ( virtual/zlib:= )
bzip2? ( app-arch/bzip2 )
"
DEPEND="${RDEPEND}
app-alternatives/lex
app-alternatives/yacc
"
# Fail on various locales
RESTRICT="test"
src_prepare() {
default
# econf would fail with unknown options.
# Now it only prints "Unrecognized option".
sed -i -e "/^[[:space:]]*bad_options=yes/d" "${S}"/configure || die "sed failed"
}
src_configure() {
tc-export CC
econf \
$(use_enable zlib gzip-mbox) \
$(use_enable bzip2 bzip-mbox)
}
src_compile() {
emake -j1 # 923146
}
src_install() {
dobin mairix
doman mairix.1 mairixrc.5
dodoc NEWS README dotmairixrc.eg
}
|