1 |
commit: 7ccf31f2495eef82d25225a2bfa7fd25a6e8dce1 |
2 |
Author: Ian Hixson <mujo <AT> sdf <DOT> org> |
3 |
AuthorDate: Sat Aug 7 01:37:53 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 23 05:41:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccf31f2 |
7 |
|
8 |
app-editors/kakoune: Bump to 2020.09.01 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/804912 |
11 |
Signed-off-by: Ian Hixson <mujo <AT> sdf.org> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-editors/kakoune/Manifest | 1 + |
15 |
...2020.09.01-enable-ebuild-syntax-highlight.patch | 10 +++++ |
16 |
.../kakoune/files/kakoune-2020.09.01-gcc-11.patch | 11 +++++ |
17 |
app-editors/kakoune/kakoune-2020.09.01.ebuild | 47 ++++++++++++++++++++++ |
18 |
4 files changed, 69 insertions(+) |
19 |
|
20 |
diff --git a/app-editors/kakoune/Manifest b/app-editors/kakoune/Manifest |
21 |
index a71f3b22cf1..d0b4c27c83d 100644 |
22 |
--- a/app-editors/kakoune/Manifest |
23 |
+++ b/app-editors/kakoune/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST kakoune-2020.01.16_p20200601.tar.gz 597946 BLAKE2B c3d831132e29ea46c4c92a942eae1b9eeaa30c68e17e7178b00277f45fdf76784386801627125c653b50507ebebcad282512446c0cff94f7234013aa8a17efd1 SHA512 b137fa71a151e80da50bfd980a264d1d0aa98d48e585794eb1429196a6c81ef51277cc15d5db015ce8550c1cf0d6fa29f5cdeefd3930e90e2a0480dd7bbe5bf8 |
26 |
+DIST kakoune-2020.09.01.tar.gz 612970 BLAKE2B 64084c2a4ff1ccf348caad8db04df9425828378bda28d163ffa6d198b3bd80d6d078ac0095dfc5adbae505e4d4259cd86185718a8012740417056db531ea72ec SHA512 acd9edd6b2a68219a4b5f68aaf4d785aa8c430abfdf5ccc994764f5ece8acb655adf64334027525115d3cbe819591de8496c3e54e2d806ce40c494443789e126 |
27 |
|
28 |
diff --git a/app-editors/kakoune/files/kakoune-2020.09.01-enable-ebuild-syntax-highlight.patch b/app-editors/kakoune/files/kakoune-2020.09.01-enable-ebuild-syntax-highlight.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..d7b9083a428 |
31 |
--- /dev/null |
32 |
+++ b/app-editors/kakoune/files/kakoune-2020.09.01-enable-ebuild-syntax-highlight.patch |
33 |
@@ -0,0 +1,10 @@ |
34 |
+diff --git a/rc/filetype/gentoo-linux.kak b/rc/filetype/gentoo-linux.kak |
35 |
+new file mode 100644 |
36 |
+index 00000000..251dad16 |
37 |
+--- /dev/null |
38 |
++++ b/rc/filetype/gentoo-linux.kak |
39 |
+@@ -0,0 +1,4 @@ |
40 |
++# portage ebuild file |
41 |
++hook global BufCreate .*\.ebuild %{ |
42 |
++ set-option buffer filetype sh |
43 |
++} |
44 |
|
45 |
diff --git a/app-editors/kakoune/files/kakoune-2020.09.01-gcc-11.patch b/app-editors/kakoune/files/kakoune-2020.09.01-gcc-11.patch |
46 |
new file mode 100644 |
47 |
index 00000000000..d558c49347c |
48 |
--- /dev/null |
49 |
+++ b/app-editors/kakoune/files/kakoune-2020.09.01-gcc-11.patch |
50 |
@@ -0,0 +1,11 @@ |
51 |
+https://bugs.gentoo.org/787029 |
52 |
+--- a/src/regex_impl.cc |
53 |
++++ b/src/regex_impl.cc |
54 |
+@@ -12,6 +12,7 @@ |
55 |
+ |
56 |
+ #include <cstdio> |
57 |
+ #include <cstring> |
58 |
++#include <limits> |
59 |
+ |
60 |
+ namespace Kakoune |
61 |
+ { |
62 |
|
63 |
diff --git a/app-editors/kakoune/kakoune-2020.09.01.ebuild b/app-editors/kakoune/kakoune-2020.09.01.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000000..bf078a51afe |
66 |
--- /dev/null |
67 |
+++ b/app-editors/kakoune/kakoune-2020.09.01.ebuild |
68 |
@@ -0,0 +1,47 @@ |
69 |
+# Copyright 2020-2021 Gentoo Authors |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=8 |
73 |
+ |
74 |
+inherit toolchain-funcs |
75 |
+ |
76 |
+DESCRIPTION="Modal editor inspired by vim" |
77 |
+HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune" |
78 |
+SRC_URI="https://github.com/mawww/kakoune/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
79 |
+ |
80 |
+LICENSE="Unlicense" |
81 |
+SLOT="0" |
82 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
83 |
+ |
84 |
+DEPEND="sys-libs/ncurses:=[unicode(+)]" |
85 |
+RDEPEND="${DEPEND}" |
86 |
+BDEPEND="virtual/pkgconfig" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}"/${PN}-2020.09.01-enable-ebuild-syntax-highlight.patch |
90 |
+ "${FILESDIR}"/${PN}-2020.09.01-gcc-11.patch |
91 |
+) |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ sed -i '/CXXFLAGS += -O3/d' src/Makefile || die |
95 |
+ default |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ tc-export CXX |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ emake -C src all |
104 |
+} |
105 |
+ |
106 |
+src_test() { |
107 |
+ emake -C src test |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install |
112 |
+ |
113 |
+ rm "${ED}/usr/share/man/man1/kak.1.gz" || die |
114 |
+ doman doc/kak.1 |
115 |
+} |