commit: 2ee3125bda25ea210f76cf2901b0e70479284b6b Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sun Mar 8 18:53:16 2026 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sun Mar 8 19:09:12 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee3125b
app-emacs/markdown-mode: bump to 2.8 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-emacs/markdown-mode/Manifest | 1 + .../files/markdown-mode-2.8-markdown-command.patch | 11 +++++ app-emacs/markdown-mode/markdown-mode-2.8.ebuild | 56 ++++++++++++++++++++++ 3 files changed, 68 insertions(+) diff --git a/app-emacs/markdown-mode/Manifest b/app-emacs/markdown-mode/Manifest index 33833aea8948..70769ed583cd 100644 --- a/app-emacs/markdown-mode/Manifest +++ b/app-emacs/markdown-mode/Manifest @@ -1 +1,2 @@ DIST markdown-mode-2.7.gh.tar.gz 229464 BLAKE2B df4894fcf65649b9e7cf671f36b9724f8d754530d6398812e1b547ea3c583a48826656c723d17ec651a561a85a45308105cae18fbec127c4b7710964202b994e SHA512 744174a81240e3c6a4d92a94928cce7070f63c86805639bbb8f1b0a29b33ca3d079ac5956c30d280db95228b73a4c6044b276e0376b407128054fd7fa997919f +DIST markdown-mode-2.8.gh.tar.gz 233970 BLAKE2B 5dc288bd4c7772f47acf6352c15100ce67195fda428459af4f31e5f56e208aecfe3622577de244b5509da64b0f035dca8c69e2dff9fb3a8cc8770a6114687924 SHA512 e0d99ddf8549c2119d9854825a0b28f11ff2efe720dfa17c5cae466fa3fda1ac82d653e358a1961f93cc9017c7122c906bc1e32be28960ab2d66d890d053766b diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.8-markdown-command.patch b/app-emacs/markdown-mode/files/markdown-mode-2.8-markdown-command.patch new file mode 100644 index 000000000000..fc1ddb76044a --- /dev/null +++ b/app-emacs/markdown-mode/files/markdown-mode-2.8-markdown-command.patch @@ -0,0 +1,11 @@ +--- a/markdown-mode.el ++++ b/markdown-mode.el +@@ -110,7 +110,7 @@ Any changes to the output buffer made by this hook will be saved.") + :group 'text + :link '(url-link "https://jblevins.org/projects/markdown-mode/")) + +-(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown_py" "cmark" "cmark-gfm") ++(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown2" "markdown_py" "cmark" "cmark-gfm") + when (executable-find cmd) + return (file-name-nondirectory it)))) + (or command "markdown")) diff --git a/app-emacs/markdown-mode/markdown-mode-2.8.ebuild b/app-emacs/markdown-mode/markdown-mode-2.8.ebuild new file mode 100644 index 000000000000..0bd7a2aac7c7 --- /dev/null +++ b/app-emacs/markdown-mode/markdown-mode-2.8.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp optfeature + +DESCRIPTION="Major mode for editing Markdown-formatted text files" +HOMEPAGE="https://jblevins.org/projects/markdown-mode/ + https://github.com/jrblevin/markdown-mode/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/jrblevin/${PN}" +else + SRC_URI="https://github.com/jrblevin/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + || ( + dev-python/markdown2 + dev-python/markdown + virtual/pandoc + ) +" +BDEPEND=" + test? ( + virtual/pandoc + || ( + app-text/aspell[l10n_en] + app-text/hunspell[l10n_en] + ) + ) +" + +PATCHES=( "${FILESDIR}/markdown-mode-2.8-markdown-command.patch" ) +DOCS=( CHANGES.md CONTRIBUTING.md README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + emake test SELECTOR="\"test-markdown-font-lock\"" +} + +pkg_postinst() { + elisp_pkg_postinst + optfeature "editing Markdown source code blocks" "app-emacs/edit-indirect" +}
