# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3

DESCRIPTION="Dovecot FTS plugin to enable message indexing using Xapian"
HOMEPAGE="https://github.com/slusarz/dovecot-fts-flatcurve"
EGIT_REPO_URI="https://github.com/slusarz/dovecot-fts-flatcurve"

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

RDEPEND="net-mail/dovecot[stemmer]
!>=net-mail/dovecot-2.4
dev-libs/xapian"

src_configure() {
	./autogen.sh
	./configure --prefix=/usr --with-dovecot=/usr/lib64/dovecot
}