diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-11-05 20:56:17 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-11-05 20:56:17 +0000 |
commit | 666a8a4c10ab65bc21c1615fecbb995775d7b66b (patch) | |
tree | 7d767cead99161f5596007935a981b36be8ce26d /games-strategy/lightyears | |
parent | amd64/x86 stable, bug #245252 (diff) | |
download | historical-666a8a4c10ab65bc21c1615fecbb995775d7b66b.tar.gz historical-666a8a4c10ab65bc21c1615fecbb995775d7b66b.tar.bz2 historical-666a8a4c10ab65bc21c1615fecbb995775d7b66b.zip |
Version bump to 1.3a. Bug #233011
Package-Manager: portage-2.1.4.5
Diffstat (limited to 'games-strategy/lightyears')
-rw-r--r-- | games-strategy/lightyears/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/lightyears/Manifest | 15 | ||||
-rw-r--r-- | games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch | 35 | ||||
-rw-r--r-- | games-strategy/lightyears/lightyears-1.3a.ebuild | 53 |
4 files changed, 99 insertions, 12 deletions
diff --git a/games-strategy/lightyears/ChangeLog b/games-strategy/lightyears/ChangeLog index e027be1ee157..130edc442c36 100644 --- a/games-strategy/lightyears/ChangeLog +++ b/games-strategy/lightyears/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/lightyears # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.6 2008/05/29 16:55:42 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.7 2008/11/05 20:56:17 tupone Exp $ + +*lightyears-1.3a (05 Nov 2008) + + 05 Nov 2008; Tupone Alfredo <tupone@gentoo.org> + +files/lightyears-1.3a-gentoo.patch, +lightyears-1.3a.ebuild: + Version bump to 1.3a. Bug #233011 by chris salch 29 May 2008; Ali Polatel <hawking@gentoo.org> lightyears-1.2a.ebuild: python_mod_optimize is ROOT aware. diff --git a/games-strategy/lightyears/Manifest b/games-strategy/lightyears/Manifest index 406d778724d9..0ff92e81ea66 100644 --- a/games-strategy/lightyears/Manifest +++ b/games-strategy/lightyears/Manifest @@ -1,15 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX lightyears-1.2a-gentoo.patch 707 RMD160 66f1641c32bccaf6e1b248ff55a3779224bb50ac SHA1 f459270d67229948b0a093db800000fc59ca9b89 SHA256 c0fb98009928b5ea4b2d83ddc5b21ad12c7700f0b23ae7fd80a5a80a0b15a297 +AUX lightyears-1.3a-gentoo.patch 968 RMD160 fd5792d117ecfeced59ee9d19a1e2d71396010d5 SHA1 481ec09e1a1ff858e90f9c745c94da39bf9dae0c SHA256 7ea3224c82a4ad1b877e91c896d976f29968f823f2dfd140107de84c746a985c DIST LightYears-1.2a.zip 1494290 RMD160 41e52a51b8425300d5e1abc083148fec93c61d1c SHA1 2c86eded64901e6bfd762c07a29866cb5f279443 SHA256 81980a4b53ad84e835f7a8f49a615ec355b04752d6aaa64d35ba832d7190d88b +DIST lightyears-1.3a.tar.gz 680843 RMD160 0a5dd05fe29002fe0a5d913cf6052611d54c32f7 SHA1 9ba3c48ce36d39c0d2bb44c7919f6fd301944ec2 SHA256 dd898452ce791321039bf895b50a77dab360c3866c98e3a80955fce71e637be0 EBUILD lightyears-1.2a.ebuild 1671 RMD160 89ff3a09746c7195723b7eb9192d10b7b2b36caf SHA1 e2ea0c9fb3a2350944966bb1b051c9047e0fbee3 SHA256 8ef1946518e1eaf92901d749c10905abe62db3f0d1a5abc9f9227cc45d17eb35 -MISC ChangeLog 1014 RMD160 6e124cd5856ea963cb3ef0cf0bad2ea6a4b42410 SHA1 610b96f19f008d545efaf2519d01ddb6bda5a6c1 SHA256 907398d367abbc434fc5444945b4df38f05a0658652a6ee7b3d1bde913c0741c +EBUILD lightyears-1.3a.ebuild 1250 RMD160 b4077fba45303de98fd95f12d253c2f63aa232ea SHA1 73da2cc0a7241670fc584c271bf520a63633de47 SHA256 7e470b299d8d95d1738e2aa2f2b939e99b449e6ea31012a8b481dbd654ba9d50 +MISC ChangeLog 1211 RMD160 a3dd02de7220f14d1e04aaded5d523b43a97f231 SHA1 2b5c4df1b29ce9bc3b71a16a56823ce214095128 SHA256 1438cf2160123e7b451736c0e189c05f6f7abba3985ed179474a208ad17dcf9c MISC metadata.xml 366 RMD160 5d947375304d60e93c580163a09d6c27dea33a98 SHA1 a4b1a9849dfc45aaca4fb7cac65e695cf4277cd7 SHA256 c21e8e6d236aef6628b448f839689a39ea28201b15ff08fffb1aadd717f7f6b7 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkg+4A0ACgkQQU4yORhF8iBsmgCfS+3yeCbSEPmJRK3bBe05G5Yf -zJ8AoMljbHMlE1RKdqI4lHtTsLIlKsS3 -=eFru ------END PGP SIGNATURE----- diff --git a/games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch new file mode 100644 index 000000000000..4c38e878914c --- /dev/null +++ b/games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch @@ -0,0 +1,35 @@ +--- lightyears.old 2008-11-03 20:16:40.000000000 +0100 ++++ lightyears 2008-11-03 20:18:40.000000000 +0100 +@@ -1,28 +1,16 @@ + #!/usr/bin/python + + # Set the location of the LightYears .py files here: +-LIGHTYEARS_DIR = "/usr/share/games/lightyears" + + # Save games and configuration files are stored in the user's + # home directory. + +- + if ( __name__ == "__main__" ): + import sys, os + +- if (( LIGHTYEARS_DIR == None ) +- or ( not os.path.exists(LIGHTYEARS_DIR) )): +- # Try current directory +- LIGHTYEARS_DIR = os.path.abspath( +- os.path.dirname(sys.argv[ 0 ])) +- +- sys.path.insert(0, os.path.join(LIGHTYEARS_DIR, 'code')) +- +- try: +- import startup +- except: +- print "Unable to find LightYears code in", LIGHTYEARS_DIR +- sys.exit(1) ++ sys.path.insert(0, "@GENTOO_LIBDIR@") ++ ++ import startup + +- startup.Main(os.path.join(LIGHTYEARS_DIR, 'data')) ++ startup.Main("@GENTOO_DATADIR@/data") + diff --git a/games-strategy/lightyears/lightyears-1.3a.ebuild b/games-strategy/lightyears/lightyears-1.3a.ebuild new file mode 100644 index 000000000000..178793f798f9 --- /dev/null +++ b/games-strategy/lightyears/lightyears-1.3a.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.3a.ebuild,v 1.1 2008/11/05 20:56:17 tupone Exp $ + +inherit eutils python games + +DESCRIPTION="a single-player game with a science-fiction theme" +HOMEPAGE="http://www.jwhitham.org.uk/20kly/" +SRC_URI="${HOMEPAGE}${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-lang/python + dev-python/pygame" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i \ + -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + ${PN} || die "Changing library path failed" +} + +src_install() { + dogamesbin ${PN} || die "dogamesbin failed" + + insinto "$(games_get_libdir)/${PN}" + doins code/*.py || die "doins code failed" + + dodoc README.txt + + insinto "${GAMES_DATADIR}/${PN}" + doins -r data audio || die "doins data failed" + + newicon data/32.png ${PN}.png + make_desktop_entry ${PN} "Light Years Into Space" + prepgamesdirs +} + +pkg_postinst() { + python_mod_optimize "$(games_get_libdir)/${PN}" + games_pkg_postinst +} + +pkg_postrm() { + python_mod_cleanup "$(games_get_libdir)/${PN}" +} |