37 lines
715 B
Bash
37 lines
715 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
|
|
EAPI=8
|
|
|
|
inherit optfeature
|
|
|
|
DESCRIPTION="Utilities to work with Maildir"
|
|
HOMEPAGE="https://github.com/leahneukirchen/mblaze"
|
|
SRC_URI="https://mirror.chaotic.ninja/software/${P}.tar.gz"
|
|
|
|
LICENSE="public-domain"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="gnupg msendmail"
|
|
|
|
DEPEND="
|
|
gnupg? ( app-crypt/gnupg )
|
|
"
|
|
|
|
src_compile() {
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
|
use gnupg && dobin contrib/mencrypt
|
|
use msendmail && dobin contrib/msendmail
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "fetching e-mail" net-mail/fdm
|
|
optfeature "fetching e-mail" net-mail/isync
|
|
optfeature "sending e-mail" mail-mta/msmtp
|
|
optfeature "sending e-mail" mail-mta/esmtp
|
|
}
|