# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: k3d-0.2.5.4.ebuild $ inherit python eutils IUSE="truetype doc python ruby" DESCRIPTION="K-3D is a free 3D modeling, animation, and rendering system." HOMEPAGE="http://k3d.sourceforge.net" SRC_URI="mirror://sourceforge/k3d/${P}.tbz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ~sparc" DEPEND="virtual/x11 virtual/opengl virtual/glu >=dev-libs/glib-2.2.1 =x11-libs/gtk+-1.2* =dev-libs/libsigc++-1.0* >=media-libs/netpbm-10 media-libs/plib truetype? ( >=media-libs/freetype-2 ) doc? ( app-text/xmlto ) python? ( >=dev-lang/python-2.2 ) ruby? ( virtual/ruby )" src_unpack() { unpack ${A} cd ${S} # fix python compilation dpython_version sed -i -e "s:python2.2:python${PYVER}:g" configure } src_compile() { local myconf="--with-plib --without-graphviz" use truetype \ && myconf="${myconf} --with-freetype" \ || myconf="${myconf} --without-freetype" use doc \ && myconf="${myconf} --with-docbook" \ || myconf="${myconf} --without-docbook" use python \ && myconf="${myconf} --with-python" \ || myconf="${myconf} --without-python" use ruby \ && myconf="${myconf} --with-ruby=`ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]'`" \ || myconf="${myconf} --without-ruby" econf ${myconf} || die emake "CXXFLAGS=${CXXFLAGS}" || die } src_install() { einstall || die dodoc AUTHORS INSTALL NEWS README TODO }