# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/soya/soya-0.10.ebuild,v 1.2 2006/04/26 18:23:47 fserb Exp $ inherit distutils MY_P=${P/soya/Soya} MY_PN=${PN/soya/Soya} DESCRIPTION="A high-level 3D engine for Python, designed with games in mind" HOMEPAGE="http://oomadness.tuxfamily.org/en/soya/" SRC_URI="http://download.gna.org/soya/${MY_P}.tar.bz2 doc? ( http://download.gna.org/soya/${MY_PN}Tutorial-${PV}.tar.bz2 http://download.gna.org/soya/${MY_PN}Tutorial-${PV}.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="doc ode openal" # Documented to need PIL (imaging) and pyrex # pyrex isn't actually needed for normal building of non-cvs. # Versions are based off soya 0.6 ebuild; they're mainly undocumented. DEPEND="virtual/opengl >=dev-lang/python-2.2.2 >=dev-python/imaging-1.1.4 >=media-fonts/freefonts-0.10 >=media-libs/cal3d-0.10 >=media-libs/glew-1.3.3 >=media-libs/freetype-2.1.5 >=media-libs/libsdl-1.2.4 >=media-libs/libpng-1.2.5 ode? ( >=dev-games/ode-0.5 )" RDEPEND="${DEPEND} >=dev-python/editobj-0.5.6 openal? ( >=dev-python/pyopenal-0.1.4 )" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} rm ${S}/pudding/test.py # This file shouldn't be installed } src_compile() { if ! use ode; then sed -i -e "s/^\(USE_ODE = \).*$/\1False/" setup.py || die "sed install.py failed" fi distutils_src_compile } src_install() { distutils_src_install if use doc; then cd ${WORKDIR}/${MY_PN}Tutorial-${PV} insinto /usr/share/${PN}/doc doins doc/* insinto /usr/share/${PN}/doc/blendertut doins doc/blendertut/* insinto /usr/share/${PN}/doc/pudding doins doc/pudding/* # install tutorials cd ${WORKDIR}/${MY_PN}Tutorial-${PV} insinto /usr/share/${PN}/tutorial doins tutorial/* insinto /usr/share/${PN}/tutorial/results doins tutorial/results/* insinto /usr/share/${PN}/tutorial/data/blender doins tutorial/data/blender/* insinto /usr/share/${PN}/tutorial/data/images doins tutorial/data/images/* insinto /usr/share/${PN}/tutorial/data/ms3d doins tutorial/data/ms3d/* insinto /usr/share/${PN}/tutorial/data/shapes doins tutorial/data/shapes/* insinto /usr/share/${PN}/tutorial/data/shapes/balazar doins tutorial/data/shapes/balazar/* insinto /usr/share/${PN}/tutorial/data/sounds doins tutorial/data/sounds/* insinto /usr/share/${PN}/tutorial/data/svg doins tutorial/data/svg/* insopts -m 0666 insinto /usr/share/${PN}/tutorial/data/worlds doins tutorial/data/worlds/* insinto /usr/share/${PN}/tutorial/data/materials doins tutorial/data/materials/* fi }