Line 0
Link Here
|
0 |
- |
1 |
# Copyright 2020-2021 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit toolchain-funcs |
7 |
|
8 |
DESCRIPTION="Modal editor inspired by vim" |
9 |
HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune" |
10 |
SRC_URI="https://github.com/mawww/kakoune/archive/refs/tags/v${PV}.tar.gz" |
11 |
|
12 |
LICENSE="Unlicense" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
15 |
|
16 |
DEPEND="sys-libs/ncurses:=[unicode(+)]" |
17 |
RDEPEND="${DEPEND}" |
18 |
BDEPEND="virtual/pkgconfig" |
19 |
|
20 |
PATCHES=( |
21 |
"${FILESDIR}"/${PN}-2020.01.16-enable-ebuild-syntax-highlight.patch |
22 |
"${FILESDIR}"/${PN}-2020.01.16-gcc-11.patch |
23 |
) |
24 |
|
25 |
src_prepare() { |
26 |
sed -i '/CXXFLAGS += -O3/d' src/Makefile || die |
27 |
default |
28 |
} |
29 |
|
30 |
src_configure() { |
31 |
tc-export CXX |
32 |
} |
33 |
|
34 |
src_compile() { |
35 |
emake -C src all |
36 |
} |
37 |
|
38 |
src_test() { |
39 |
emake -C src test |
40 |
} |
41 |
|
42 |
src_install() { |
43 |
emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install |
44 |
|
45 |
rm "${ED}/usr/share/man/man1/kak.1.gz" || die |
46 |
doman doc/kak.1 |
47 |
} |