You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.5 KiB
63 lines
1.5 KiB
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/soya/soya-0.14.ebuild,v 1.11 2013/02/14 22:12:59 ago Exp $
|
|
|
|
EAPI="3"
|
|
PYTHON_DEPEND="2"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
|
|
|
inherit distutils eutils
|
|
|
|
MY_PV="${PV/_}"
|
|
MY_P="Soya-${MY_PV}"
|
|
TUT_P="SoyaTutorial-${MY_PV}"
|
|
|
|
DESCRIPTION="A high-level 3D engine for Python, designed with games in mind"
|
|
HOMEPAGE="http://oomadness.nekeme.net/Soya/FrontPage"
|
|
SRC_URI="http://download.gna.org/soya/${MY_P}.tar.bz2
|
|
doc? ( http://download.gna.org/soya/${TUT_P}.tar.bz2 )
|
|
examples? ( http://download.gna.org/soya/${TUT_P}.tar.bz2 )"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ppc x86"
|
|
IUSE="doc examples"
|
|
|
|
DEPEND="=dev-games/ode-0.11.1
|
|
dev-python/editobj
|
|
>=dev-python/imaging-1.1.5
|
|
>=dev-python/pyopenal-0.1.6
|
|
media-fonts/freefonts
|
|
>=media-libs/cal3d-0.10
|
|
media-libs/freeglut
|
|
>=media-libs/freetype-2.1.5
|
|
>=media-libs/glew-1.3.3
|
|
>=media-libs/libsdl-1.2.8[opengl]
|
|
media-libs/openal
|
|
virtual/opengl"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
|
|
|
src_prepare() {
|
|
distutils_src_prepare
|
|
epatch "${FILESDIR}/${P}-glu.patch"
|
|
}
|
|
|
|
src_install() {
|
|
distutils_src_install
|
|
|
|
insinto /usr/share/${PF}
|
|
if use doc; then
|
|
cd "${WORKDIR}/${TUT_P}/doc"
|
|
doins soya_guide.pdf pudding/pudding.pdf || die "doins failed"
|
|
fi
|
|
if use examples; then
|
|
cd "${WORKDIR}/${TUT_P}"
|
|
doins -r tutorial || die "doins failed"
|
|
fi
|
|
}
|