summaryrefslogtreecommitdiff
path: root/dev-cpp/tree
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-cpp/tree
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-cpp/tree')
-rw-r--r--dev-cpp/tree/Manifest9
-rw-r--r--dev-cpp/tree/files/tree-2.62-test.patch17
-rw-r--r--dev-cpp/tree/files/tree-2.65-gcc46.patch15
-rw-r--r--dev-cpp/tree/metadata.xml15
-rw-r--r--dev-cpp/tree/tree-2.65-r1.ebuild41
-rw-r--r--dev-cpp/tree/tree-2.81.ebuild41
6 files changed, 138 insertions, 0 deletions
diff --git a/dev-cpp/tree/Manifest b/dev-cpp/tree/Manifest
new file mode 100644
index 000000000000..58262a8ab89f
--- /dev/null
+++ b/dev-cpp/tree/Manifest
@@ -0,0 +1,9 @@
+AUX tree-2.62-test.patch 289 SHA256 0812ec2db0b82531c4ae15e4b3a597011d7e8559494b3a9561cd774a9438af6c SHA512 7b63e0e60db5c636a13fe4cf8f8043fa4029a04b21eeb4cac08fcce4f433e0e6096927fffb7f345c319b46ea6043a9388a7419e8fa6c783f58b449f9ab1061db WHIRLPOOL 38b2a3bfe36cc9f8750b2669e816593e893a26d1959781140e8f90044f4c17991db9d8478b4a90fe2ca9230020bdbd9f4d993751292220e394c0a41a5afe4376
+AUX tree-2.65-gcc46.patch 337 SHA256 7ed1d661eda2643ebb9b8f08dc88286fdbd474fa3042d6760c4e8c6cd2364cec SHA512 e649bca26c7926c627b02852cd70e9ed4b84fa187e3d4c16ac8acdb96f72e62cec1bed9831b73f81bfd165a9c8ec8af031c7027877ae2ebef11f30e5ad05d7ff WHIRLPOOL 5cb17c893e1cf4bbbcb912c67ea435d29a95d587651a176b9c4245a28719fd9ea1eb2c1761da0ec5c12f60dd06be8a6ce4e15011f3c0fdeb28ab69b917a39ab2
+DIST tree-2.65.tar.gz 197695 SHA256 0198a86a2f9a72cbf6a46f0d7f25957c4cc0a62d3861f7999600bac94a642ce9 SHA512 59e8a7052c36082d8dfe848c88fbbc68d2d88ad50426559b218de850bd8953fd7a5142d028785b5c080d4ac67e1c6ff517ad6342365d021b29d4bfa259b9a552 WHIRLPOOL 2b16116b14677df0f6b6206d2ad9ed2b86932c7427ed5d29147dd15ee4182af03258b56108099309396aa1433d44fc0131149f83d00edcabfd46968e48ba6ad6
+DIST tree-2.81.tar.gz 1167128 SHA256 f1098afa236683a7292cb634e35d5f3111a587a68a063c6c5cf9dffac4e42d2b SHA512 85e910fdb19ffd03ae79302a95ebffdb44725fd9f291a61d6912f743b54fe9b3d1c863e00c7e75d238f428946809e42c7ae6379b1051688fb06ee6c6d761d294 WHIRLPOOL 0779c196a8c4aaec02ea8cce570837d39042109f493c4a058929be860f6007d4f0aa94069ffcc8a8e5e100c8c63c97cd2f0e73551c904979b8876eff2b716b1e
+EBUILD tree-2.65-r1.ebuild 989 SHA256 4587c4a629b383cc62d028f8557f703efc0232a1e60852ee65549b4d49d2abbd SHA512 f9da9c9d1ce91415dddc1ad277ecef8c02f82301e5ab745876fb4632b0a0f35451ef317387e21bf41452bee90dea6d5b65f55ac8f896f2f61ff56f11b3fdb013 WHIRLPOOL ac25c0269421a7ea6018fceb6cc70b88ce2180996c5677cd147791ec1f27ddea2b906e3bd117f746347f81517f26371109aaaa0a2469804c5fffb341f3931b31
+EBUILD tree-2.81.ebuild 930 SHA256 c5afeb1805ddd1908e1ad288a01c7818aa0c7c169b906d236c986edda3a26981 SHA512 5c04375499ecbf2fbf635536949163824cae501a53618fd07855bb5cd257b32d3728a36c72516f0259d407a8d88966750025a8b59633fbc79a7fe318f99b520f WHIRLPOOL 0da5302d46676f1ee5578da86f6197c7b2043a6f12974c59ddf686311f9adee853d23b61408e10ff6e2751fca899f1dac7941fd4a3b0a8159ce6a8444e7ea9f0
+MISC ChangeLog 2980 SHA256 ab854f9ad52c775e405a3fcae4f7c6b8c54d05094f9e8be668d624d7b8fbff2f SHA512 4f2c9fb6453c9dbfc74487b95fc122739ac4f1fe543ea70c5f2b3110137cb5fc9a04cfb81bb91cdf2fa7342d7ede30b86e21d644819bc7a4f2be4daeec77dbc3 WHIRLPOOL 24b99438fd950c8ee6b2686b066b43aeabc594a96a547ce5f3c1e38436cde12af155c27b2763ee66364e2b8ad6ded4e84b3e255e6d924703dd56ff555b4fa26f
+MISC ChangeLog-2015 1861 SHA256 27c2a23eb21bc3bb41d7c50b2496cd02336fb4e0c2412a2d0351b159ae49920b SHA512 e23f937aeba63efc9b2981fecb9f3a5c3ea4942c6df33491411e9a75ba9d83532144833264cf79c5a7a059e007fc2c224db8eadd1ea0589088b938b1c3cd2ca6 WHIRLPOOL ed728babc9a708181215e710c5d031f5e55e547a5806bd92eb259bb695ed41fa23441d095c280783b93e0a2b33337feea1bdb085ab2d14c6c2d53f8cf0eb5b27
+MISC metadata.xml 618 SHA256 ffea700d3d70c3c6998fb20316a321f06bbc940725b4f52faa4a9dde46915c47 SHA512 64895ee65efc8d82e6981db7f9f80b795d093113026a46706bab141001f5c000fca68a9f9e8f072ef7b68544a51753fe7a9615ff1b9f81d66af41bebb5ae47f5 WHIRLPOOL d0592a7565ccafc6443f506a37b4754aa82ed90bf967b160c252db0abb8ab4e1f543caffc5ff3f7d4bada1162f2a66a172671a37e1be63298b4f81834531d414
diff --git a/dev-cpp/tree/files/tree-2.62-test.patch b/dev-cpp/tree/files/tree-2.62-test.patch
new file mode 100644
index 000000000000..f7022426698b
--- /dev/null
+++ b/dev-cpp/tree/files/tree-2.62-test.patch
@@ -0,0 +1,17 @@
+--- test_tree.output 2008-08-28 11:16:11.000000000 +0100
++++ test_tree.output.new 2009-04-15 19:06:53.174832287 +0100
+@@ -1,3 +1,8 @@
++-----
++hi
++ 1
++ 0
++-----
+ empty tree to begin with:
+ 0
+ 'more text' is sibling 2 in its sibling range
+@@ -309,3 +314,5 @@
+ D
+ I
+ -----
++G
++H
diff --git a/dev-cpp/tree/files/tree-2.65-gcc46.patch b/dev-cpp/tree/files/tree-2.65-gcc46.patch
new file mode 100644
index 000000000000..d75b516112ba
--- /dev/null
+++ b/dev-cpp/tree/files/tree-2.65-gcc46.patch
@@ -0,0 +1,15 @@
+ tree.hh | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tree.hh b/tree.hh
+index 1429da3..d780be3 100644
+--- a/tree.hh
++++ b/tree.hh
+@@ -71,6 +71,7 @@
+ #include <set>
+ #include <queue>
+ #include <algorithm>
++#include <cstddef>
+
+ // HP-style construct/destroy have gone from the standard,
+ // so here is a copy.
diff --git a/dev-cpp/tree/metadata.xml b/dev-cpp/tree/metadata.xml
new file mode 100644
index 000000000000..c99a88a76fcf
--- /dev/null
+++ b/dev-cpp/tree/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The tree.hh library for C++ provides an STL-like container class for
+ n-ary trees, templated over the data stored at the nodes. Various
+ types of iterators are provided (post-order, pre-order, and
+ others). Where possible the access methods are compatible with the
+ STL or alternative algorithms are available.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-cpp/tree/tree-2.65-r1.ebuild b/dev-cpp/tree/tree-2.65-r1.ebuild
new file mode 100644
index 000000000000..74cbb2bd2c22
--- /dev/null
+++ b/dev-cpp/tree/tree-2.65-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="An STL-like tree class"
+HOMEPAGE="http://www.aei.mpg.de/~peekas/tree/"
+SRC_URI="http://www.aei.mpg.de/~peekas/tree/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # test was buggy, reported upstream
+ epatch \
+ "${FILESDIR}"/${PN}-2.62-test.patch \
+ "${FILESDIR}"/${P}-gcc46.patch
+}
+
+src_test() {
+ $(tc-getCXX) ${CXXFLAGS} test_tree.cc -o test_tree \
+ || die "compile test failed"
+ ./test_tree > mytest.output || die "running test failed"
+ diff -Nu test_tree.output mytest.output || die "test dist failed"
+}
+
+src_install() {
+ insinto /usr/include
+ doins tree.hh tree_util.hh || die
+ insinto /usr/share/doc/${PF}
+ doins tree_example.cc || die
+ if use doc; then
+ doins tree.pdf || die
+ fi
+}
diff --git a/dev-cpp/tree/tree-2.81.ebuild b/dev-cpp/tree/tree-2.81.ebuild
new file mode 100644
index 000000000000..db3b12d49646
--- /dev/null
+++ b/dev-cpp/tree/tree-2.81.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="An STL-like tree class"
+HOMEPAGE="http://www.aei.mpg.de/~peekas/tree/"
+SRC_URI="http://www.aei.mpg.de/~peekas/tree/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc"
+
+S="${S}"/src
+
+src_prepare() {
+ rm Makefile || die
+ epatch "${FILESDIR}"/${PN}-2.62-test.patch
+}
+
+src_test() {
+ local test
+ test="$(tc-getCXX) ${CXXFLAGS} ${LDAFLAGS} test_tree.cc -o test_tree"
+
+ echo ${test}
+ eval ${test} || die "compile test failed"
+ ./test_tree > mytest.output || die "running test failed"
+ diff -Nu test_tree.output mytest.output || die "test dist failed"
+}
+
+src_install() {
+ insinto /usr/include
+ doins tree.hh tree_util.hh
+ dodoc tree_example.cc
+ if use doc; then
+ dohtml "${S}"/../doc/*
+ fi
+}