summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/lightyears/ChangeLog11
-rw-r--r--games-strategy/lightyears/Manifest20
-rw-r--r--games-strategy/lightyears/files/digest-lightyears-1.2a3
-rw-r--r--games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch24
-rw-r--r--games-strategy/lightyears/lightyears-1.2a.ebuild58
-rw-r--r--games-strategy/lightyears/metadata.xml10
6 files changed, 126 insertions, 0 deletions
diff --git a/games-strategy/lightyears/ChangeLog b/games-strategy/lightyears/ChangeLog
new file mode 100644
index 000000000000..2ac5a5ef3001
--- /dev/null
+++ b/games-strategy/lightyears/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-strategy/lightyears
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.1 2007/04/27 20:57:33 tupone Exp $
+
+*lightyears-1.2a (27 Apr 2007)
+
+ 27 Apr 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/lightyears-1.2a-gentoo.patch, +metadata.xml,
+ +lightyears-1.2a.ebuild:
+ New package, Bug #130485 by Alexandru Toma
+
diff --git a/games-strategy/lightyears/Manifest b/games-strategy/lightyears/Manifest
new file mode 100644
index 000000000000..5e1cee5a2989
--- /dev/null
+++ b/games-strategy/lightyears/Manifest
@@ -0,0 +1,20 @@
+AUX lightyears-1.2a-gentoo.patch 707 RMD160 66f1641c32bccaf6e1b248ff55a3779224bb50ac SHA1 f459270d67229948b0a093db800000fc59ca9b89 SHA256 c0fb98009928b5ea4b2d83ddc5b21ad12c7700f0b23ae7fd80a5a80a0b15a297
+MD5 2b7ade1851ad91f9326a477bed95911c files/lightyears-1.2a-gentoo.patch 707
+RMD160 66f1641c32bccaf6e1b248ff55a3779224bb50ac files/lightyears-1.2a-gentoo.patch 707
+SHA256 c0fb98009928b5ea4b2d83ddc5b21ad12c7700f0b23ae7fd80a5a80a0b15a297 files/lightyears-1.2a-gentoo.patch 707
+DIST LightYears-1.2a.zip 1494290 RMD160 41e52a51b8425300d5e1abc083148fec93c61d1c SHA1 2c86eded64901e6bfd762c07a29866cb5f279443 SHA256 81980a4b53ad84e835f7a8f49a615ec355b04752d6aaa64d35ba832d7190d88b
+EBUILD lightyears-1.2a.ebuild 1378 RMD160 2f3356f41ac0bd75d0fdb4f5f419b7bbaa38a652 SHA1 50f0366903f0932d6d507855e8cbc47143b4c1a2 SHA256 ff2881f708ad1917baa1be9937a609ec447330a0c3e8175eec95124d323122ec
+MD5 4db204d4393191f3c0893c9282ad266f lightyears-1.2a.ebuild 1378
+RMD160 2f3356f41ac0bd75d0fdb4f5f419b7bbaa38a652 lightyears-1.2a.ebuild 1378
+SHA256 ff2881f708ad1917baa1be9937a609ec447330a0c3e8175eec95124d323122ec lightyears-1.2a.ebuild 1378
+MISC ChangeLog 335 RMD160 1734a4dea2bba71f1b14e485e7e60a933a710aa4 SHA1 0a606e03e9e8172227c782dd038e984f8974be09 SHA256 0a1176e8c77dd7a27f4d6b5c5507675cffa6678de32d456bd802106cae57920c
+MD5 378034529cf75e2c2f1c5849dfd996d8 ChangeLog 335
+RMD160 1734a4dea2bba71f1b14e485e7e60a933a710aa4 ChangeLog 335
+SHA256 0a1176e8c77dd7a27f4d6b5c5507675cffa6678de32d456bd802106cae57920c ChangeLog 335
+MISC metadata.xml 366 RMD160 5d947375304d60e93c580163a09d6c27dea33a98 SHA1 a4b1a9849dfc45aaca4fb7cac65e695cf4277cd7 SHA256 c21e8e6d236aef6628b448f839689a39ea28201b15ff08fffb1aadd717f7f6b7
+MD5 c5d83d587714cdc755e1cca95979b41f metadata.xml 366
+RMD160 5d947375304d60e93c580163a09d6c27dea33a98 metadata.xml 366
+SHA256 c21e8e6d236aef6628b448f839689a39ea28201b15ff08fffb1aadd717f7f6b7 metadata.xml 366
+MD5 03a03c2a6f0a7945581702eed43afd35 files/digest-lightyears-1.2a 241
+RMD160 48c785782865e4075d685a4b97dd977e2fc1b24a files/digest-lightyears-1.2a 241
+SHA256 922a3c24ffff49fcf00ea34d78720152e341d6e4ff8c01f7fe1ecd1eec37aaab files/digest-lightyears-1.2a 241
diff --git a/games-strategy/lightyears/files/digest-lightyears-1.2a b/games-strategy/lightyears/files/digest-lightyears-1.2a
new file mode 100644
index 000000000000..316bafda3986
--- /dev/null
+++ b/games-strategy/lightyears/files/digest-lightyears-1.2a
@@ -0,0 +1,3 @@
+MD5 b07bf041b3a735248440dd27cf70a3e6 LightYears-1.2a.zip 1494290
+RMD160 41e52a51b8425300d5e1abc083148fec93c61d1c LightYears-1.2a.zip 1494290
+SHA256 81980a4b53ad84e835f7a8f49a615ec355b04752d6aaa64d35ba832d7190d88b LightYears-1.2a.zip 1494290
diff --git a/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch
new file mode 100644
index 000000000000..6b1996bea320
--- /dev/null
+++ b/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch
@@ -0,0 +1,24 @@
+--- LightYears.py.old 2007-04-27 21:33:46.000000000 +0200
++++ LightYears.py 2007-04-27 21:35:02.000000000 +0200
+@@ -9,8 +9,7 @@
+ if ( __name__ == "__main__" ):
+ import sys, os
+
+- CODE_DIR = os.path.abspath(os.path.join(
+- os.path.dirname(sys.argv[ 0 ]), "code"))
++ CODE_DIR = "@GENTOO_LIBDIR@"
+
+ sys.path.insert(0, CODE_DIR)
+
+--- code/resource.py.old 2007-04-27 22:17:47.000000000 +0200
++++ code/resource.py 2007-04-27 22:18:29.000000000 +0200
+@@ -14,8 +14,7 @@
+ __snd_cache = dict()
+ __snd_disabled = False
+
+-DATA_DIR = os.path.abspath(os.path.join(
+- os.path.dirname(sys.argv[ 0 ]), "data"))
++DATA_DIR = "@GENTOO_DATADIR@"
+
+
+ def Path(name, audio=False):
diff --git a/games-strategy/lightyears/lightyears-1.2a.ebuild b/games-strategy/lightyears/lightyears-1.2a.ebuild
new file mode 100644
index 000000000000..afc2fc0d78aa
--- /dev/null
+++ b/games-strategy/lightyears/lightyears-1.2a.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.2a.ebuild,v 1.1 2007/04/27 20:57:33 tupone Exp $
+
+inherit eutils games
+
+MY_PN=LightYears
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="a single-player game with a science-fiction theme"
+HOMEPAGE="http://www.jwhitham.org.uk/biscuit_games/LightYears"
+SRC_URI="http://www.jwhitham.org.uk/biscuit_games/${MY_PN}/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-lang/python-2.4
+ >=dev-python/pygame-1.7"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \
+ ${MY_PN}.py || die "Changing library path failed"
+ sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ code/resource.py || die "Changing data path failed"
+
+ mkdirhier html/data
+ cp data/{006metal,header}.jpg html/data \
+ || die "Failed moving html data"
+ mv data/html*.jpg html/data \
+ || die "Failed moving html data"
+}
+
+src_install() {
+ dogamesbin ${MY_PN}.py || die "dogamesbin failed"
+
+ insinto "$(games_get_libdir)/${PN}"
+ doins code/*.py || die "installing library files failed"
+
+ dodoc README.txt
+ dohtml -r *.html html/data
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data/*
+
+ newicon data/32.png ${PN}.png
+ make_desktop_entry ${MY_PN}.py ${MY_PN}
+ prepgamesdirs
+}
diff --git a/games-strategy/lightyears/metadata.xml b/games-strategy/lightyears/metadata.xml
new file mode 100644
index 000000000000..72ac0f764196
--- /dev/null
+++ b/games-strategy/lightyears/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<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>