summaryrefslogtreecommitdiff
path: root/dev-util/cquery/cquery-20180718.ebuild
blob: e243dafc5c2ef07af833eabe716b5aab8a52a437 (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
# 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:="
RDEPEND="${DEPEND}"
BDEPEND=">=dev-util/cmake-3.1"

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