View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/media-libs/cal3d/cal3d-0.11.0-r1.ebuild (-2 / +35 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/cal3d/cal3d-0.11.0-r1.ebuild,v 1.6 2008/04/27 21:36:45 tupone Exp $
# $Header: /var/cvsroot/gentoo-x86/media-libs/cal3d/cal3d-0.11.0-r1.ebuild,v 1.6 2008/04/27 21:36:45 tupone Exp $
inherit eutils
inherit eutils autotools
DESCRIPTION="Cal3D is a skeletal based character animation library"
DESCRIPTION="Cal3D is a skeletal based character animation library"
HOMEPAGE="http://home.gna.org/cal3d"
HOMEPAGE="http://home.gna.org/cal3d"
 Lines 11-24    Link Here 
LICENSE="LGPL-2.1"
LICENSE="LGPL-2.1"
SLOT="0"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc x86 ~x86-fbsd"
KEYWORDS="amd64 ~ia64 ppc x86 ~x86-fbsd"
IUSE="16bit-indices debug"
IUSE="16bit-indices debug doc"
DEPEND=""
DEPEND=""
RDEPEND="doc? ( app-doc/doxygen )"
src_unpack() {
src_unpack() {
	unpack ${A}
	unpack ${A}
	cd "${S}"
	cd "${S}"
	epatch "${FILESDIR}"/${P}-gcc43.patch
	epatch "${FILESDIR}"/${P}-gcc43.patch
	if use doc ; then
		sed s/db2html/docbook2html/ configure.in > configure.2
		mv configure.2 configure.in
		sed s/db2html/docbook2html/ docs/Makefile.am > docs/Makefile.2
		mv docs/Makefile.2 docs/Makefile.am
		eaclocal
		eautoheader
		_elibtoolize
		eautomake
		eautoconf
	fi
}
}
src_compile() {
src_compile() {
 Lines 27-34    Link Here 
		$(use_enable 16bit-indices) \
		$(use_enable 16bit-indices) \
		|| die
		|| die
	emake || die
	emake || die
	if use doc ; then
		cd docs
		emake doc-api || die
		emake doc-guide || die
		cd faq
		doxygen cal3dfaq.doxygen || die
	fi
}
}
src_install() {
src_install() {
	einstall || die
	einstall || die
	if use doc ; then
		mkdir -p ${D}/usr/share/doc/${P}/api
		for x in docs/api/html/* ; do
			install -m 644 -t ${D}/usr/share/doc/${P}/api ${x} || die
		done
		mkdir -p ${D}/usr/share/doc/${P}/guide
		for x in docs/*.html docs/*.gif ; do
			install -m 644 -t ${D}/usr/share/doc/${P}/guide ${x} || die
		done
		mkdir -p ${D}/usr/share/doc/${P}/faq
		for x in docs/faq/html/* ; do
			install -m 644 -t ${D}/usr/share/doc/${P}/faq ${x} || die
		done
	fi
}
}