You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
955 B
48 lines
955 B
3 years ago
|
# Copyright 2020-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
4 years ago
|
|
||
3 years ago
|
inherit toolchain-funcs
|
||
4 years ago
|
|
||
4 years ago
|
DESCRIPTION="Modal editor inspired by vim"
|
||
|
HOMEPAGE="http://kakoune.org/ https://github.com/mawww/kakoune"
|
||
3 years ago
|
SRC_URI="https://github.com/mawww/kakoune/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
4 years ago
|
|
||
|
LICENSE="Unlicense"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||
4 years ago
|
|
||
3 years ago
|
DEPEND="sys-libs/ncurses:=[unicode(+)]"
|
||
4 years ago
|
RDEPEND="${DEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
3 years ago
|
PATCHES=(
|
||
3 years ago
|
"${FILESDIR}"/${PN}-2020.09.01-enable-ebuild-syntax-highlight.patch
|
||
|
"${FILESDIR}"/${PN}-2020.09.01-gcc-11.patch
|
||
3 years ago
|
)
|
||
4 years ago
|
|
||
3 years ago
|
src_prepare() {
|
||
|
sed -i '/CXXFLAGS += -O3/d' src/Makefile || die
|
||
|
default
|
||
|
}
|
||
4 years ago
|
|
||
3 years ago
|
src_configure() {
|
||
|
tc-export CXX
|
||
|
}
|
||
4 years ago
|
|
||
|
src_compile() {
|
||
3 years ago
|
emake -C src all
|
||
4 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
3 years ago
|
emake -C src test
|
||
4 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install
|
||
4 years ago
|
|
||
3 years ago
|
rm "${ED}/usr/share/man/man1/kak.1.gz" || die
|
||
4 years ago
|
doman doc/kak.1
|
||
|
}
|