Skip to content

Commit

Permalink
app-emacs/markdown-mode: Version bump to 2.4
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/763042
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Jan 2, 2021
1 parent e2a0410 commit 1ae3e0e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-emacs/markdown-mode/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST markdown-mode-2.3.el 387130 BLAKE2B acb583126a6f952835537f9e386df5f9a8fda5e49a14520e153c0cc99fc58cca596607b282f9f7070b001fe8165d50adb9abb81de1b03ae102cf2061de587810 SHA512 0820c5ae585e0f5ee8fef9eca40f2de2ad632a2559ea7f447cd19ded592de38bf2f3df8491796c15eb06723fe2af904335535af145356c7a7f9f855612263aaf
DIST markdown-mode-2.4.tar.gz 211229 BLAKE2B 49a369d1b418634449cdac3103e1b107b5dd839edba6a3329539b80cf21bfb0f01aa436ec6deb256bfb5f03ef73b716943730adc4a87b52262dfccbd7923556e SHA512 8bf2acd7f402c036c57521340d26cea150935964f04f1343c2e17147d63226c815150be62c0b79a2ba48e55b3155d94f38caf1ec43c21d4f32dee6e73cc261a0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dev-python/markdown2 and dev-python/markdown install their commands
as markdown2 and markdown_py, respectively.

--- markdown-mode-2.4-orig/markdown-mode.el
+++ markdown-mode-2.4/markdown-mode.el
@@ -90,7 +90,7 @@
:group 'text
:link '(url-link "https://jblevins.org/projects/markdown-mode/"))

-(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc")
+(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown2" "markdown_py")
when (executable-find cmd)
return (file-name-nondirectory it))))
(or command "markdown"))
28 changes: 28 additions & 0 deletions app-emacs/markdown-mode/markdown-mode-2.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
NEED_EMACS=25.1

inherit elisp

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"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="|| (
app-text/pandoc
dev-python/markdown2
dev-python/markdown
)"
BDEPEND="test? ( app-text/pandoc )"

PATCHES=( "${FILESDIR}"/${PN}-2.4-markdown-command.patch )
SITEFILE="50${PN}-gentoo.el"
DOCS="CHANGES.md CONTRIBUTING.md README.md"

0 comments on commit 1ae3e0e

Please sign in to comment.