gentoo/app-editors/kakoune/kakoune-2024.05.18.ebuild
Christopher Bayliss 13368eee2b
app-editors/kakoune: don't call c++ directly
Closes: https://bugs.gentoo.org/936540
Signed-off-by: Christopher Bayliss <cjbdev@icloud.com>
Closes: https://github.com/gentoo/gentoo/pull/37695
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2024-07-24 09:27:36 +03:00

42 lines
803 B
Bash

# Copyright 2020-2024 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="https://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"
src_prepare() {
sed -i '/CXXFLAGS-debug-no = -O3 -g3/d' Makefile || die
sed -i '/CXX = c++/d' Makefile || die
default
}
src_configure() {
tc-export CXX
}
src_compile() {
emake all
}
src_test() {
emake 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
}