mail-client/mutt-1.13.4-r1: provide mandatory atachments settings
authorFabian Groffen <grobian@gentoo.org>
Fri, 6 Mar 2020 07:25:11 +0000 (08:25 +0100)
committerFabian Groffen <grobian@gentoo.org>
Fri, 6 Mar 2020 07:25:33 +0000 (08:25 +0100)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
mail-client/mutt/mutt-1.13.4-r1.ebuild [moved from mail-client/mutt/mutt-1.13.4.ebuild with 95% similarity]

similarity index 95%
rename from mail-client/mutt/mutt-1.13.4.ebuild
rename to mail-client/mutt/mutt-1.13.4-r1.ebuild
index f67a122ec259c2eadb1248ad7e2e1ca90c679f48..bf80a3ff6d281fba3e0cb92d6b6135ad19a18f47 100644 (file)
@@ -198,14 +198,22 @@ src_configure() {
 
 src_install() {
        emake DESTDIR="${D}" install
+       insinto /etc/${PN}
        if use mbox; then
-               insinto /etc/mutt
                newins "${FILESDIR}"/Muttrc.mbox Muttrc
        else
-               insinto /etc/mutt
                doins "${FILESDIR}"/Muttrc
        fi
 
+       # include attachment settings, it's mandatory and shouldn't harm
+       # when not being referenced (index_format using %X)
+       {
+               echo
+               echo "# mandatory attachments settings, not setting these is a BUG!"
+               echo "# see https://marc.info/?l=mutt-dev&m=158347284923517&w=2"
+               grep '^attachments' "${ED}"/etc/${PN}/Muttrc.dist
+       } >> "${ED}"/etc/${PN}/Muttrc
+
        # A newer file is provided by app-misc/mime-types. So we link it.
        rm "${ED}"/etc/${PN}/mime.types
        dosym ../mime.types /etc/${PN}/mime.types