Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/lightyears/files: lightyears-1.3a-gentoo.patch
Date: Wed, 05 Nov 2008 20:56:19
Message-Id: E1KxpQH-0006Ex-UH@stork.gentoo.org
1 tupone 08/11/05 20:56:17
2
3 Added: lightyears-1.3a-gentoo.patch
4 Log:
5 Version bump to 1.3a. Bug #233011
6 (Portage version: 2.1.4.5)
7
8 Revision Changes Path
9 1.1 games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/lightyears/files/lightyears-1.3a-gentoo.patch?rev=1.1&content-type=text/plain
13
14 Index: lightyears-1.3a-gentoo.patch
15 ===================================================================
16 --- lightyears.old 2008-11-03 20:16:40.000000000 +0100
17 +++ lightyears 2008-11-03 20:18:40.000000000 +0100
18 @@ -1,28 +1,16 @@
19 #!/usr/bin/python
20
21 # Set the location of the LightYears .py files here:
22 -LIGHTYEARS_DIR = "/usr/share/games/lightyears"
23
24 # Save games and configuration files are stored in the user's
25 # home directory.
26
27 -
28 if ( __name__ == "__main__" ):
29 import sys, os
30
31 - if (( LIGHTYEARS_DIR == None )
32 - or ( not os.path.exists(LIGHTYEARS_DIR) )):
33 - # Try current directory
34 - LIGHTYEARS_DIR = os.path.abspath(
35 - os.path.dirname(sys.argv[ 0 ]))
36 -
37 - sys.path.insert(0, os.path.join(LIGHTYEARS_DIR, 'code'))
38 -
39 - try:
40 - import startup
41 - except:
42 - print "Unable to find LightYears code in", LIGHTYEARS_DIR
43 - sys.exit(1)
44 + sys.path.insert(0, "@GENTOO_LIBDIR@")
45 +
46 + import startup
47
48 - startup.Main(os.path.join(LIGHTYEARS_DIR, 'data'))
49 + startup.Main("@GENTOO_DATADIR@/data")