EAPI=6
-inherit autotools eutils flag-o-matic
+inherit eutils flag-o-matic
if [[ ${PV} =~ 9999$ ]]; then
inherit git-r3
)
"
DEPEND="${CDEPEND}
+ dev-lang/tcl
net-mail/mailbase
doc? (
dev-libs/libxml2
S="${WORKDIR}/${PN}-${P}"
-src_prepare() {
- eapply_user
- eautoreconf
-}
-
src_configure() {
local myconf=(
"$(use_enable doc)"
"$(use_enable pgp_classic pgp)"
"$(use_enable smime)"
"$(use_enable smime_classic smime)"
- "$(use_with berkdb bdb)"
- "$(use_with gdbm)"
- "$(use_with idn)"
- "$(use_with kerberos gss)"
- "$(use_with kyotocabinet)"
- "$(use_with lmdb)"
- "$(use_with qdbm)"
- "$(use_with sasl)"
- "$(use_with tokyocabinet)"
- "--with-$(usex slang slang curses)"
+ "$(use_enable berkdb bdb)"
+ "$(use_enable gdbm)"
+ "$(use_enable idn)"
+ "$(use_enable kerberos gss)"
+ "$(use_enable kyotocabinet)"
+ "$(use_enable lmdb)"
+ "$(use_enable qdbm)"
+ "$(use_enable sasl)"
+ "$(use_enable tokyocabinet)"
+ "--with-ui=$(usex slang slang ncurses)"
"--sysconfdir=${EPREFIX}/etc/${PN}"
- "--with-docdir=${EPREFIX}/usr/share/doc/${PF}"
+ "$(use_enable ssl)"
+ "$(use_enable gnutls)"
)
- if use gnutls; then
- myconf+=( "--with-gnutls" )
- elif use ssl; then
- myconf+=( "--with-ssl" )
- fi
-
econf "${myconf[@]}"
}