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: Mon, 25 May 2020 13:08:06
Message-Id: 1590412018.d4d2574f88857ef7e7e82d61fecdc9365d9aa4ce.juippis@gentoo
1 commit: d4d2574f88857ef7e7e82d61fecdc9365d9aa4ce
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 25 13:06:58 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon May 25 13:06:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4d2574f
7
8 app-editors/kakoune: bump to 2020-01-16 release
9
10 Closes: https://bugs.gentoo.org/674642
11 Closes: https://bugs.gentoo.org/722038
12 Closes: https://bugs.gentoo.org/723514
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-editors/kakoune/Manifest | 1 +
16 ...2020.01.16-enable-ebuild-syntax-highlight.patch | 15 +++++++++
17 app-editors/kakoune/kakoune-2020.01.16.ebuild | 39 ++++++++++++++++++++++
18 3 files changed, 55 insertions(+)
19
20 diff --git a/app-editors/kakoune/Manifest b/app-editors/kakoune/Manifest
21 index 22738c776b9..aa2eb431cdd 100644
22 --- a/app-editors/kakoune/Manifest
23 +++ b/app-editors/kakoune/Manifest
24 @@ -1 +1,2 @@
25 DIST kakoune-0_pre20171120.tar.gz 460659 BLAKE2B 443583e5d766b227f678f9adec76f06a0dfe6a29e2d6f38896b20a911e08e933e1e631d1018e1510a49fbb71b4b0258029fd33ece8c478bd228ef67b6fae939a SHA512 0208fd932dcf6cef3fac3338dfc15f0ba36ed4e3fa282cc5ffac5ad823f91b553a8c34747ff33ec4382257a1eb71f21181b63595031f9f237cba3bc8eeda3626
26 +DIST kakoune-2020.01.16.tar.gz 579837 BLAKE2B 46abfd7f2bf2db6f9755a5b4f547e63e72ac7eef46ad0903dac08d0f422774632ac5aa3dc1e6c69aa6f0527bdff0ea1792574933ceb35b2495927f747be94aaf SHA512 81a0fb522fd7f289ede36f966e815d03550df389b05d27fa430474dd55a90cc0e1c5231e660328040f3bd79d155d37b7b135b52b93cee536c15d13fc9d06baa0
27
28 diff --git a/app-editors/kakoune/files/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch b/app-editors/kakoune/files/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch
29 new file mode 100644
30 index 00000000000..726968e0e8c
31 --- /dev/null
32 +++ b/app-editors/kakoune/files/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch
33 @@ -0,0 +1,15 @@
34 +diff -Naur a/rc/filetype/sh.kak b/rc/filetype/sh.kak
35 +--- a/rc/filetype/sh.kak 2020-01-16 11:52:20.000000000 +0200
36 ++++ b/rc/filetype/sh.kak 2020-05-25 15:50:20.417809942 +0300
37 +@@ -2,6 +2,11 @@
38 + set-option buffer filetype sh
39 + }
40 +
41 ++hook global BufCreate .*\.ebuild %{
42 ++ set-option buffer filetype sh
43 ++}
44 ++
45 ++
46 + hook global WinSetOption filetype=sh %{
47 + require-module sh
48 + set-option window static_words %opt{sh_static_words}
49
50 diff --git a/app-editors/kakoune/kakoune-2020.01.16.ebuild b/app-editors/kakoune/kakoune-2020.01.16.ebuild
51 new file mode 100644
52 index 00000000000..476bbd2e937
53 --- /dev/null
54 +++ b/app-editors/kakoune/kakoune-2020.01.16.ebuild
55 @@ -0,0 +1,39 @@
56 +# Copyright 2020 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=7
60 +
61 +DESCRIPTION="Modal editor inspired by vim"
62 +HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune"
63 +SRC_URI="https://github.com/mawww/kakoune/archive/v${PV}.tar.gz -> ${P}.tar.gz"
64 +
65 +LICENSE="Unlicense"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="static-libs"
69 +
70 +DEPEND="sys-libs/ncurses:0=[unicode]"
71 +RDEPEND="${DEPEND}"
72 +BDEPEND="virtual/pkgconfig"
73 +
74 +PATCHES=( "${FILESDIR}"/kakoune-2020.01.16-enable-ebuild-syntax-highlight.patch )
75 +
76 +src_configure() { :; }
77 +
78 +src_compile() {
79 + cd src/ || die
80 +
81 + emake static=$(usex static-libs yes no) all
82 +}
83 +
84 +src_test() {
85 + cd src/ || die
86 + emake test
87 +}
88 +
89 +src_install() {
90 + emake PREFIX="${D}"/usr docdir="${D}/usr/share/doc/${PF}" install
91 +
92 + rm "${D}/usr/share/man/man1/kak.1.gz" || die
93 + doman doc/kak.1
94 +}