summaryrefslogtreecommitdiff
path: root/dev-util/cquery/cquery-20180718.ebuild
blob: 8d533358c6fcad3560834b00997a0602a0e2fd28 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit cmake-utils llvm git-r3

DESCRIPTION="C/C++ language server"
HOMEPAGE="https://github.com/cquery-project/cquery"
# Tar does not contain 3rdparty files so we have to use git instead
EGIT_REPO_URI="https://github.com/cquery-project/cquery.git"
EGIT_COMMIT="v${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	sys-devel/llvm:=
	sys-devel/clang
	>=dev-util/cmake-3.1"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DSYSTEM_CLANG=ON
		-DCMAKE_PREFIX_PATH="$(get_llvm_prefix)"
	)
	cmake-utils_src_configure
}