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