You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.5 KiB
73 lines
1.5 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
9 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
11 years ago
|
|
||
6 years ago
|
inherit desktop gnome2-utils distutils-r1
|
||
11 years ago
|
|
||
6 years ago
|
MY_PN="${PN/outerspace/Outer Space}"
|
||
|
DESCRIPTION="On-line strategy game taking place in the dangerous universe"
|
||
11 years ago
|
HOMEPAGE="http://www.ospace.net/"
|
||
|
SRC_URI="mirror://sourceforge/ospace/Client/${PV}/Outer%20Space-${PV}.tar.gz -> ${P}.tar.gz
|
||
|
mirror://sourceforge/ospace/Client/${PV}/outerspace_${PV}-0ubuntu1_all.deb"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
11 years ago
|
IUSE=""
|
||
|
|
||
|
RDEPEND=">=dev-python/pygame-1.7"
|
||
6 years ago
|
DEPEND=""
|
||
11 years ago
|
|
||
6 years ago
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||
11 years ago
|
|
||
|
src_unpack() {
|
||
|
default
|
||
|
unpack ./data.tar.gz
|
||
|
}
|
||
|
|
||
|
python_install() {
|
||
|
distutils-r1_python_install \
|
||
6 years ago
|
--install-scripts="/usr/bin" \
|
||
|
--install-data="/usr/share/${PN}" \
|
||
11 years ago
|
--install-lib="$(python_get_sitedir)"
|
||
|
|
||
|
# source tarball is missing files
|
||
|
# get them from ubuntu.deb
|
||
|
insinto "$(python_get_sitedir)"/ige/ospace/Rules
|
||
|
doins "${WORKDIR}"/usr/share/games/outerspace/libsrvr/ige/ospace/Rules/{Tech,techs}.spf
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
11 years ago
|
# fix setup script
|
||
|
# rework python start script to avoid shell-wrapper script
|
||
6 years ago
|
eapply "${FILESDIR}"/${P}-setup.patch
|
||
11 years ago
|
|
||
|
sed -i\
|
||
6 years ago
|
-e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
|
||
11 years ago
|
osc.py || die "sed failed"
|
||
|
|
||
|
distutils-r1_src_prepare
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
6 years ago
|
newicon res/logo-login.png ${PN}.png
|
||
11 years ago
|
make_desktop_entry "osc.py" "${MY_PN}"
|
||
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|