summaryrefslogtreecommitdiff
path: root/net-mail/dovecot-fts-flatcurve/dovecot-fts-flatcurve-1.0.5.ebuild
blob: 17b63b581292f7cad70a4d834d522dddc003dcee (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Dovecot FTS plugin to enable message indexing using Xapian"
HOMEPAGE="https://github.com/slusarz/dovecot-fts-flatcurve"
SRC_URI="https://github.com/slusarz/dovecot-fts-flatcurve/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"

IUSE="textcat"

DEPEND="
	<net-mail/dovecot-2.4.0:=[stemmer,textcat?]
	dev-libs/xapian:=
"
RDEPEND="${DEPEND}"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		--enable-hardening=no \
		--with-dovecot="${EPREFIX}/usr/$(get_libdir)/dovecot"
}

src_install() {
	default
	find "${D}" -name "*.la" -delete

	dodoc "${FILESDIR}/90-fts.conf"
}

pkg_postinst() {
	elog "For configuration, report to https://slusarz.github.io/dovecot-fts-flatcurve/configuration.html"
	elog "The steps are as follows : "
	elog "Insert 'mail_plugins = $mail_plugins fts fts_flatcurve' in /etc/dovecot/conf.d/10-mail.conf"
	elog "Set configuration in /etc/dovecot/conf.d/90-fts.conf"
	elog "See example : /usr/share/doc/${P}/90-fts.conf.bz2"
}