# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.48a-r3.ebuild,v 1.11 2009/04/29 12:22:20 ssuominen Exp $ EAPI=2 inherit multilib flag-o-matic eutils python DESCRIPTION="Tron-like multiplayer racing game with ponies." HOMEPAGE="http://code.google.com/p/pink-pony" SRC_URI="http://pink-pony.googlecode.com/files/${P}.tar.bz2" SLOT="0" LICENSE="|| ( GPL-3 CC-BY-SA-3 CC-BY-3 )" # "Pink Pony is super pre-alpha" -- README KEYWORDS="~amd64 ~x86" RDEPEND="media-libs/glfw media-libs/ilmbase media-libs/devil dev-libs/protobuf media-libs/audiere media-libs/ftgl " DEPEND="dev-util/scons ${RDEPEND}" src_unpack() { unpack ${A} S="${WORKDIR}/${PN}" # patch this stuff epatch "${FILESDIR}/${P}-gentoo.patch" } src_configure() { # pass compiler flags to the scons build system cat <<- EOF >> "${S}"/user-config.py CFLAGS += '${CFLAGS}' EOF } src_compile() { # rebuild mesh cd "${S}/lib" rm -f mesh.pb.cc mesh.pb.h protoc --cpp_out=. mesh.proto # scons uses -l differently -> remove it cd "${S}" scons ${MAKEOPTS/-l[0-9]} || die "oops, scons failed" } src_install() { exeinto /usr/games/bin/ cd "${S}" newexe Pony pink-pony dodoc README insinto /etc newins pony.options pink-pony.options dodir /usr/share/games/pink-pony insinto /usr/share/games/pink-pony doins -r levels.xml fonts GLSL levels models music textures }