summaryrefslogtreecommitdiff
path: root/mail-client/mutt
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client/mutt')
-rw-r--r--mail-client/mutt/Manifest13
-rw-r--r--mail-client/mutt/mutt-1.10.1.ebuild6
-rw-r--r--mail-client/mutt/mutt-1.11.4.ebuild6
-rw-r--r--mail-client/mutt/mutt-1.12.1.ebuild6
-rw-r--r--mail-client/mutt/mutt-1.12.2-r1.ebuild6
-rw-r--r--mail-client/mutt/mutt-1.12.2-r2.ebuild6
-rw-r--r--mail-client/mutt/mutt-1.13.1.ebuild253
7 files changed, 276 insertions, 20 deletions
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest
index 97e3996f91ff..41dbef5bc2e7 100644
--- a/mail-client/mutt/Manifest
+++ b/mail-client/mutt/Manifest
@@ -4,13 +4,16 @@ DIST mutt-1.10.1.tar.gz 4255890 BLAKE2B 2a0e7629c42ba11ec5c3686d9c17e283ed9cb1f9
DIST mutt-1.11.4.tar.gz 4582417 BLAKE2B 750385cc90df0d34d35103883a9918f205830ea93e5ec9f33cd579d5c121d630b3074f1918fa0e8e5aa91edd503c7ba38c34785a8a96803d7af30d08a0966c4d SHA512 18c5bfa5c45ef70b3307afccf28f613a36de035f1b5c493f84f0571f7ba297cd0b25e01be9102a028c51c28c459c4bc62281da88926e16ce58c3c1407609e0eb
DIST mutt-1.12.1.tar.gz 4675166 BLAKE2B f1c073e05d60f41a8057d90074b7cbc2a882243b0c4b495b1b147356c83daad136d5574dd6a567c0180823e73d8fb79a38d316ab0b2c56731baed24fe9ad9890 SHA512 0101120ad2acab89552be210725bae1a903f0b2c48be7207750589d141236537823f27c39e8d700eee16eb6b978058d056180b3d51e45e0242546f176b971538
DIST mutt-1.12.2.tar.gz 4675774 BLAKE2B 0b0a4695f31db97437e7d6e52ca8e131376bd0ae168195a4a73c3d2230f43460000c5b623e39b89c5cc7bf5253e7ffad8f007b844a864fcde94baef1aa7369f9 SHA512 a824a056edef0c320b7633a39ab2421646442132190c2b2bf788ac39aaf7a0143d12847eb27290913d8ae793810bb6353803977610045b36235579001a1096bd
+DIST mutt-1.13.1.tar.gz 4895458 BLAKE2B 4a69e27137c179571724fdd98781b4a282a8fda34964c13f1777a29e77389bca1a9ff1d3aed7fcc909f4153f0cf16cb8f3be3d1dd25c2cc3d34f215f3518096a SHA512 d65026caa0095d0ffc89bf169eec6bdbce539252653c81ed7c5aed1d00363d468ec052126ee702102f7225cd61dc4b9f8d7d677bd25a32b207adc30b49e9a0e8
DIST mutt-gentoo-1.10.1-patches-r0.tar.xz 108396 BLAKE2B 86edca04154f96efce27543326f8610dffba0085c7d69e82a7ac5f48ae9cd6662bcf6afa0e55b3d83ec054ee2eb86dff70b0c15a5170f41cc57887e17a661406 SHA512 1e0675803abc2bc116ef6e726f5009c43b0fb7bbf9bd3141a7cbbded51033695ddcc5228612f228cd19dae4181719e756a85e3fa2c8c9a9a4a9aefb4170bd5f5
DIST mutt-gentoo-1.11.4-patches-r0.tar.xz 107064 BLAKE2B f8ad915fd0ceea729fdc14719e69c43751e75fd4afc9f19460d15493fd97baee9606703d7d6a8239a34b2c0d6f2458fc007277933bbc724b6a8588bb7514decd SHA512 57714259f802efe54e21cd23560bb158777b50320604db0a8ff8a47c25166a873d13d64b03eba4cb1c5067a586e7c64d9d0ba84ddbe0e179745e92d704a55cd1
DIST mutt-gentoo-1.12.1-patches-r0.tar.xz 106064 BLAKE2B 60b73bcfd9713261c7b88fe74d70a630954511a38331c3e8e958ef7f6459b3bf8548211ee920fe238085c6481c03633cec21e7ae70c1473c89914ce720bd7c21 SHA512 feffbd49ad8156e226e7d4dc56b1c976f3f2a0f8dc3551c11696d5653342b91b4406a494d6081b969fe8267bf09a441a4f3c5a0014d108000e55c985aaafa596
DIST mutt-gentoo-1.12.2-patches-r1.tar.xz 106720 BLAKE2B 788735757dd4cf8c1d9fe09350eaf4780b1e90f1e1d9bf39c98ee03255b9b84847a387402940d1a05e4be2b8684688216ea62f564c40715cd6ccf4bebaeebdc0 SHA512 ec8c0989bff2008e6df0c43a8e833fb4f463993eacb1cbdd11722a6c49bb400804c80f74ac0073883a050f352a65d2743c4aebc882a2cd7db369a4e214a95701
-EBUILD mutt-1.10.1.ebuild 9212 BLAKE2B 15ad1afb3b4e28c7b49c71d6b33354e00c1c04051db11405b56976801e9cbc782deb4a8c1129208851c4220037791a96f00087bd743e076fe5df6cb6424be709 SHA512 c2503f2608a70f89822d1f0b58614e8c2df326cadd9f1e8af368ebf7a7547d4e95b02319c421c4e4f0037f2c4cd6b72bc813151f3d9475b4ed1c79a2c0eae6de
-EBUILD mutt-1.11.4.ebuild 9451 BLAKE2B 2631c66942a343498191cecd9c6947cb83719a380212d633c29c45adee891211f0a14f0d9a6c64c321e1be392051363414a650d3a2a15b752b2b5e9e1828bf02 SHA512 b8d422fed0c11c2d3a1d6a2d58d27c2f83cef3f2d02f0ff3ad1b995a4b87a77eeabb768e80975f9d5dfa2a0298abd0127638652f618f853c29ecb526e800fce4
-EBUILD mutt-1.12.1.ebuild 9489 BLAKE2B 4926dfb65f78ac7c3fad5d401c27d272608ff0c731f029608a7d7481d7f6a90a0d42e5430c7528e1f5d5424ef2bfab91e8548a343953624f3b46fc1b4aee67be SHA512 a0ae2c8ca8ae1c9fd698b3528ea4548a7ee0faff5525ace20a91eec92815a26766860b75adffb3786b2d17fd86eecf3ed5fb0f869a86012f494aef771d27131c
-EBUILD mutt-1.12.2-r1.ebuild 9489 BLAKE2B f0fac69e1b51e1b1937a98cc9dd4d7a9b3323c63bd5f5a64422ee9add4eb47e43ee22c72ee534e349ce061565319ba522c5c1923cf05df08a0c49e8b389c48ea SHA512 f88d38c12ee3e5dfb96f4c3aab0c664fe702a6011b512275aeabcc954619e45972d0091898bd64d762e351823fdb4202772a20e2fac683a04b712dfbe6a1da99
-EBUILD mutt-1.12.2-r2.ebuild 8739 BLAKE2B d0d6206eaf247cefd667fe053a468b8a30dcb65cb6a7b5a7089c91147f2d29ebf0e3e2eeb69094044da0e24ca964f2ab64914e28c64cd2089b08e2dd2ee7aa7a SHA512 4a53e27e8097cb66e50f0a45ec321dfb59017bb20db1c28e8e4443a28c088e6283d069fb5e3496d91d267152ac998e965c247ce87de52a843ffc986d849acc4e
+DIST mutt-gentoo-1.13.1-patches-r0.tar.xz 35888 BLAKE2B fc84e40794e0d1a66226c84423ddfa61deb5eea8bd87d8c6b611aebb049f8e100dda96e49dfd4f42e284ced8cf99e6aac38d72433cfad6c378e3fcf34ecedc57 SHA512 7f8045075df8e14ca8a163d9c2e0f7047dfb783e40086dc47b0c2c27a5e094f5e50f9df34d3eda935f9679339212c150579f747a85cdb4341e2f6eeaa2f1db7b
+EBUILD mutt-1.10.1.ebuild 9155 BLAKE2B 49b5576d721a9ad68e947e904a6e464dd18282ed9077601fcb209f259da364324b03c031067966673f6999da42c6907b5d4221a241db2f377288ceca79499ec6 SHA512 777929da223e49ab2fde78024009015203ebdad6aff9d954a9930ef108eff1025306cba2ff4187bdbdbc13e670060c6771d29c463ad3af189e42fd0d2ce6f2a5
+EBUILD mutt-1.11.4.ebuild 9394 BLAKE2B c5ce202ae5350d5c86c4e45f3ab1c30a33c1451bf5bad16076799feea6160e26ca765617c0801102f224a4ff511ef28bae72108635a63b32461b44574aab504b SHA512 f826f54b9f508b20605689e306954c22b2928f4eba9b7b2aadab6ff362ffd79088f3ab076a7462004cace8b0def8a3ebbc2b59fe2b1e60200ec84f2734ec9294
+EBUILD mutt-1.12.1.ebuild 9432 BLAKE2B ed526a801f5dbe3aa4ccc18baec4acb897d94723601c203538c4ce2ed1a1a6e171203f84b8048fdd1cd9f1b6d9fd04a21b527025b6658d8799774d440e1055a9 SHA512 1c46e2ce78b6326a931f33ab01422713c5126d06bf3bb09912fb784ca4390d92d884d64db64396a5c87004a3da87bf90291c13ce2a374fcdda598e1ae41edfb3
+EBUILD mutt-1.12.2-r1.ebuild 9432 BLAKE2B ded23934158fc034c03c20537d7bcee864eb377ad1eeb207489be14cc3d9d002e06266905ca4b285359ceae237c47e3adae36540c5bf7c4bb79baf17f0203708 SHA512 bff57f1cc021db6870e34e4b73f6f9fbc52292ff85e0bf6cc6877d64b2d0752ea56b7f217c250373f1ea6043a4604e083d8f7b9e45093ffd883013a4a735910a
+EBUILD mutt-1.12.2-r2.ebuild 8682 BLAKE2B a7ed03d38f8c3de2ec00915906f3cce024801303fd0c83afa57cb62add7585198d706d519f5217f686c48d270ac5732d23b29daa27e5e87288f819471e2cde25 SHA512 c87a76711ba98e17b85c85cfed4b8ce87ae2a49f07b838d6f6e8c25509b10f15457b33d2a070ae29ec1997b07450c5736ca3a95c25d5b81e8aa3bbdf6b1d6e1d
+EBUILD mutt-1.13.1.ebuild 7936 BLAKE2B 7ad5aee8ae967dd666ed6ea9919b2053fde4f1d25d0f10e7ff9c1c318bece8ceae707ca8ea31b0e0c857e6f72bd1a49f877093a8e318732076db592318c4471e SHA512 5321971e589eb19abb7cf71a5636f17290e9f0bbe0476979a6a07900cb9883affd36605dec5073de0a0f8b754c79d1555d7df733a03630d86b185c25e7953d70
MISC metadata.xml 1633 BLAKE2B 86c5eea8025bff6323e0ac1f703839caf87e868dfb934f6d42e5265bc31da40fa55145ca474174163feba2863e65ea53e22c1de811703d262f195ad89b17648b SHA512 2248ee20a23502741fbd1b1cc9d7d9cc60f88864e70ccb5729fee6448297146599b073c5124ffe04653ef04faffae532ba5a7d906bb515e6f399be8e7ef06368
diff --git a/mail-client/mutt/mutt-1.10.1.ebuild b/mail-client/mutt/mutt-1.10.1.ebuild
index 2c5a5a9392f4..291ba186831a 100644
--- a/mail-client/mutt/mutt-1.10.1.ebuild
+++ b/mail-client/mutt/mutt-1.10.1.ebuild
@@ -208,11 +208,11 @@ src_configure() {
myconf+=( "--with-homespool=Maildir" )
fi
- econf "${myconf[@]}" || die "configure failed"
+ econf "${myconf[@]}"
}
src_install() {
- emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" install
if use mbox; then
insinto /etc/mutt
newins "${FILESDIR}"/Muttrc.mbox Muttrc
@@ -227,7 +227,7 @@ src_install() {
# A man-page is always handy, so fake one
if use !doc; then
- emake -C doc DESTDIR="${D}" muttrc.man || die
+ emake -C doc DESTDIR="${D}" muttrc.man
# make the fake slightly better, bug #413405
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
diff --git a/mail-client/mutt/mutt-1.11.4.ebuild b/mail-client/mutt/mutt-1.11.4.ebuild
index 3f6633e30d9e..9a75061ed7ca 100644
--- a/mail-client/mutt/mutt-1.11.4.ebuild
+++ b/mail-client/mutt/mutt-1.11.4.ebuild
@@ -210,11 +210,11 @@ src_configure() {
myconf+=( "--with-homespool=Maildir" )
fi
- econf "${myconf[@]}" || die "configure failed"
+ econf "${myconf[@]}"
}
src_install() {
- emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" install
if use mbox; then
insinto /etc/mutt
newins "${FILESDIR}"/Muttrc.mbox Muttrc
@@ -229,7 +229,7 @@ src_install() {
# A man-page is always handy, so fake one
if use !doc; then
- emake -C doc DESTDIR="${D}" muttrc.man || die
+ emake -C doc DESTDIR="${D}" muttrc.man
# make the fake slightly better, bug #413405
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
diff --git a/mail-client/mutt/mutt-1.12.1.ebuild b/mail-client/mutt/mutt-1.12.1.ebuild
index 95e66231cb21..c6dbb7693066 100644
--- a/mail-client/mutt/mutt-1.12.1.ebuild
+++ b/mail-client/mutt/mutt-1.12.1.ebuild
@@ -211,11 +211,11 @@ src_configure() {
myconf+=( "--with-homespool=Maildir" )
fi
- econf "${myconf[@]}" || die "configure failed"
+ econf "${myconf[@]}"
}
src_install() {
- emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" install
if use mbox; then
insinto /etc/mutt
newins "${FILESDIR}"/Muttrc.mbox Muttrc
@@ -230,7 +230,7 @@ src_install() {
# A man-page is always handy, so fake one
if use !doc; then
- emake -C doc DESTDIR="${D}" muttrc.man || die
+ emake -C doc DESTDIR="${D}" muttrc.man
# make the fake slightly better, bug #413405
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
diff --git a/mail-client/mutt/mutt-1.12.2-r1.ebuild b/mail-client/mutt/mutt-1.12.2-r1.ebuild
index 461d17b16b6b..b246b32c07b2 100644
--- a/mail-client/mutt/mutt-1.12.2-r1.ebuild
+++ b/mail-client/mutt/mutt-1.12.2-r1.ebuild
@@ -211,11 +211,11 @@ src_configure() {
myconf+=( "--with-homespool=Maildir" )
fi
- econf "${myconf[@]}" || die "configure failed"
+ econf "${myconf[@]}"
}
src_install() {
- emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" install
if use mbox; then
insinto /etc/mutt
newins "${FILESDIR}"/Muttrc.mbox Muttrc
@@ -230,7 +230,7 @@ src_install() {
# A man-page is always handy, so fake one
if use !doc; then
- emake -C doc DESTDIR="${D}" muttrc.man || die
+ emake -C doc DESTDIR="${D}" muttrc.man
# make the fake slightly better, bug #413405
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
diff --git a/mail-client/mutt/mutt-1.12.2-r2.ebuild b/mail-client/mutt/mutt-1.12.2-r2.ebuild
index 1300423d9a3d..77e569123721 100644
--- a/mail-client/mutt/mutt-1.12.2-r2.ebuild
+++ b/mail-client/mutt/mutt-1.12.2-r2.ebuild
@@ -205,11 +205,11 @@ src_configure() {
myconf+=( "--with-homespool=Maildir" )
fi
- econf "${myconf[@]}" || die "configure failed"
+ econf "${myconf[@]}"
}
src_install() {
- emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" install
if use mbox; then
insinto /etc/mutt
newins "${FILESDIR}"/Muttrc.mbox Muttrc
@@ -224,7 +224,7 @@ src_install() {
# A man-page is always handy, so fake one
if use !doc; then
- emake -C doc DESTDIR="${D}" muttrc.man || die
+ emake -C doc DESTDIR="${D}" muttrc.man
# make the fake slightly better, bug #413405
sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \
-e 's#in @docdir@,#at http://www.mutt.org/,#' \
diff --git a/mail-client/mutt/mutt-1.13.1.ebuild b/mail-client/mutt/mutt-1.13.1.ebuild
new file mode 100644
index 000000000000..4cd23e5423af
--- /dev/null
+++ b/mail-client/mutt/mutt-1.13.1.ebuild
@@ -0,0 +1,253 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils flag-o-matic autotools
+
+PATCHREV="r0"
+PATCHSET="gentoo-${PVR}/${PATCHREV}"
+
+DESCRIPTION="A small but very powerful text-based mail client"
+HOMEPAGE="http://www.mutt.org/"
+MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz"
+SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz
+ https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz
+ https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}"
+IUSE="berkdb debug doc gdbm gnutls gpgme +hcache idn +imap kerberos libressl +lmdb mbox nls pgp-classic pop qdbm +sasl selinux slang smime-classic +smtp +ssl tokyocabinet vanilla prefix"
+# hcache: allow multiple, bug #607360
+REQUIRED_USE="
+ hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) )
+ imap? ( ssl )
+ pop? ( ssl )
+ smime-classic? ( ssl !gnutls )
+ smtp? ( ssl sasl )
+ sasl? ( || ( imap pop smtp ) )
+ kerberos? ( || ( imap pop smtp ) )"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+# yes, we overdepend on the backend impls here, hopefully one day we can
+# have REQUIRED_USE do what it is made for again. bug #607360
+CDEPEND="
+ app-misc/mime-types
+ virtual/libiconv
+
+ berkdb? ( >=sys-libs/db-4:= )
+ gdbm? ( sys-libs/gdbm )
+ lmdb? ( dev-db/lmdb:= )
+ qdbm? ( dev-db/qdbm )
+ tokyocabinet? ( dev-db/tokyocabinet )
+
+ ssl? (
+ gnutls? ( >=net-libs/gnutls-1.0.17:= )
+ !gnutls? (
+ libressl? ( dev-libs/libressl:= )
+ !libressl? ( >=dev-libs/openssl-0.9.6:0= )
+ )
+ )
+
+ nls? ( virtual/libintl )
+ sasl? ( >=dev-libs/cyrus-sasl-2 )
+ kerberos? ( virtual/krb5 )
+ idn? ( net-dns/libidn2 )
+ gpgme? ( >=app-crypt/gpgme-0.9.0:= )
+ slang? ( sys-libs/slang )
+ !slang? ( >=sys-libs/ncurses-5.2:0= )
+"
+DEPEND="${CDEPEND}
+ net-mail/mailbase
+ doc? (
+ dev-libs/libxml2
+ dev-libs/libxslt
+ app-text/docbook-xsl-stylesheets
+ || ( www-client/lynx www-client/w3m www-client/elinks )
+ )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-mutt )
+ smime-classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) )
+ pgp-classic? ( app-crypt/gnupg )
+"
+
+src_prepare() {
+ local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV}
+
+ if use !vanilla ; then
+ # apply patches
+ export EPATCH_FORCE="yes"
+ export EPATCH_SUFFIX="patch"
+ # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10
+ local patches=(
+ patches-mutt
+ bugs-gentoo
+ features-common
+ features-extra
+ gentoo
+ )
+ local patchset
+ for patchset in "${patches[@]}" ; do
+ [[ -d "${PATCHDIR}/${patchset}" ]] || continue
+ einfo "Patches for ${PATCHSET} patchset ${patchset}"
+ EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \
+ || die "patchset ${patchset} failed"
+ done
+ # add some explanation as to why not to go upstream
+ sed -i \
+ -e '/ReachingUs = N_(/aThis release of Mutt is heavily enriched with patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor re-emerge with USE=vanilla and try to reproduce your problem.\\n\\' \
+ main.c || die "Failed to add bug instructions"
+ fi
+
+ local upatches=
+ # allow user patches
+ eapply_user && upatches=" with user patches"
+
+ # patch version string for bug reports
+ local patchset=
+ use vanilla || patchset=", ${PATCHSET}"
+ sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \
+ muttlib.c || die "failed patching in Gentoo version"
+
+ # many patches touch the buildsystem, we always need this
+ AT_M4DIR="m4" eautoreconf
+
+ # the configure script contains some "cleverness" whether or not to setgid
+ # the dotlock program, resulting in bugs like #278332
+ sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ local myconf=(
+ # signing and encryption
+ $(use_enable pgp-classic pgp)
+ $(use_enable smime-classic smime)
+ $(use_enable gpgme)
+
+ # features
+ $(use_enable debug)
+ $(use_enable doc)
+ $(use_enable nls)
+
+ # protocols
+ $(use_enable imap)
+ $(use_enable pop)
+ $(use_enable smtp)
+
+ $(use ssl && use gnutls && echo --with-gnutls --without-ssl)
+ $(use ssl && use !gnutls && echo --without-gnutls --with-ssl )
+ $(use !ssl && echo --without-gnutls --without-ssl)
+
+ $(use_with sasl)
+ $(use_with idn idn2) --without-idn # avoid automagic libidn dep
+ $(use_with kerberos gss)
+ "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)"
+ "$(use_with !slang curses "${EPREFIX}"/usr)"
+
+ "--enable-compressed"
+ "--enable-external-dotlock"
+ "--enable-iconv"
+ "--enable-nfs-fix"
+ "--enable-sidebar"
+ "--sysconfdir=${EPREFIX}/etc/${PN}"
+ "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}"
+ "--without-bundled-regex" # use the implementation from libc
+ "--with-exec-shell=${EPREFIX}/bin/sh"
+ )
+
+ if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then
+ # arrows in index view do not show when using wchar_t
+ # or misalign due to wrong computations
+ myconf+=( "--without-wc-funcs" )
+ fi
+
+ # note: REQUIRED_USE should have selected only one of these, but for
+ # bug #607360 we're forced to allow multiple. For that reason, this
+ # list is ordered to preference, and only the first is taken.
+ local hcaches=(
+ "lmdb"
+ "qdbm"
+ "tokyocabinet"
+ "gdbm"
+ "berkdb:bdb"
+ )
+ local ucache hcache lcache
+ for hcache in "${hcaches[@]}" ; do
+ if use ${hcache%%:*} ; then
+ ucache=${hcache}
+ break
+ fi
+ done
+ if [[ -n ${ucache} ]] ; then
+ myconf+=( "--enable-hcache" )
+ else
+ myconf+=( "--disable-hcache" )
+ fi
+ for hcache in "${hcaches[@]}" ; do
+ [[ ${hcache} == ${ucache} ]] \
+ && myconf+=( "--with-${hcache#*:}" ) \
+ || myconf+=( "--without-${hcache#*:}" )
+ done
+
+ if use mbox; then
+ myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" )
+ else
+ myconf+=( "--with-homespool=Maildir" )
+ fi
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ if use mbox; then
+ insinto /etc/mutt
+ newins "${FILESDIR}"/Muttrc.mbox Muttrc
+ else
+ insinto /etc/mutt
+ doins "${FILESDIR}"/Muttrc
+ fi
+
+ # A newer file is provided by app-misc/mime-types. So we link it.
+ rm "${ED}"/etc/${PN}/mime.types
+ dosym "${EPREFIX}"/etc/mime.types /etc/${PN}/mime.types
+
+ # nuke manpages that should be provided by an MTA, bug #177605
+ rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
+ || ewarn "failed to remove files, please file a bug"
+
+ if use !prefix ; then
+ fowners root:mail /usr/bin/mutt_dotlock
+ fperms g+s /usr/bin/mutt_dotlock
+ fi
+
+ dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ echo
+ elog "If you are new to mutt you may want to take a look at"
+ elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
+ elog " https://wiki.gentoo.org/wiki/Mutt"
+ echo
+ else
+ ewarn "The nntp and notmuch patches were dropped from this release."
+ ewarn "Due to too much maintenance cost, the nntp and notmuch patches"
+ ewarn "were dropped from this release. If you need support for any"
+ ewarn "of these features, please consider using mail-client/neomutt."
+ echo
+ fi
+ if use !pgp-classic && use !smime-classic && use !gpgme ; then
+ ewarn "Please note that crypto related USE-flags of Mutt have changed."
+ ewarn "To comply with PMS, the following USE-flags were renamed:"
+ ewarn "(see https://bugs.gentoo.org/695078)"
+ ewarn " pgp_classic -> pgp-classic"
+ ewarn " smime_classic -> smime-classic"
+ echo
+ fi
+ if use gpgme ; then
+ ewarn "Note: in order for Mutt to actually use the gpgme backend"
+ ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc"
+ # https is broken due to a certificate mismatch :(
+ ewarn " http://www.mutt.org/doc/manual/#crypt-use-gpgme"
+ fi
+}