pkgsrc/games/pytraffic/patches/patch-aa
drochner 00badb0838 update to 2.5.4
changes: doesn't use pygame anymore but SDL directly
2007-03-05 17:42:55 +00:00

24 lines
1.2 KiB
Text

$NetBSD: patch-aa,v 1.3 2007/03/05 17:42:55 drochner Exp $
--- setup.py.orig 2006-01-27 08:59:07.000000000 +0100
+++ setup.py
@@ -58,8 +58,8 @@ if os.name=='posix':
def build_and_install_pytraffic_script(self):
main_command_contents=\
r"""#!/bin/sh
-exec python %s/share/%s/Main.py""" %\
- (os.path.abspath(self.install_base),config_db["install_leaf"])
+exec %s %s/share/%s/Main.py""" %\
+ (sys.executable,os.path.abspath(self.install_base),config_db["install_leaf"])
pytraffic_build=os.path.join(self.build_base,"pytraffic")
pytraffic_install=os.path.join(self.install_base,
"bin",
@@ -150,7 +150,7 @@ if os.name=='nt':
'install_lib' : "c:\\"+config_db["install_leaf_windows"]}
options['build_ext']={'compiler' : 'mingw32'}
else:
- options['install']={'prefix' : '/usr/local',
+ options['install']={'prefix' : os.environ['PREFIX'],
'install_lib' : '$base/share/'+config_db["install_leaf"],
'install_data' : '$base'}
options['build_ext']={'compiler' : 'unix'}