commit:     a87eee1bf0e4a9bf25a191825ce25d4655da34c3
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun May 21 14:53:23 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun May 21 14:56:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87eee1b

app-emacs/markdown-mode: edit-indirect optfeature; format

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../markdown-mode/markdown-mode-2.5-r1.ebuild      | 33 ++++++++++++++++------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/app-emacs/markdown-mode/markdown-mode-2.5-r1.ebuild 
b/app-emacs/markdown-mode/markdown-mode-2.5-r1.ebuild
index 82e1e0ff7742..e11c0d58dab2 100644
--- a/app-emacs/markdown-mode/markdown-mode-2.5-r1.ebuild
+++ b/app-emacs/markdown-mode/markdown-mode-2.5-r1.ebuild
@@ -3,11 +3,12 @@
 
 EAPI=8
 
-inherit elisp
+inherit elisp optfeature
 
 DESCRIPTION="Major mode for editing Markdown-formatted text files"
 HOMEPAGE="https://jblevins.org/projects/markdown-mode/";
-SRC_URI="https://github.com/jrblevin/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI="https://github.com/jrblevin/${PN}/archive/v${PV}.tar.gz
+       -> ${P}.tar.gz"
 
 LICENSE="GPL-3+"
 SLOT="0"
@@ -15,19 +16,33 @@ KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
-RDEPEND="|| (
+RDEPEND="
+       || (
                dev-python/markdown2
                dev-python/markdown
                virtual/pandoc
-       )"
-BDEPEND="test? (
-       virtual/pandoc
-       || ( app-text/aspell[l10n_en] app-text/hunspell[l10n_en] )
-)"
+       )
+"
+BDEPEND="
+       test? (
+               virtual/pandoc
+               || (
+                       app-text/aspell[l10n_en]
+                       app-text/hunspell[l10n_en]
+               )
+       )
+"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-2.5-markdown-command.patch
        "${FILESDIR}"/${PN}-2.5-test.patch
 )
+
+DOCS=( CHANGES.md CONTRIBUTING.md README.md )
 SITEFILE="50${PN}-gentoo.el"
-DOCS="CHANGES.md CONTRIBUTING.md README.md"
+
+pkg_postinst() {
+       elisp_pkg_postinst
+
+       optfeature "editing Markdown source code blocks" app-emacs/edit-indirect
+}

Reply via email to