# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PN="OpenThreads" OSG_PV="0.9.9" DESCRIPTION="Minimal & complete OO C++ threads library" SRC_URI="http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-${OSG_PV}.zip" HOMEPAGE="http://www.openscenegraph.org/" SLOT=0 LICENSE="LGPL-2.1" KEYWORDS="~x86" IUSE="doc" DEPEND="doc? ( app-doc/doxygen )" RDEPEND="" S=${WORKDIR}/OSG_OP_OT-${OSG_PV}/${MY_PN} src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/1.3-doxygen.patch || die "failed doxygen.patch" epatch ${FILESDIR}/1.3-head.patch || die "head.patch" } src_compile() { emake || die "emake failed" if use doc; then cd docs doxygen -u doxyfile doxygen doxyfile fi } src_install() { emake INST_LOCATION=${D}/usr install || die "emake install failed" if use doc; then dohtml docs/html/* insinto /usr/share/doc/${PF}/example doins example_src/* fi dodoc *.txt }