# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Man pages for OpenGL" HOMEPAGE="http://www.opengl.org/documentation/specs/" SRC_URI="ftp://ftp.sgi.com/opengl/doc/mangl.tar.Z \ ftp://ftp.sgi.com/opengl/doc/manglu.tar.Z \ ftp://ftp.sgi.com/opengl/doc/manglx.tar.Z" S="${WORKDIR}/release/xc/doc/man/GL" LICENSE="as-is" SLOT="0" KEYWORDS="~ppc" IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} for x in ${S}/*; do cd ${x} # Use gcc preprocessor to simulate imake gcc -E -D"AllTarget(target)=all: target @@" \ -D"InstallMultipleMan(pages,dir)=install.man: pages @@\ install -d dir @@\ install pages dir @@" \ -D"LinkFile(target,name)=target: name @@\ ln -s name target @@" \ - < Imakefile | sed -e 's/@@/\n/g' | sed -e 's/^ /\t/' > Makefile done } src_compile() { for x in ${S}/*; do make LIBMANDIR="/usr/share/man/man3" -C ${x} done } src_install() { for x in ${S}/*; do make LIBMANDIR="${D}/usr/share/man/man3" -C ${x} install done dohtml -r ${WORKDIR}/release/xc/doc/hardcopy/GL/html/* }