1 |
commit: bac1d010ef219c506e4755676dd5f74dae166e9b |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 00:56:47 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 01:31:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bac1d010 |
7 |
|
8 |
app-emacs/dap-mode: new package; add version 0.7 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
app-emacs/dap-mode/Manifest | 1 + |
13 |
app-emacs/dap-mode/dap-mode-0.7.ebuild | 54 ++++++++++++++++++++++ |
14 |
app-emacs/dap-mode/files/50dap-mode-gentoo.el | 1 + |
15 |
.../files/dap-mode-dap-ui-images-root-dir.patch | 12 +++++ |
16 |
app-emacs/dap-mode/metadata.xml | 14 ++++++ |
17 |
5 files changed, 82 insertions(+) |
18 |
|
19 |
diff --git a/app-emacs/dap-mode/Manifest b/app-emacs/dap-mode/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..2ddf4ae9ac55 |
22 |
--- /dev/null |
23 |
+++ b/app-emacs/dap-mode/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST dap-mode-0.7.tar.gz 6147924 BLAKE2B 300a058134e58e5ae5f94fd62251c1c621478b3148e7453ef5acd062a2c6088f0036e3ac2588ce22138d39b77221396c3f310177914b08a2bbc177cfbc14efce SHA512 ba8d8e2b3e9b699b27226b13624b24a6f78ea884fe9e8e7667537e06285354bf996f7f5d621e2576ad34bbf02ede316bf001444b8b5c67fa604aa5dc5d9416ff |
26 |
|
27 |
diff --git a/app-emacs/dap-mode/dap-mode-0.7.ebuild b/app-emacs/dap-mode/dap-mode-0.7.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..38928cefa99b |
30 |
--- /dev/null |
31 |
+++ b/app-emacs/dap-mode/dap-mode-0.7.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+NEED_EMACS=26.1 |
39 |
+ |
40 |
+inherit elisp |
41 |
+ |
42 |
+DESCRIPTION="Debug Adapter Protocol mode" |
43 |
+HOMEPAGE="https://github.com/emacs-lsp/dap-mode/" |
44 |
+SRC_URI="https://github.com/emacs-lsp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3+" |
47 |
+KEYWORDS="~amd64" |
48 |
+SLOT="0" |
49 |
+IUSE="test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ app-emacs/bui |
54 |
+ app-emacs/dash |
55 |
+ app-emacs/f |
56 |
+ app-emacs/ht |
57 |
+ app-emacs/lsp-mode |
58 |
+ app-emacs/lsp-treemacs |
59 |
+ app-emacs/posframe |
60 |
+ app-emacs/s |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ ${RDEPEND} |
64 |
+ test? ( app-emacs/ert-runner ) |
65 |
+" |
66 |
+ |
67 |
+DOCS=( CHANGELOG.org README.org ) |
68 |
+PATCHES=( "${FILESDIR}"/${PN}-dap-ui-images-root-dir.patch ) |
69 |
+SITEFILE="50${PN}-gentoo.el" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ elisp_src_prepare |
73 |
+ |
74 |
+ sed "s|@SITEETC@|${SITEETC}/${PN}|" -i dap-ui.el || die |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ ert-runner -L . -L test --reporter ert+duration || die |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ elisp_src_install |
83 |
+ |
84 |
+ insinto ${SITEETC}/${PN} |
85 |
+ doins -r icons |
86 |
+} |
87 |
|
88 |
diff --git a/app-emacs/dap-mode/files/50dap-mode-gentoo.el b/app-emacs/dap-mode/files/50dap-mode-gentoo.el |
89 |
new file mode 100644 |
90 |
index 000000000000..431f7e90ae73 |
91 |
--- /dev/null |
92 |
+++ b/app-emacs/dap-mode/files/50dap-mode-gentoo.el |
93 |
@@ -0,0 +1 @@ |
94 |
+(add-to-list 'load-path "@SITELISP@") |
95 |
|
96 |
diff --git a/app-emacs/dap-mode/files/dap-mode-dap-ui-images-root-dir.patch b/app-emacs/dap-mode/files/dap-mode-dap-ui-images-root-dir.patch |
97 |
new file mode 100644 |
98 |
index 000000000000..53bbb2ad13b2 |
99 |
--- /dev/null |
100 |
+++ b/app-emacs/dap-mode/files/dap-mode-dap-ui-images-root-dir.patch |
101 |
@@ -0,0 +1,12 @@ |
102 |
+index ba02fee..56be79f 100644 |
103 |
+--- a/dap-ui.el |
104 |
++++ b/dap-ui.el |
105 |
+@@ -486,7 +486,7 @@ DEBUG-SESSION is the debug session triggering the event." |
106 |
+ |
107 |
+ |
108 |
+ ;; dap-ui posframe stuff |
109 |
+-(defvar dap-ui--control-images-root-dir (f-join (f-dirname (file-truename (or load-file-name buffer-file-name))) "icons/vscode")) |
110 |
++(defvar dap-ui--control-images-root-dir "@SITEETC@/icons/vscode") |
111 |
+ (defvar dap-ui--control-buffer " *dap-ui*") |
112 |
+ |
113 |
+ (defun dap-ui--create-command (image command hover-text) |
114 |
|
115 |
diff --git a/app-emacs/dap-mode/metadata.xml b/app-emacs/dap-mode/metadata.xml |
116 |
new file mode 100644 |
117 |
index 000000000000..c5f3eebffb11 |
118 |
--- /dev/null |
119 |
+++ b/app-emacs/dap-mode/metadata.xml |
120 |
@@ -0,0 +1,14 @@ |
121 |
+<?xml version="1.0" encoding="UTF-8"?> |
122 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
123 |
+ |
124 |
+<pkgmetadata> |
125 |
+ <maintainer type="project"> |
126 |
+ <email>gnu-emacs@g.o</email> |
127 |
+ <name>Gentoo GNU Emacs project</name> |
128 |
+ </maintainer> |
129 |
+ <upstream> |
130 |
+ <changelog>https://raw.githubusercontent.com/emacs-lsp/dap-mode/master/CHANGELOG.org</changelog> |
131 |
+ <bugs-to>https://github.com/emacs-lsp/dap-mode/issues/</bugs-to> |
132 |
+ <remote-id type="github">emacs-lsp/dap-mode</remote-id> |
133 |
+ </upstream> |
134 |
+</pkgmetadata> |