[gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/files/, games-strategy/outerspace/
commit: 8efc20cfd27cc823451b085da0888acbba9bea4e Author: Mikle Kolyada gentoo org> AuthorDate: Thu Mar 19 07:28:21 2020 + Commit: Mikle Kolyada gentoo org> CommitDate: Thu Mar 19 07:28:21 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8efc20cf games-strategy/outerspace: remove last-rited pkg Signed-off-by: Mikle Kolyada gentoo.org> games-strategy/outerspace/Manifest | 2 - games-strategy/outerspace/files/outerspace | 9 --- .../outerspace/files/outerspace-0.5.68-setup.patch | 83 -- games-strategy/outerspace/metadata.xml | 20 -- .../outerspace/outerspace-0.5.68-r1.ebuild | 72 --- 5 files changed, 186 deletions(-) diff --git a/games-strategy/outerspace/Manifest b/games-strategy/outerspace/Manifest deleted file mode 100644 index eecab4f6595..000 --- a/games-strategy/outerspace/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST outerspace-0.5.68.tar.gz 2249703 BLAKE2B 16b8c2d6c4e0516867d9a07a2762112da39f9a1074dffad9a9a3c343dd75662cba74d50f2a028b530013f320ffd7481317d061a3ebb449e9acf2f41bf56312a3 SHA512 dc2cbebf16fefabcc3356efb496766b90a5eabbf218f085fdc83cf956ca9503e99ef3154e0905c2432a3bf7caabd1f2af585a43397ba368581cd66546fcddc6b -DIST outerspace_0.5.68-0ubuntu1_all.deb 2634188 BLAKE2B fd1667ae130e9a0ed603c369e9751d0b83414f20dd06c2f7e9941e2c465bdad0ff050ca41a928906bc5cc755eb05c0a5dfa18a8c35c868650c3fec6cf2e4f1f8 SHA512 9520cf1207a59497d6253b42bc34d580f9b805cf4ae55a5c921082e965892aa67921c4624ea94a5145c911dc2b24a1cca2806c06770ef8d1ded10855fb42666c diff --git a/games-strategy/outerspace/files/outerspace b/games-strategy/outerspace/files/outerspace deleted file mode 100644 index 2a6bbe26daf..000 --- a/games-strategy/outerspace/files/outerspace +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -mkdir -p ~/.outerspace -cd ~/.outerspace || exit 1 - -ln -sf "@GENTOO_LIBDIR@"/{osc.py,lib,libsrvr} . -ln -sf "@GENTOO_DATADIR@"/res . - -exec python osc.py "$@" diff --git a/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch b/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch deleted file mode 100644 index c95852dca3d..000 --- a/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch +++ /dev/null @@ -1,83 +0,0 @@ a/setup.py -+++ b/setup.py -@@ -42,12 +42,7 @@ - - # collect data files - data_files = [] --data_files.append( --( --".", --["../ChangeLog.txt", "../COPYING", "../README", "../README_CZ"] --) --) -+ - - # resources - for root, dirs, files in os.walk('res'): -@@ -57,16 +52,6 @@ - pass - if files: - data_files.append((root, [os.path.join(root, file) for file in files])) -- --data_files.append( --( --"res/techspec", --[ --"../server/lib/ige/ospace/Rules/techs.spf", --"../server/lib/ige/ospace/Rules/Tech.spf", --] --) --) - - if havePy2Exe: - data_files.append((".", ["../updater/update.exe"])) -@@ -114,10 +99,3 @@ - **extraArgs - ) - --# cleanup --def onerror(func, path, err): --if func is os.remove: --os.chmod(path, stat.S_IWRITE) --os.remove(path) -- --shutil.rmtree("libsrvr", onerror = onerror) a/osc.py -+++ b/osc.py -@@ -23,12 +23,36 @@ - # tweak PYTHONPATH - import sys - import os -+import errno - sys.path.insert(0, "lib") - - for item in ("libsrvr", "../server/lib"): - if os.path.exists(item): - sys.path.insert(0, item) - break -+ -+userdir=os.path.expanduser("~/.outerspace") -+resdir=os.path.join(userdir, "res") -+rootresdir="@GENTOO_DATADIR@/res" -+ -+if not (os.path.isdir(userdir)): -+ try: -+ os.makedirs(userdir) -+ except: -+ sys.exit("unable to create %s" % userdir) -+ -+try: -+ os.symlink(rootresdir, resdir) -+except OSError, e: -+ if e.errno == errno.EEXIST: -+ os.remove(resdir) -+ os.symlink(rootresdir, resdir) -+ -+try: -+ os.chdir(userdir) -+except: -+ sys.exit("unable to cd into %s" % userdir) -+ - - #configure gc - #import gc diff --git a/games-strategy/outerspace/metadata.xml b/games-strategy/outerspace/metadata.xml deleted file mode 100644 index 8868ccd042b..000 --- a/games-strategy/outerspace/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ - -http://www.gentoo.org/dtd/metadata.dtd;> - - - ga...@gentoo.org - Gentoo Games Project - - -Outer Space is an on-line strategy game which takes place in the dangerous -universe. You will become powerful commander of many stars, planets, and great -fleets and will struggle for survival with other commanders. - -Outer Space communicates with the server in the same way as your browser, but -you will need a special client to play it. Using this client you can create an -account on the server and you can start to explore the world of the Outer Space. - - -
[gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/
commit: 05861cff5d731298543699be831af68848fa Author: Michał Górny gentoo org> AuthorDate: Wed Aug 28 17:54:00 2019 + Commit: Michał Górny gentoo org> CommitDate: Wed Aug 28 19:41:13 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05861cff games-strategy/outerspace: Fix installing files into sitedir Signed-off-by: Michał Górny gentoo.org> games-strategy/outerspace/outerspace-0.5.68-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild index a7d5680c16a..ca9da045166 100644 --- a/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild +++ b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild @@ -35,8 +35,8 @@ python_install() { # 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 + python_moduleinto ige.ospace.Rules + python_domodule "${WORKDIR}"/usr/share/games/outerspace/libsrvr/ige/ospace/Rules/{Tech,techs}.spf } src_prepare() {
[gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/
commit: f27eab2e5beed5fe620ad5a8752703827615eeb6 Author: Michael Mair-Keimberger gmail com> AuthorDate: Fri May 11 12:49:31 2018 + Commit: James Le Cuirot gentoo org> CommitDate: Fri May 11 20:38:57 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f27eab2e games-strategy/outerspace: use HTTPS games-strategy/outerspace/outerspace-0.5.68-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild index 7ac6c532fd4..a7d5680c16a 100644 --- a/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild +++ b/games-strategy/outerspace/outerspace-0.5.68-r1.ebuild @@ -8,7 +8,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/; +HOMEPAGE="https://www.ospace.net/ https://sourceforge.net/projects/ospace/; 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"
[gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/, games-strategy/outerspace/files/
commit: 5a239cece181e5580c0b754d0cab2f2773b65b61 Author: Pacho Ramos gentoo org> AuthorDate: Wed May 2 18:56:13 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Wed May 2 19:28:09 2018 + 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 000..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 +}
[gentoo-commits] repo/gentoo:master commit in: games-strategy/outerspace/
commit: e410cf0a616560a25510f646d2a337a967fc1778 Author: Pacho Ramos gentoo org> AuthorDate: Wed May 2 18:56:23 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Wed May 2 19:28:11 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e410cf0a games-strategy/outerspace: Drop old Package-Manager: Portage-2.3.31, Repoman-2.3.9 games-strategy/outerspace/outerspace-0.5.68.ebuild | 80 -- 1 file changed, 80 deletions(-) diff --git a/games-strategy/outerspace/outerspace-0.5.68.ebuild b/games-strategy/outerspace/outerspace-0.5.68.ebuild deleted file mode 100644 index 1fcc38fc07a..000 --- a/games-strategy/outerspace/outerspace-0.5.68.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python2_7 ) - -inherit eutils gnome2-utils distutils-r1 games - -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" - -S=${WORKDIR}/${MY_PN}-${PV} - -src_unpack() { - default - unpack ./data.tar.gz -} - -python_install() { - distutils-r1_python_install \ - --install-scripts="${GAMES_BINDIR}" \ - --install-data="${GAMES_DATADIR}/${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() { - # fix setup script - # rework python start script to avoid shell-wrapper script - epatch "${FILESDIR}"/${P}-setup.patch - - sed -i\ - -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ - osc.py || die "sed failed" - - distutils-r1_src_prepare -} - -src_compile() { - distutils-r1_src_compile -} - -src_install() { - distutils-r1_src_install - newicon -s 48 res/icon48.png ${PN}.png - make_desktop_entry "osc.py" "${MY_PN}" - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - games_pkg_postinst - gnome2_icon_cache_update - - einfo - einfo "start the game via 'osc.py'" - einfo -} - -pkg_postrm() { - gnome2_icon_cache_update -}