1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
7 inherit desktop gnome2-utils distutils-r1
9 MY_PN="${PN/outerspace/Outer Space}"
10 DESCRIPTION="On-line strategy game taking place in the dangerous universe"
11 HOMEPAGE="https://www.ospace.net/ https://sourceforge.net/projects/ospace/"
12 SRC_URI="mirror://sourceforge/ospace/Client/${PV}/Outer%20Space-${PV}.tar.gz -> ${P}.tar.gz
13 mirror://sourceforge/ospace/Client/${PV}/outerspace_${PV}-0ubuntu1_all.deb"
17 KEYWORDS="~amd64 ~x86"
20 RDEPEND=">=dev-python/pygame-1.7"
23 S="${WORKDIR}/${MY_PN}-${PV}"
31 distutils-r1_python_install \
32 --install-scripts="/usr/bin" \
33 --install-data="/usr/share/${PN}" \
34 --install-lib="$(python_get_sitedir)"
36 # source tarball is missing files
37 # get them from ubuntu.deb
38 python_moduleinto ige.ospace.Rules
39 python_domodule "${WORKDIR}"/usr/share/games/outerspace/libsrvr/ige/ospace/Rules/{Tech,techs}.spf
46 # rework python start script to avoid shell-wrapper script
47 eapply "${FILESDIR}"/${P}-setup.patch
50 -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
51 osc.py || die "sed failed"
53 distutils-r1_src_prepare
57 distutils-r1_src_install
58 newicon res/logo-login.png ${PN}.png
59 make_desktop_entry "osc.py" "${MY_PN}"
67 gnome2_icon_cache_update
71 gnome2_icon_cache_update