* [gentoo-commits] repo/gentoo:master commit in: games-strategy/lightyears/files/, games-strategy/lightyears/
@ 2018-05-02 19:28 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2018-05-02 19:28 UTC (permalink / raw
To: gentoo-commits
commit: 6a75659b72ad7b71fa16e7ee07fa3a5fecd978b5
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed May 2 18:03:10 2018 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed May 2 19:27:52 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a75659b
games-strategy/lightyears: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
.../lightyears/files/lightyears-1.4-gentoo.patch | 4 +-
games-strategy/lightyears/lightyears-1.4-r2.ebuild | 50 ++++++++++++++++++++++
2 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
index 063dbab3c1e..325c4365ded 100644
--- a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
+++ b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
@@ -1,5 +1,5 @@
---- lightyears
-+++ lightyears
+--- a/lightyears
++++ b/lightyears
@@ -1,7 +1,6 @@
#!/usr/bin/python
diff --git a/games-strategy/lightyears/lightyears-1.4-r2.ebuild b/games-strategy/lightyears/lightyears-1.4-r2.ebuild
new file mode 100644
index 00000000000..7e7344951fc
--- /dev/null
+++ b/games-strategy/lightyears/lightyears-1.4-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit desktop python-single-r1
+
+DESCRIPTION="A single-player game with a science-fiction theme"
+HOMEPAGE="http://www.jwhitham.org/20kly/"
+SRC_URI="http://www.jwhitham.org/20kly/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pygame[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}/${P}"-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_LIBDIR@:/usr/$(get_libdir)/${PN}:" \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ ${PN} || die
+ python_fix_shebang .
+}
+
+src_install() {
+ dobin ${PN}
+
+ insinto /usr/"$(get_libdir)/${PN}"
+ doins code/*.py
+
+ einstalldocs
+
+ insinto "/usr/share/${PN}"
+ doins -r audio data manual
+
+ python_optimize "${ED}/usr/$(get_libdir)/${PN}"
+
+ newicon data/32.png ${PN}.png
+ make_desktop_entry ${PN} "Light Years Into Space"
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-strategy/lightyears/files/, games-strategy/lightyears/
@ 2020-03-19 7:25 Mikle Kolyada
0 siblings, 0 replies; 2+ messages in thread
From: Mikle Kolyada @ 2020-03-19 7:25 UTC (permalink / raw
To: gentoo-commits
commit: 77e425995f5817cbcc95147c70157cb309bdd68a
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 19 07:25:35 2020 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Thu Mar 19 07:25:35 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77e42599
games-strategy/lightyears: remove last-rited pkg
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
games-strategy/lightyears/Manifest | 1 -
.../lightyears/files/lightyears-1.4-gentoo.patch | 45 -----------------
games-strategy/lightyears/lightyears-1.4-r3.ebuild | 58 ----------------------
games-strategy/lightyears/metadata.xml | 13 -----
4 files changed, 117 deletions(-)
diff --git a/games-strategy/lightyears/Manifest b/games-strategy/lightyears/Manifest
deleted file mode 100644
index ed5bf410ae7..00000000000
--- a/games-strategy/lightyears/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST lightyears-1.4.tar.bz2 693877 BLAKE2B 871b8f66088c3a947de50e7b47a8aeef4d06f9c7919f4f361a6719ff0dfa6b48acabb759dca6969d09255e2c89c158caa0cd560ef02567df6e46bbcda2eb9417 SHA512 68f576d820d54b353adbc504f8aa3341547e2e56474717cc59aecc2368fc0eb533458e09876b3cd2a9062914a8a58d39a35ce944256372bb9e15830210924597
diff --git a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
deleted file mode 100644
index 325c4365ded..00000000000
--- a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- a/lightyears
-+++ b/lightyears
-@@ -1,7 +1,6 @@
- #!/usr/bin/python
-
- # Set the location of the LightYears files here:
--LIGHTYEARS_DIR = "."
- # LIGHTYEARS_DIR = "/usr/share/games/lightyears" # (for Debian)
-
- # Save games and configuration files are stored in the user's
-@@ -10,31 +9,6 @@
- import sys, os
-
- if __name__ == "__main__":
-- # Path to data/code dir can be overridden by environment variable
-- LIGHTYEARS_DIR = os.environ.get("LIGHTYEARS_DIR", LIGHTYEARS_DIR)
--
-- # Path does not exist? Try current directory.
-- if ((LIGHTYEARS_DIR == None)
-- or (not os.path.isdir(LIGHTYEARS_DIR))
-- or (not os.path.isfile(os.path.join(LIGHTYEARS_DIR,
-- 'code', 'startup.py')))):
-- LIGHTYEARS_DIR = os.getcwd()
--
-- # Paths obtained
-- sys.path.insert(0, os.path.join(LIGHTYEARS_DIR, 'code'))
-- data_dir = os.path.join(LIGHTYEARS_DIR, 'data')
--
-- # Go
-- try:
-- import startup
-- assert os.path.isdir(data_dir)
-- except:
-- print "Unable to find LightYears code & data in:"
-- for p in sys.path:
-- print ' ', p
--
-- sys.exit(1)
--
-- startup.Main(data_dir)
--
--
-+ sys.path.insert(0, "@GENTOO_LIBDIR@")
-+ import startup
-+ startup.Main("@GENTOO_DATADIR@/data")
diff --git a/games-strategy/lightyears/lightyears-1.4-r3.ebuild b/games-strategy/lightyears/lightyears-1.4-r3.ebuild
deleted file mode 100644
index e0e5bb0741d..00000000000
--- a/games-strategy/lightyears/lightyears-1.4-r3.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit desktop python-single-r1 xdg-utils
-
-DESCRIPTION="A single-player game with a science-fiction theme"
-HOMEPAGE="https://www.jwhitham.org/20kly/"
-SRC_URI="https://www.jwhitham.org/20kly/${P}.tar.bz2"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/pygame[${PYTHON_MULTI_USEDEP}]
- ')
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}/${P}"-gentoo.patch
-)
-
-src_prepare() {
- default
-
- sed -i \
- -e "s:@GENTOO_LIBDIR@:/usr/$(get_libdir)/${PN}:" \
- -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
- ${PN} || die
-
- python_fix_shebang .
-}
-
-src_install() {
- dobin ${PN}
-
- insinto /usr/"$(get_libdir)/${PN}"
- doins code/*.py
-
- einstalldocs
-
- insinto "/usr/share/${PN}"
- doins -r audio data manual
-
- python_optimize "${ED}/usr/$(get_libdir)/${PN}"
-
- newicon data/32.png ${PN}.png
- make_desktop_entry ${PN} "Light Years Into Space"
-}
-
-pkg_postinst() { xdg_icon_cache_update; }
-pkg_postrm() { xdg_icon_cache_update; }
diff --git a/games-strategy/lightyears/metadata.xml b/games-strategy/lightyears/metadata.xml
deleted file mode 100644
index c314eef5e08..00000000000
--- a/games-strategy/lightyears/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
- <email>games@gentoo.org</email>
- <name>Gentoo Games Project</name>
-</maintainer>
-<longdescription lang="en">
-"20,000 Light Years Into Space" was written for Pyweek (March 2006) by Jack
-Whitham. It is a single-player real-time strategy game with a science-fiction
-theme.
-</longdescription>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-19 7:25 UTC | newest]
Thread overview: 2+ messages (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/lightyears/files/, games-strategy/lightyears/ Pacho Ramos
-- strict thread matches above, loose matches on Subject: below --
2020-03-19 7:25 Mikle Kolyada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox