HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #441

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  
    7676            return 'aix' 
    7777        elif string.find(sys.platform, 'darwin') != -1: 
    7878            return 'darwin' 
     79        elif string.find(sys.platform, 'haiku') != -1: 
     80            return 'haiku' 
    7981        else: 
    8082            return 'posix' 
    8183    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 
     3Platform-specific initialization for Haiku systems. 
     4 
     5There normally shouldn't be any need to import this module directly.  It 
     6will usually be imported through the generic SCons.Platform.Platform() 
     7selection 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 
     35import posix 
     36 
     37def 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 python 
     1#! /bin/env python 
    22# 
    33# SCons - a Software Constructor 
    44# 
  • 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 python 
     1#!/bin/env python 
    22# 
    33# scons-time - run SCons timings and collect statistics 
    44# 
  • script/sconsign

    diff -urN scons-1.0.1/script/sconsign scons-1.0.1-haiku/script/sconsign
    old new  
    1 #! /usr/bin/env python 
     1#! /bin/env python 
    22# 
    33# SCons - a Software Constructor 
    44# 
  • scons-1.0.

    diff -urN scons-1.0.1/setup.py scons-1.0.1-haiku/setup.py
    old new  
    2828import stat 
    2929import string 
    3030import sys 
     31import commands 
     32import platform 
    3133 
    3234Version = "1.0.1" 
    3335 
    … …  
    354356                dir = 'Doc' 
    355357            else: 
    356358                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) 
    361368        else: 
    362369            self.data_files = [] 
    363370 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/