summaryrefslogtreecommitdiff
path: root/dev-libs/ebtree/ebtree-6.0.8.ebuild
blob: 08b3d5298290da1344b953c0e9de04d359106285 (plain) (blame)
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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit toolchain-funcs multilib-minimal

DESCRIPTION="Elastic Binary Trees"
HOMEPAGE="http://1wt.eu/tools/ebtree"
SRC_URI="http://1wt.eu/tools/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0/1"
KEYWORDS="~amd64"
IUSE="examples"

src_prepare() {
	default

	multilib_copy_sources
}

multilib_src_compile() {
	emake \
		AR="$(tc-getAR)" \
		CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS}"
}

multilib_src_install() {
	dolib.a "lib${PN}.a"
}

multilib_src_install_all() {
	insinto "/usr/include/${PN}"
	doins *.h

	if use examples ; then
		dodoc -r examples
	fi
}