Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/kakoune/, app-editors/kakoune/files/
Date: Fri, 03 Sep 2021 05:12:04
Message-Id: 1630645041.47eb2099bed4b561f99c668736717bf06d396472.juippis@gentoo
1 commit: 47eb2099bed4b561f99c668736717bf06d396472
2 Author: Ian Hixson <mujo <AT> sdf <DOT> org>
3 AuthorDate: Thu Sep 2 21:10:52 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 3 04:57:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47eb2099
7
8 app-editors/kakoune: Bump to 2021.08.28
9
10 Signed-off-by: Ian Hixson <mujo <AT> sdf.org>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 app-editors/kakoune/Manifest | 1 +
14 .../kakoune-2021.08.28-php-filetype-fix.patch | 13 ++++++
15 app-editors/kakoune/kakoune-2021.08.28.ebuild | 46 ++++++++++++++++++++++
16 3 files changed, 60 insertions(+)
17
18 diff --git a/app-editors/kakoune/Manifest b/app-editors/kakoune/Manifest
19 index fae8bafcada..e8101de9fa3 100644
20 --- a/app-editors/kakoune/Manifest
21 +++ b/app-editors/kakoune/Manifest
22 @@ -1 +1,2 @@
23 DIST kakoune-2020.09.01.tar.gz 612970 BLAKE2B 64084c2a4ff1ccf348caad8db04df9425828378bda28d163ffa6d198b3bd80d6d078ac0095dfc5adbae505e4d4259cd86185718a8012740417056db531ea72ec SHA512 acd9edd6b2a68219a4b5f68aaf4d785aa8c430abfdf5ccc994764f5ece8acb655adf64334027525115d3cbe819591de8496c3e54e2d806ce40c494443789e126
24 +DIST kakoune-2021.08.28.tar.gz 654429 BLAKE2B 8cf769d2dea74fd8bab8261e4d79276af089d73753052fdd3776bff0adc72bc20c43f840350076e675c633de2175ad83960fa2ccf85fc852c7c81bd4888ced2b SHA512 1f4f0648959e94e45eb00f2398aa6897595457ef3ee4d1c6e18d494f3e68f8d3a0c4d0dbed88b6588fda61137a060c648ff635972731c0f29faef4cdc03c829f
25
26 diff --git a/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch b/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch
27 new file mode 100644
28 index 00000000000..b4a7cc439f3
29 --- /dev/null
30 +++ b/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch
31 @@ -0,0 +1,13 @@
32 +diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak
33 +index be03de9e..97bdbfe3 100644
34 +--- a/rc/filetype/php.kak
35 ++++ b/rc/filetype/php.kak
36 +@@ -85,7 +85,7 @@ define-command -hidden php-indent-on-char %<
37 + define-command -hidden php-insert-on-new-line %<
38 + evaluate-commands -draft -itersel %<
39 + # copy // comments or docblock * prefix and following white spaces
40 +- try %{ execute-keys -draft s [^/] <ret> k <a-x> s ^\h*\K(?://|[*][^/])\h* <ret> y gh j P
41 ++ try %{ execute-keys -draft s [^/] <ret> k <a-x> s ^\h*\K(?://|[*][^/])\h* <ret> y gh j P }
42 + # append " * " on lines starting a multiline /** or /* comment
43 + try %{ execute-keys -draft k <a-x> s ^\h*/[*][* ]? <ret> j gi i <space>*<space> }
44 + >
45
46 diff --git a/app-editors/kakoune/kakoune-2021.08.28.ebuild b/app-editors/kakoune/kakoune-2021.08.28.ebuild
47 new file mode 100644
48 index 00000000000..9e9e650aa32
49 --- /dev/null
50 +++ b/app-editors/kakoune/kakoune-2021.08.28.ebuild
51 @@ -0,0 +1,46 @@
52 +# Copyright 2020-2021 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +inherit toolchain-funcs
58 +
59 +DESCRIPTION="Modal editor inspired by vim"
60 +HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune"
61 +SRC_URI="https://github.com/mawww/kakoune/archive/v${PV}.tar.gz -> ${P}.tar.gz"
62 +
63 +LICENSE="Unlicense"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
66 +
67 +DEPEND=""
68 +RDEPEND="${DEPEND}"
69 +BDEPEND="virtual/pkgconfig"
70 +
71 +PATCHES=(
72 + "${FILESDIR}"/${P}-php-filetype-fix.patch
73 +)
74 +
75 +src_prepare() {
76 + sed -i '/CXXFLAGS += -O3/d' src/Makefile || die
77 + default
78 +}
79 +
80 +src_configure() {
81 + tc-export CXX
82 +}
83 +
84 +src_compile() {
85 + emake -C src all
86 +}
87 +
88 +src_test() {
89 + emake -C src test
90 +}
91 +
92 +src_install() {
93 + emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install
94 +
95 + rm "${ED}/usr/share/man/man1/kak.1.gz" || die
96 + doman doc/kak.1
97 +}