Ticket #441: scons-1.0.1.patch
| File scons-1.0.1.patch, 4.6 KB (added by scottmc, 5 years ago) |
|---|
-
engine/SCons/Platform/__init__.py
diff -urN scons-1.0.1/engine/SCons/Platform/__init__.py scons-1.0.1-haiku/engine/SCons/Platform/__init__.py
old new 76 76 return 'aix' 77 77 elif string.find(sys.platform, 'darwin') != -1: 78 78 return 'darwin' 79 elif string.find(sys.platform, 'haiku') != -1: 80 return 'haiku' 79 81 else: 80 82 return 'posix' 81 83 elif os.name == 'os2': -
engine/SCons/Platform/haiku.py
diff -urN scons-1.0.1/engine/SCons/Platform/haiku.py scons-1.0.1-haiku/engine/SCons/Platform/haiku.py
old new 1 """SCons.Platform.haiku 2 3 Platform-specific initialization for Haiku systems. 4 5 There normally shouldn't be any need to import this module directly. It 6 will usually be imported through the generic SCons.Platform.Platform() 7 selection method. 8 """ 9 10 # 11 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation 12 # 13 # Permission is hereby granted, free of charge, to any person obtaining 14 # a copy of this software and associated documentation files (the 15 # "Software"), to deal in the Software without restriction, including 16 # without limitation the rights to use, copy, modify, merge, publish, 17 # distribute, sublicense, and/or sell copies of the Software, and to 18 # permit persons to whom the Software is furnished to do so, subject to 19 # the following conditions: 20 # 21 # The above copyright notice and this permission notice shall be included 22 # in all copies or substantial portions of the Software. 23 # 24 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY 25 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 26 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 27 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 28 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 29 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 30 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 31 # 32 33 __revision__ = "" 34 35 import posix 36 37 def generate(env): 38 posix.generate(env) 39 env['ENV']['PATH'] = '.:/boot/home/config/bin:/boot/common/bin:/boot/system/bin:/boot/develop/tools/gnupro/bin' 40 # help the linker find the startfiles 41 env['ENV']['BELIBRARIES'] = '/boot/develop/lib/x86' -
script/scons
diff -urN scons-1.0.1/script/scons scons-1.0.1-haiku/script/scons
old new 1 #! / usr/bin/env python1 #! /bin/env python 2 2 # 3 3 # SCons - a Software Constructor 4 4 # -
script/scons-time
diff -urN scons-1.0.1/script/scons-time scons-1.0.1-haiku/script/scons-time
old new 1 #!/ usr/bin/env python1 #!/bin/env python 2 2 # 3 3 # scons-time - run SCons timings and collect statistics 4 4 # -
script/sconsign
diff -urN scons-1.0.1/script/sconsign scons-1.0.1-haiku/script/sconsign
old new 1 #! / usr/bin/env python1 #! /bin/env python 2 2 # 3 3 # SCons - a Software Constructor 4 4 # -
scons-1.0.
diff -urN scons-1.0.1/setup.py scons-1.0.1-haiku/setup.py
old new 28 28 import stat 29 29 import string 30 30 import sys 31 import commands 32 import platform 31 33 32 34 Version = "1.0.1" 33 35 … … 354 356 dir = 'Doc' 355 357 else: 356 358 dir = os.path.join('man', 'man1') 357 self.data_files = [(dir, man_pages)] 358 man_dir = os.path.join(self.install_dir, dir) 359 msg = "Installed SCons man pages into %s" % man_dir 360 Installed.append(msg) 359 if (platform.system() == 'Haiku'): 360 doc_dir = commands.getoutput('finddir B_COMMON_DOCUMENTATION_DIRECTORY') 361 man_dir = os.path.join(doc_dir, dir) 362 else: 363 dir = os.path.join('man', 'man1') 364 self.data_files = [(dir, man_pages)] 365 man_dir = os.path.join(self.install_dir, dir) 366 msg = "Installed SCons man pages into %s" % man_dir 367 Installed.append(msg) 361 368 else: 362 369 self.data_files = [] 363 370
