summaryrefslogtreecommitdiff
path: root/dev-util/libtree/libtree-2.0.0.ebuild
blob: a9152d7fe064c847b3e778de08eb71577804b0e5 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="ldd as a tree with an option to bundle dependencies into a single folder"
HOMEPAGE="https://github.com/haampie/libtree"
SRC_URI="https://github.com/haampie/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="
	dev-libs/cxxopts
	dev-cpp/elfio
	dev-cpp/termcolor
	test? ( dev-cpp/gtest )
"

src_configure() {
	local mycmakeargs=(
		-DLIBTREE_BUILD_TESTS=$(usex test)
	)

	cmake_src_configure
}