1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils fixheadtails toolchain-funcs multilib
8 MY_PV="v1.2dev2-osg0.9.5"
10 DESCRIPTION="a minimal & complete Object-Oriented thread interface for C++"
11 HOMEPAGE="http://openthreads.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${MY_PV}.tar.gz"
19 DEPEND="app-arch/unzip
20 doc? ( app-doc/doxygen )"
28 epatch "${FILESDIR}"/${P}-build.patch
34 emake CXX=$(tc-getCXX) || die "emake failed"
43 emake INST_LOCATION="${D}"/usr install || die "emake install failed"
45 dosym /usr/$(get_libdir)/lib${MY_PN}.so{.${PV},}
46 dosym /usr/$(get_libdir)/lib${MY_PN}.so.{${PV},${PV%%.*}}
48 dodoc AUTHORS.txt ChangeLog README.txt TODO.txt
50 use doc && dohtml docs/html/*
52 if use examples ; then
53 insinto /usr/share/doc/${PF}/examples
54 doins -r examples_src/*