summaryrefslogtreecommitdiff
path: root/dev-cpp/tree/tree-3.18.ebuild
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-03-22 09:46:52 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-03-22 09:49:34 +0200
commitee38a89974d3fe632d140e749b5f164a1f0a786a (patch)
tree3640b01a550ba85cecb442d90a6327b41afa907e /dev-cpp/tree/tree-3.18.ebuild
parentbe546c0ee955b32525667250608f41deaac95b4a (diff)
downloadgentoo-ee38a89974d3fe632d140e749b5f164a1f0a786a.tar.gz
gentoo-ee38a89974d3fe632d140e749b5f164a1f0a786a.tar.bz2
gentoo-ee38a89974d3fe632d140e749b5f164a1f0a786a.zip
dev-cpp/tree: add 3.18
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-cpp/tree/tree-3.18.ebuild')
-rw-r--r--dev-cpp/tree/tree-3.18.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-cpp/tree/tree-3.18.ebuild b/dev-cpp/tree/tree-3.18.ebuild
new file mode 100644
index 000000000000..33b480f4a325
--- /dev/null
+++ b/dev-cpp/tree/tree-3.18.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 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 ~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
+}