summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-strategy/lightyears/Manifest1
-rw-r--r--games-strategy/lightyears/files/lightyears-1.4-gentoo.patch45
-rw-r--r--games-strategy/lightyears/lightyears-1.4-r3.ebuild58
-rw-r--r--games-strategy/lightyears/metadata.xml13
4 files changed, 0 insertions, 117 deletions
diff --git a/games-strategy/lightyears/Manifest b/games-strategy/lightyears/Manifest
deleted file mode 100644
index ed5bf410ae79..000000000000
--- 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 325c4365ded4..000000000000
--- 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 e0e5bb0741d9..000000000000
--- 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 c314eef5e089..000000000000
--- 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>