commit:     9ad649d54a51d901d8501e391cf3e928ae3ede0e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 18 23:42:34 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 18 23:46:14 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ad649d5

net-mail/mu: add 1.12.15

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/mu/Manifest          |   1 +
 net-mail/mu/mu-1.12.15.ebuild | 103 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
index 860bcb930c38..e58829169253 100644
--- a/net-mail/mu/Manifest
+++ b/net-mail/mu/Manifest
@@ -1,3 +1,4 @@
 DIST mu-1.12.12.tar.xz 757272 BLAKE2B 
3a73a41fdaa490b478b05d86493e42b4cb5c2059dd3c11b7f08201b48ff90a1df07a8f5d86a4ff31a62bbce9affc9a672581227782de5f3ed80cb9db28750443
 SHA512 
be6db3f713e5d69e08ddc91084e6ceb230a9da56f8b67b5d66bbe2d3f428ef74cbffb0fe89af43fa16bda86c46fa5d8a58989a0d4e195d349b8070083052dd20
 DIST mu-1.12.13.tar.xz 775148 BLAKE2B 
946a0bfefb9f143354f6870616728512863a49db14b774fcd10771bd281328533a2f938195731caaef5aa7ffc1ae841e66d186baa479f7ab1c1a750cea71ed05
 SHA512 
88460b3d34dea78fcf85875c444fbe24277a9d315da0448880307c50034cc4ec8b5687227358bdc47f7713852ba60fa687fdc5a5ed94d469617b6fc8c7162ade
+DIST mu-1.12.15.tar.xz 779432 BLAKE2B 
30e8928c00b1e824ccaa2daa51fd38bf3da1bfe5d041b81dacb7b5ada8784e93c0ca17f369ac54869cb1f94056b2a1cafacc6beb9ce2a3834c15dfb4ef241f4d
 SHA512 
22eed8def2002f033d073b4b07952f47627e54b4016e2c2f7804cd99134ebc2cf5b244da0e53289bb98f1b7e4fc7cda3743af3af05f0bbcb225fd0b744e24a5a
 DIST mu-1.12.9.tar.xz 734240 BLAKE2B 
e536e832872406d865565ec1ae3775042b4fc9d2f50e2581f3d247007b8aeb68507e59d08168cbd16870dc907314c522bedead73a99ca2d5e8a42b8a67898e7b
 SHA512 
27cd28a44dc6c8146891337be2c478aa7bf9e1dc458c30f3895b7bbcbafabd6b290e01e3f8c5db97f09b6cd68aebb3a0a0d3e7d53e25b4cba30613e7b8123d19

diff --git a/net-mail/mu/mu-1.12.15.ebuild b/net-mail/mu/mu-1.12.15.ebuild
new file mode 100644
index 000000000000..fac5921db3eb
--- /dev/null
+++ b/net-mail/mu/mu-1.12.15.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp-common meson readme.gentoo-r1
+
+DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and 
indexing"
+HOMEPAGE="https://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu";
+SRC_URI="https://github.com/djcb/mu/releases/download/v${PV}/${P}.tar.xz";
+
+# mu: GPL-3+
+# + tl: CC0-1.0
+# + variant-lite: Boost-1.0
+LICENSE="BSD Boost-1.0 CC0-1.0 GPL-3+ MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+IUSE="emacs readline test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       >=dev-cpp/cli11-2.4
+       dev-libs/glib:2
+       >=dev-libs/gmime-3.2:3.0
+       >=dev-libs/libfmt-11.1:=
+       >=dev-libs/xapian-1.4:=
+       emacs? ( >=app-editors/emacs-25.3:* )
+       readline? ( sys-libs/readline:= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       sys-apps/texinfo
+       virtual/pkgconfig
+"
+
+PATCHES=(
+       # https://bugs.gentoo.org/925503
+       "${FILESDIR}"/${PN}-1.12.0-no-python.patch
+)
+
+DOC_CONTENTS="
+       To use mu4e you need to configure it in your .emacs file.
+       See the manual for more information:
+       https://www.djcbsoftware.nl/code/mu/mu4e/
+"
+SITEFILE="70mu-gentoo-autoload.el"
+
+src_prepare() {
+       default
+
+       # Don't install NEWS.org into /usr/share/doc.
+       sed -i '/NEWS.org/,+1 d' meson.build || die
+       sed -i '/mu4e-about.org/d' mu4e/meson.build || die
+
+       # Don't compress the info file.
+       sed -i '/gzip/d' build-aux/meson-install-info.sh || die
+
+       # Instead, put it in /usr/share/doc/${PF}.
+       sed -i "/MU_DOC_DIR/s/mu/${PF}/" mu4e/meson.build || die
+}
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature readline)
+               $(meson_feature test tests)
+               -Dcld2=disabled
+               -Demacs="$(usex emacs "${EMACS}" emacs-not-enabled)"
+               # TODO: revisit this, it's not actually deprecated, just been 
reworked
+               -Dguile=disabled
+               -Dscm=disabled
+               -Duse-embedded-fmt=false
+               -Duse-embedded-cli11=false
+       )
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+
+       # Since meson no longer installs NEWS.org, install it with dodoc.
+       # Also, it must be uncompressed so that it can be viewed with
+       # mu4e-info.
+       docompress -x /usr/share/doc/${PF}/NEWS.org
+       dodoc NEWS.org
+
+       if use emacs; then
+               # Same as above.
+               docompress -x /usr/share/doc/${PF}/mu4e-about.org
+               dodoc mu4e/mu4e-about.org
+
+               elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+
+               readme.gentoo_create_doc
+       fi
+}
+
+pkg_postinst() {
+       use emacs && readme.gentoo_create_doc
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to