1 |
commit: 1ae3e0e2c187a73cf53eb7e1d329ab8322abca00 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 09:17:19 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 09:17:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae3e0e2 |
7 |
|
8 |
app-emacs/markdown-mode: Version bump to 2.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/763042 |
11 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
12 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
13 |
|
14 |
app-emacs/markdown-mode/Manifest | 1 + |
15 |
.../files/markdown-mode-2.4-markdown-command.patch | 14 +++++++++++ |
16 |
app-emacs/markdown-mode/markdown-mode-2.4.ebuild | 28 ++++++++++++++++++++++ |
17 |
3 files changed, 43 insertions(+) |
18 |
|
19 |
diff --git a/app-emacs/markdown-mode/Manifest b/app-emacs/markdown-mode/Manifest |
20 |
index 4cfeb84fe30..bb12eeefa18 100644 |
21 |
--- a/app-emacs/markdown-mode/Manifest |
22 |
+++ b/app-emacs/markdown-mode/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST markdown-mode-2.3.el 387130 BLAKE2B acb583126a6f952835537f9e386df5f9a8fda5e49a14520e153c0cc99fc58cca596607b282f9f7070b001fe8165d50adb9abb81de1b03ae102cf2061de587810 SHA512 0820c5ae585e0f5ee8fef9eca40f2de2ad632a2559ea7f447cd19ded592de38bf2f3df8491796c15eb06723fe2af904335535af145356c7a7f9f855612263aaf |
25 |
+DIST markdown-mode-2.4.tar.gz 211229 BLAKE2B 49a369d1b418634449cdac3103e1b107b5dd839edba6a3329539b80cf21bfb0f01aa436ec6deb256bfb5f03ef73b716943730adc4a87b52262dfccbd7923556e SHA512 8bf2acd7f402c036c57521340d26cea150935964f04f1343c2e17147d63226c815150be62c0b79a2ba48e55b3155d94f38caf1ec43c21d4f32dee6e73cc261a0 |
26 |
|
27 |
diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch b/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..1ae481d6c09 |
30 |
--- /dev/null |
31 |
+++ b/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch |
32 |
@@ -0,0 +1,14 @@ |
33 |
+dev-python/markdown2 and dev-python/markdown install their commands |
34 |
+as markdown2 and markdown_py, respectively. |
35 |
+ |
36 |
+--- markdown-mode-2.4-orig/markdown-mode.el |
37 |
++++ markdown-mode-2.4/markdown-mode.el |
38 |
+@@ -90,7 +90,7 @@ |
39 |
+ :group 'text |
40 |
+ :link '(url-link "https://jblevins.org/projects/markdown-mode/")) |
41 |
+ |
42 |
+-(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc") |
43 |
++(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown2" "markdown_py") |
44 |
+ when (executable-find cmd) |
45 |
+ return (file-name-nondirectory it)))) |
46 |
+ (or command "markdown")) |
47 |
|
48 |
diff --git a/app-emacs/markdown-mode/markdown-mode-2.4.ebuild b/app-emacs/markdown-mode/markdown-mode-2.4.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..79c7e94ef8f |
51 |
--- /dev/null |
52 |
+++ b/app-emacs/markdown-mode/markdown-mode-2.4.ebuild |
53 |
@@ -0,0 +1,28 @@ |
54 |
+# Copyright 1999-2021 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+NEED_EMACS=25.1 |
59 |
+ |
60 |
+inherit elisp |
61 |
+ |
62 |
+DESCRIPTION="Major mode for editing Markdown-formatted text files" |
63 |
+HOMEPAGE="https://jblevins.org/projects/markdown-mode/" |
64 |
+SRC_URI="https://github.com/jrblevin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="GPL-3+" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
69 |
+IUSE="test" |
70 |
+RESTRICT="!test? ( test )" |
71 |
+ |
72 |
+RDEPEND="|| ( |
73 |
+ app-text/pandoc |
74 |
+ dev-python/markdown2 |
75 |
+ dev-python/markdown |
76 |
+ )" |
77 |
+BDEPEND="test? ( app-text/pandoc )" |
78 |
+ |
79 |
+PATCHES=( "${FILESDIR}"/${PN}-2.4-markdown-command.patch ) |
80 |
+SITEFILE="50${PN}-gentoo.el" |
81 |
+DOCS="CHANGES.md CONTRIBUTING.md README.md" |