mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-29 16:37:30 -07:00
Also unhardcode g++ to allow building/testing with different compilers. Closes: https://bugs.gentoo.org/964308 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/45767 Closes: https://github.com/gentoo/gentoo/pull/45767 Signed-off-by: Sam James <sam@gentoo.org>
47 lines
870 B
Bash
47 lines
870 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
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"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/3.18-add-missing-insert.patch
|
|
"${FILESDIR}"/3.18-const.patch
|
|
"${FILESDIR}"/3.18-cxx.patch
|
|
"${FILESDIR}"/3.18-fix-move-out.patch
|
|
)
|
|
|
|
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
|
|
}
|