diff options
Diffstat (limited to 'dev-cpp/tree/tree-2.65-r1.ebuild')
-rw-r--r-- | dev-cpp/tree/tree-2.65-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
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..f284c4d7cddf --- /dev/null +++ b/dev-cpp/tree/tree-2.65-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |