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.
50 lines
1.1 KiB
50 lines
1.1 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit flag-o-matic toolchain-funcs vcs-snapshot versionator
|
||
|
|
||
8 years ago
|
REF="55d1d1020d215730737554045537cf3a8877c46a"
|
||
8 years ago
|
|
||
|
DESCRIPTION="Selection-oriented code editor inspired by vim"
|
||
|
HOMEPAGE="https://github.com/mawww/kakoune"
|
||
|
SRC_URI="https://github.com/mawww/${PN}/tarball/${REF} -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="Unlicense"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
IUSE="debug static"
|
||
8 years ago
|
|
||
|
RDEPEND="
|
||
8 years ago
|
sys-libs/ncurses:0=[unicode]
|
||
8 years ago
|
dev-libs/boost:=
|
||
|
"
|
||
|
DEPEND="
|
||
|
app-text/asciidoc
|
||
|
virtual/pkgconfig
|
||
|
${RDEPEND}
|
||
|
"
|
||
|
|
||
8 years ago
|
PATCHES=( "${FILESDIR}/${PN}-0_pre20170523-makefile.patch" )
|
||
8 years ago
|
|
||
8 years ago
|
pkg_setup() {
|
||
8 years ago
|
if [[ ${MERGE_TYPE} != binary ]]; then
|
||
|
if tc-is-gcc && ! version_is_at_least 5.0 $(gcc-version); then
|
||
|
die "Clang or GCC >=5.0 is required to build this version"
|
||
|
fi
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
append-cppflags $($(tc-getPKG_CONFIG) --cflags ncursesw)
|
||
|
append-libs $($(tc-getPKG_CONFIG) --libs ncursesw)
|
||
8 years ago
|
tc-export CXX
|
||
8 years ago
|
export debug=$(usex debug)
|
||
8 years ago
|
export static=$(usex static)
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
emake -C src DESTDIR="${D}" PREFIX="${EPREFIX}/usr" docdir="${ED%/}/usr/share/doc/${PF}" install
|
||
8 years ago
|
}
|