forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kakoune-0_pre20170523.ebuild
49 lines (39 loc) · 1.15 KB
/
kakoune-0_pre20170523.ebuild
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
47
48
49
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic toolchain-funcs vcs-snapshot versionator
REF="55d1d1020d215730737554045537cf3a8877c46a"
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"
IUSE="debug static"
RDEPEND="
sys-libs/ncurses:0=[unicode]
dev-libs/boost:=
"
DEPEND="
app-text/asciidoc
virtual/pkgconfig
${RDEPEND}
"
PATCHES=( "${FILESDIR}/${PN}-0_pre20170523-makefile.patch" )
pkg_setup() {
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)
tc-export CXX
export debug=$(usex debug)
export static=$(usex static)
}
src_install() {
emake -C src DESTDIR="${D}" PREFIX="${EPREFIX}/usr" docdir="${ED%/}/usr/share/doc/${PF}" install
}