* [gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/, games-strategy/outerspace/files/
@ 2018-05-02 19:28 Pacho Ramos
0 siblings, 0 replies; only message in thread
From: Pacho Ramos @ 2018-05-02 19:28 UTC (permalink / raw
To: gentoo-commits
commit: 5a239cece181e5580c0b754d0cab2f2773b65b61
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed May 2 18:56:13 2018 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed May 2 19:28:09 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a239cec
games-strategy/outerspace: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
.../outerspace/files/outerspace-0.5.68-setup.patch | 8 +--
.../outerspace/outerspace-0.5.68-r1.ebuild | 72 ++++++++++++++++++++++
2 files changed, 76 insertions(+), 4 deletions(-)
diff --git a/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch b/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch
index 202c53bc7ee..c95852dca3d 100644
--- a/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch
+++ b/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch
@@ -1,5 +1,5 @@
---- setup.py
-+++ setup.py
+--- a/setup.py
++++ b/setup.py
@@ -42,12 +42,7 @@
# collect data files
@@ -42,8 +42,8 @@
- os.remove(path)
-
-shutil.rmtree("libsrvr", onerror = onerror)
---- osc.py
-+++ osc.py
+--- a/osc.py
++++ b/osc.py
@@ -23,12 +23,36 @@
# tweak PYTHONPATH
import sys
diff --git a/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild
new file mode 100644
index 00000000000..7ac6c532fd4
--- /dev/null
+++ b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit desktop gnome2-utils distutils-r1
+
+MY_PN="${PN/outerspace/Outer Space}"
+DESCRIPTION="On-line strategy game taking place in the dangerous universe"
+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"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-python/pygame-1.7"
+DEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_unpack() {
+ default
+ unpack ./data.tar.gz
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --install-scripts="/usr/bin" \
+ --install-data="/usr/share/${PN}" \
+ --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() {
+ default
+
+ # fix setup script
+ # rework python start script to avoid shell-wrapper script
+ eapply "${FILESDIR}"/${P}-setup.patch
+
+ sed -i\
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ osc.py || die "sed failed"
+
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ newicon res/logo-login.png ${PN}.png
+ make_desktop_entry "osc.py" "${MY_PN}"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-02 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-02 19:28 [gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/, games-strategy/outerspace/files/ Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox