summaryrefslogtreecommitdiff
path: root/app-editors/kakoune/kakoune-9999.ebuild
blob: f448c1b5403d9c7ee5a6732227b3e696e24f07d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit flag-o-matic toolchain-funcs git-r3

DESCRIPTION="Selection-oriented code editor inspired by vim"
HOMEPAGE="https://github.com/mawww/kakoune"
EGIT_REPO_URI="https://github.com/mawww/kakoune.git"

LICENSE="Unlicense"
SLOT="0"
KEYWORDS=""
IUSE="debug"

RDEPEND="
	sys-libs/ncurses:*[unicode]
	dev-libs/boost
"
DEPEND="
	app-text/asciidoc
	virtual/pkgconfig
	${RDEPEND}
"

PATCHES=( "${FILESDIR}/${PN}-makefile.patch" )

src_configure() {
	append-cppflags $(pkg-config --cflags ncursesw)
	export CXX=$(tc-getCXX)
	export debug=$(usex debug)
}

src_compile() {
	emake -C src
}

src_test() {
	emake -C src test
}

src_install() {
	emake -C src DESTDIR="${D}" PREFIX="/usr" install
}