# 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 }