net-mail/mu: add 1.12.12

I've disabled the new scm bindings as they're experimental still, per
release notes.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-07-31 11:33:50 +01:00
parent f7fdcb653d
commit 78b563c342
2 changed files with 101 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST mu-1.12.11.tar.xz 736032 BLAKE2B e770b756e80310935cda2fde864775fc7bf76a959b83fe3af22402b4d3fe42f0f88b6fabf7821d0fa2d78606ec6eab5379087c63c332f3d8ee21ddacabf75400 SHA512 93cf4af501c785010c2864237e3e6ef6b9285b9e724c94c33c5027e52494b63ccd03f8a9840f6c08532fdb1631db5e0d995e04da00d238297b707ae536f95c18
DIST mu-1.12.12.tar.xz 757272 BLAKE2B 3a73a41fdaa490b478b05d86493e42b4cb5c2059dd3c11b7f08201b48ff90a1df07a8f5d86a4ff31a62bbce9affc9a672581227782de5f3ed80cb9db28750443 SHA512 be6db3f713e5d69e08ddc91084e6ceb230a9da56f8b67b5d66bbe2d3f428ef74cbffb0fe89af43fa16bda86c46fa5d8a58989a0d4e195d349b8070083052dd20
DIST mu-1.12.6.tar.xz 719392 BLAKE2B 75afdfa95f6711fb94e40757c23dd404e888610d36c7d6cbf29727770dbe8fcd1a207b7eae7e1cd06dcab2f088eb38cf7d045a59efbfa3e700d85a0e5f95164b SHA512 c3ba7b4c90d2749364f8c414d2eadcc4e6021237416d92cefd4542688b2fdafb1215a7b75b22fcafa68d349a22b69556d707e2c1e2752941e469a9231bb64ced
DIST mu-1.12.9.tar.xz 734240 BLAKE2B e536e832872406d865565ec1ae3775042b4fc9d2f50e2581f3d247007b8aeb68507e59d08168cbd16870dc907314c522bedead73a99ca2d5e8a42b8a67898e7b SHA512 27cd28a44dc6c8146891337be2c478aa7bf9e1dc458c30f3895b7bbcbafabd6b290e01e3f8c5db97f09b6cd68aebb3a0a0d3e7d53e25b4cba30613e7b8123d19

View File

@@ -0,0 +1,100 @@
# Copyright 1999-2025 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+
# + cli11: BSD
# + fmt: MIT
# + 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-libs/glib:2
>=dev-libs/gmime-3.2:3.0
>=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
)
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
}