# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 PYTHON_COMPAT=( python2_7 ) RESTRICT_PYTHON_ABIS="3.*" inherit eutils python-r1 scons-utils DESCRIPTION="Flexible Isometric Free Engine, 2D" HOMEPAGE="http://fifengine.de" SRC_URI="http://downloads.sourceforge.net/project/${PN}/active/src/${PN}_${PV}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64" SLOT="0" IUSE="debug profile" RDEPEND=">=dev-libs/boost-1.33.1 dev-python/pyyaml >=media-libs/libsdl-1.2.8 >=media-libs/sdl-ttf-2.0.0 >media-libs/sdl-image-1.2.9[png] media-libs/libvorbis media-libs/libogg media-libs/openal >=sys-libs/zlib-1.2 x11-libs/libXcursor x11-libs/libXext dev-games/guichan[sdl,opengl] virtual/opengl virtual/glu" DEPEND="${RDEPEND} >=dev-lang/swig-1.3.40" S=${WORKDIR}/${PN}_${PV} # just setting RESTRICT_PYTHON_ABI is not enough to install only for python2 pkg_setup() { python_set_active_version 2 python_pkg_setup } src_prepare() { rm -r ext #delete bundled libs epatch "${FILESDIR}/${P}-unbundle-libpng.patch" } # Compile is only succesfull with one thread #SCONSOPTS="-j1" src_compile() { escons \ --python-prefix="${D}/$(python_get_sitedir)" \ --prefix="${D}/usr" \ $(use_scons debug) \ $(use_scons debug log log) \ $(use_scons profile) \ || die "scons failed" } src_install() { escons install-python --python-prefix="${D}/$(python_get_sitedir)" \ --prefix="${D}/usr" || die "install failed" }