1 |
commit: ba7b046343e74e8f444f7d8bdc9b255d690bc94d |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 31 12:34:00 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 12:36:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7b0463 |
7 |
|
8 |
app-emacs/vterm: Version bump to 0.0.1_pre20210618 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
app-emacs/vterm/Manifest | 1 + |
14 |
.../vterm-0.0.1_pre20210618-dont-compile.patch | 22 +++++++++++ |
15 |
app-emacs/vterm/vterm-0.0.1_pre20210618.ebuild | 45 ++++++++++++++++++++++ |
16 |
3 files changed, 68 insertions(+) |
17 |
|
18 |
diff --git a/app-emacs/vterm/Manifest b/app-emacs/vterm/Manifest |
19 |
index f04e9cddcdd..5294b04ce52 100644 |
20 |
--- a/app-emacs/vterm/Manifest |
21 |
+++ b/app-emacs/vterm/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST vterm-0.0.1_pre20200713.tar.gz 48160 BLAKE2B 96c45ddb139d19f3020d7a8eebc1ee31a7dc098f47c16cfffc7bf3327261a4366763744a8158d3c8a066ec94be4966a5ef78804db95c9025eee06fb8c9e4aa76 SHA512 17726ad0957daeab2a87b398bfa24dbe3c4c48dfba932138a71cd8c992bf20bd2925a7118a89247bbd674dbecd7fda8663c564a278168bb207034efb03e50cd0 |
24 |
+DIST vterm-0.0.1_pre20210618.tar.gz 58389 BLAKE2B 71221d470e01d647093e3a3af0c57b416ef23e81ff4d783d032613e19f1d467752fea0d242ea0f72092e3cdabbdb88ba15a840d9e4116cf5aa95d54a020efe0d SHA512 9e23eff1c9c5d2cc8e970bb4d9910b3e0258987d09b765ece188641ff5e2696e30d59a409f45253f243162b8e71c0ea301049ff37c93ffec1e1c25206ca9c5d2 |
25 |
|
26 |
diff --git a/app-emacs/vterm/files/vterm-0.0.1_pre20210618-dont-compile.patch b/app-emacs/vterm/files/vterm-0.0.1_pre20210618-dont-compile.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..512b9d94142 |
29 |
--- /dev/null |
30 |
+++ b/app-emacs/vterm/files/vterm-0.0.1_pre20210618-dont-compile.patch |
31 |
@@ -0,0 +1,22 @@ |
32 |
+Simply error out if the module is not found. Don't confuse the user |
33 |
+with messages about compiling the module, which won't work outside of |
34 |
+the package's source tree. |
35 |
+ |
36 |
+--- a/vterm.el |
37 |
++++ b/vterm.el |
38 |
+@@ -130,14 +130,7 @@ |
39 |
+ (message "Compilation of `emacs-libvterm' module succeeded") |
40 |
+ (error "Compilation of `emacs-libvterm' module failed!"))))) |
41 |
+ |
42 |
+-;; If the vterm-module is not compiled yet, compile it |
43 |
+-(unless (require 'vterm-module nil t) |
44 |
+- (if (or vterm-always-compile-module |
45 |
+- (y-or-n-p "Vterm needs `vterm-module' to work. Compile it now? ")) |
46 |
+- (progn |
47 |
+- (vterm-module-compile) |
48 |
+- (require 'vterm-module)) |
49 |
+- (error "Vterm will not work until `vterm-module' is compiled!"))) |
50 |
++(require 'vterm-module) |
51 |
+ |
52 |
+ ;;; Dependencies |
53 |
+ |
54 |
|
55 |
diff --git a/app-emacs/vterm/vterm-0.0.1_pre20210618.ebuild b/app-emacs/vterm/vterm-0.0.1_pre20210618.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..77ce01cdc80 |
58 |
--- /dev/null |
59 |
+++ b/app-emacs/vterm/vterm-0.0.1_pre20210618.ebuild |
60 |
@@ -0,0 +1,45 @@ |
61 |
+# Copyright 1999-2021 Gentoo Authors |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=7 |
65 |
+NEED_EMACS=26 |
66 |
+COMMIT="d9dfa624679afdd5db6ad25429ef86d3dd91401e" |
67 |
+ |
68 |
+inherit cmake elisp |
69 |
+ |
70 |
+MY_PN="emacs-libvterm" |
71 |
+DESCRIPTION="Fully-featured terminal emulator based on libvterm" |
72 |
+HOMEPAGE="https://github.com/akermu/emacs-libvterm" |
73 |
+SRC_URI="https://github.com/akermu/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="GPL-3+" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
78 |
+ |
79 |
+DEPEND="dev-libs/libvterm" |
80 |
+RDEPEND="${DEPEND} |
81 |
+ >=app-editors/emacs-26:*[dynamic-loading]" |
82 |
+ |
83 |
+S="${WORKDIR}/${MY_PN}-${COMMIT}" |
84 |
+PATCHES=("${FILESDIR}"/${PN}-0.0.1_pre20210618-dont-compile.patch) |
85 |
+SITEFILE="50${PN}-gentoo.el" |
86 |
+DOCS="README.md" |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ cmake_src_prepare |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local mycmakeargs=("-DUSE_SYSTEM_LIBVTERM=ON") |
94 |
+ cmake_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ cmake_src_compile |
99 |
+ elisp_src_compile |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ elisp_src_install |
104 |
+ elisp-modules-install ${PN} vterm-module.so |
105 |
+} |