2015-02-05 17:53:43 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-07-01 01:37:31 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-07-01 01:37:31 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2015-02-05 17:53:43 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 )
|
2013-07-01 01:37:31 +04:00
|
|
|
inherit eutils python-single-r1 games
|
|
|
|
|
|
|
|
MUSIC=endgame-${PN}-music-006
|
|
|
|
DESCRIPTION="A simulation of a true AI. Go from computer to computer, pursued by the entire world"
|
|
|
|
HOMEPAGE="http://www.emhsoft.com/singularity/"
|
2015-08-25 09:05:57 +03:00
|
|
|
SRC_URI="https://endgame-singularity.googlecode.com/files/${P}-src.tar.gz
|
|
|
|
music? ( https://endgame-singularity.googlecode.com/files/${MUSIC}.zip )"
|
2013-07-01 01:37:31 +04:00
|
|
|
|
|
|
|
LICENSE="GPL-2 CC-BY-SA-2.5"
|
|
|
|
SLOT="0"
|
2015-02-10 15:10:04 +03:00
|
|
|
KEYWORDS="amd64 x86"
|
2013-07-01 01:37:31 +04:00
|
|
|
IUSE="+music"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
|
|
|
|
DEPEND="${PYTHON_DEPS}"
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
dev-python/pygame[${PYTHON_USEDEP}]
|
|
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
|
|
media-libs/sdl-mixer[vorbis]"
|
|
|
|
DEPEND="${DEPEND}
|
|
|
|
app-arch/unzip"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
python-single-r1_pkg_setup
|
|
|
|
games_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
rm -f code/{,*}/*.pyc data/*.html || die # Remove unecessary files
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto "${GAMES_DATADIR}/${PN}"
|
2015-02-05 17:53:43 +03:00
|
|
|
doins -r code data ${PN}.py || die
|
2013-07-01 01:37:31 +04:00
|
|
|
python_optimize "${ED%/}/${GAMES_DATADIR}"/${PN}
|
|
|
|
|
|
|
|
if use music ; then
|
2015-02-05 17:53:43 +03:00
|
|
|
doins -r ../${MUSIC}/music || die
|
2013-07-01 01:37:31 +04:00
|
|
|
fi
|
|
|
|
games_make_wrapper ${PN} "${EPYTHON} ${PN}.py" "${GAMES_DATADIR}/${PN}"
|
|
|
|
dodoc README.txt TODO Changelog AUTHORS
|
|
|
|
prepgamesdirs
|
|
|
|
}
|