summaryrefslogtreecommitdiff
path: root/dev-cpp/tree/tree-3.17.ebuild
blob: 725e4cac0b5535cb4b9e76305c1b0515d9991e6d (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DOCS_BUILDER="doxygen"
DOCS_CONFIG_NAME="doxygen_tree.config"
DOCS_DIR="doc"

inherit docs toolchain-funcs

DESCRIPTION="An STL-like tree class"
HOMEPAGE="https://github.com/kpeeters/tree.hh"
SRC_URI="https://github.com/kpeeters/tree.hh/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}.hh-${PV}"

LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"

src_configure() {
	tc-export CXX
}

src_compile() {
	docs_compile
}

src_test() {
	cd src || die
	emake
	emake run_tests
}

src_install() {
	doheader src/tree.hh src/tree_util.hh
	dodoc -r examples
	einstalldocs
}