blob: 8101d9af327984ee3b4a9defefe83638b17eecb3 (
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
56
57
58
59
60
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Dovecot FTS plugin backed by Xapian"
HOMEPAGE="https://github.com/grosjo/fts-xapian"
if [ "$PV" = 9999 ] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/grosjo/fts-xapian/"
else
SRC_URI="https://github.com/grosjo/fts-xapian/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/fts-xapian-${PV}"
KEYWORDS="~amd64"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="static-libs"
RDEPEND="
dev-libs/icu:=
>=dev-libs/xapian-1.4:=
net-mail/dovecot:=
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
if [ "$PV" = 9999 ] ; then
BDPEND="${BDEPEND}
dev-build/automake
dev-build/automake-archive
"
fi
PATCHES=(
${FILESDIR}/bug-887887_allow-O2-override.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
# Disable hardening so CFLAGS are left up to the Gentoo user
# https://bugs.gentoo.org/888751
econf \
--enable-hardening=no \
--with-dovecot="${EPREFIX}/usr/$(get_libdir)/dovecot" \
$( use_enable static-libs static )
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|