guru/net-mail/dovecot-fts-flatcurve/dovecot-fts-flatcurve-1.0.5.ebuild
Nicolas PARLANT fdb581d87f
net-mail/dovecot-fts-flatcurve-1.0.5: fix dep & CFLAGS
previous version (1.2) from xapian has been deleted for 2 years from
portage.

disable hardening by default which adds uncommon CFLAGS

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
2024-10-24 17:11:43 +02:00

49 lines
1.1 KiB
Bash

# 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"
}