mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-15 22:50:54 +00:00
Closes: https://bugs.gentoo.org/895264 Signed-off-by: Ian Hixson <mujo@sdf.org> Closes: https://github.com/gentoo/gentoo/pull/29867 Signed-off-by: Sam James <sam@gentoo.org>
44 lines
814 B
Bash
44 lines
814 B
Bash
# Copyright 2020-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Modal editor inspired by vim"
|
|
HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune"
|
|
SRC_URI="https://github.com/mawww/kakoune/releases/download/v${PV}/${P}.tar.bz2"
|
|
|
|
LICENSE="Unlicense"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
|
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-gcc13.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
sed -i '/CXXFLAGS += -O3/d' src/Makefile || die
|
|
default
|
|
}
|
|
|
|
src_configure() {
|
|
tc-export CXX
|
|
}
|
|
|
|
src_compile() {
|
|
emake -C src all
|
|
}
|
|
|
|
src_test() {
|
|
emake -C src test
|
|
}
|
|
|
|
src_install() {
|
|
emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install
|
|
|
|
rm "${ED}/usr/share/man/man1/kak.1.gz" || die
|
|
doman doc/kak.1
|
|
}
|