1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit gnome2-utils distutils-r1 games
10 DESCRIPTION="A 3D action game with multiplayer mode and amazing graphics"
11 HOMEPAGE="http://oomadness.tuxfamily.org/en/slune/"
12 SRC_URI="http://download.gna.org/slune/Slune-${PV}.tar.bz2"
16 KEYWORDS="~amd64 ~x86"
19 RDEPEND="virtual/opengl
20 >=media-libs/libsdl-1.2.6
22 >=dev-python/py2play-0.1.9
23 >=dev-python/pyopenal-0.1.3
24 >=dev-python/pyogg-1.1
25 >=dev-python/pyvorbis-1.1"
28 S=${WORKDIR}/Slune-${PV}
31 distutils-r1_python_install \
32 --install-scripts="${GAMES_BINDIR}" \
33 --install-data="${GAMES_DATADIR}" \
34 --install-lib="$(python_get_sitedir)"
36 # FHS broke the logic, fix it
38 for i in $(ls -I locale "${ED}${GAMES_DATADIR}"/${PN}) ; do
39 dosym "${GAMES_DATADIR}/${PN}/${i}" "$(python_get_sitedir)/${PN}/${i}"
44 distutils-r1_src_prepare
48 distutils-r1_src_compile
52 distutils-r1_src_install
54 # fix install dest of locales
55 mv "${ED}${GAMES_DATADIR}"/${PN}/locale "${ED}"/usr/share/locale || die
57 newicon -s 48 images/${PN}.48.png ${PN}.png
58 make_desktop_entry ${PN} "Slune"
70 gnome2_icon_cache_update
74 gnome2_icon_cache_update