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

Context Navigation

  • Back to Ticket #635

Ticket #635: scons-2.2.0.diff

File scons-2.2.0.diff, 4.4 KB (added by kallisti5, 3 years ago)

scons 2.2.0 port diff

  • dev-util/scons/patches/scons-2.2.0.patch

     
     1diff -Naur ./scons-2.2.0/engine/SCons/Platform/__init__.py ./scons-2.2.0-haiku/engine/SCons/Platform/__init__.py 
     2--- ./scons-2.2.0/engine/SCons/Platform/__init__.py     2012-08-05 15:38:31.009961472 +0000 
     3+++ ./scons-2.2.0-haiku/engine/SCons/Platform/__init__.py       2012-09-30 13:28:21.978583552 +0000 
     4@@ -78,6 +78,8 @@ 
     5             return 'aix' 
     6         elif sys.platform.find('darwin') != -1: 
     7             return 'darwin' 
     8+        elif sys.platform.find('haiku') != -1: 
     9+            return 'haiku' 
     10         else: 
     11             return 'posix' 
     12     elif os.name == 'os2': 
     13diff -Naur ./scons-2.2.0/engine/SCons/Platform/haiku.py ./scons-2.2.0-haiku/engine/SCons/Platform/haiku.py 
     14--- ./scons-2.2.0/engine/SCons/Platform/haiku.py        1970-01-01 00:00:00.000000000 +0000 
     15+++ ./scons-2.2.0-haiku/engine/SCons/Platform/haiku.py  2012-09-30 13:30:07.109051904 +0000 
     16@@ -0,0 +1,54 @@ 
     17+"""SCons.Platform.haiku 
     18+ 
     19+Platform-specific initialization for Haiku systems. 
     20+ 
     21+There normally shouldn't be any need to import this module directly. It 
     22+will usually be imported through the generic SCons.Platform.Platform() 
     23+selection method. 
     24+""" 
     25+ 
     26+# 
     27+# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation 
     28+# 
     29+# Permission is hereby granted, free of charge, to any person obtaining 
     30+# a copy of this software and associated documentation files (the 
     31+# "Software"), to deal in the Software without restriction, including 
     32+# without limitation the rights to use, copy, modify, merge, publish, 
     33+# distribute, sublicense, and/or sell copies of the Software, and to 
     34+# permit persons to whom the Software is furnished to do so, subject to 
     35+# the following conditions: 
     36+# 
     37+# The above copyright notice and this permission notice shall be included 
     38+# in all copies or substantial portions of the Software. 
     39+# 
     40+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY 
     41+# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 
     42+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
     43+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
     44+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
     45+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
     46+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     47+# 
     48+ 
     49+__revision__ = "" 
     50+ 
     51+import posix 
     52+import commands 
     53+ 
     54+def findDir( identifier ): 
     55+       return commands.getoutput( 'finddir %s' % identifier ) 
     56+ 
     57+def generate(env): 
     58+       posix.generate(env) 
     59+        
     60+       # path list 
     61+       listPath = [ '.' ] 
     62+       listPath.append( '%s/bin' % findDir( 'B_USER_CONFIG_DIRECTORY' ) ) 
     63+       listPath.append( findDir( 'B_COMMON_BIN_DIRECTORY' ) ) 
     64+       listPath.append( findDir( 'B_SYSTEM_BIN_DIRECTORY' ) ) 
     65+       listPath.append( findDir( 'B_BEOS_BIN_DIRECTORY' ) ) 
     66+       listPath.append( '%s/tools/gnupro/bin' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' ) ) 
     67+       env['ENV']['PATH'] = ':'.join( listPath ) 
     68+        
     69+       # help the linker find the startfiles 
     70+       env['ENV']['BELIBRARIES'] = ':%s/lib/x86' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' ) 
  • dev-util/scons/scons-2.2.0.bep

     
     1DESCRIPTION="Open Source next-generation build tool." 
     2HOMEPAGE="http://www.scons.org/" 
     3LICENSE="MIT" 
     4COPYRIGHT="2001-2012 The SCons Foundation" 
     5SRC_URI="http://superb-dca3.dl.sourceforge.net/project/scons/scons/2.2.0/scons-2.2.0.tar.gz" 
     6CHECKSUM_MD5="f737f474a02d08156c821bd2d4d4b632" 
     7REVISION="2" 
     8STATUS_HAIKU="stable" 
     9DEPEND="dev-lang/python >= 2.5.4" 
     10BUILD { 
     11        cd scons-2.2.0 
     12        for f in "script/scons script/scons-time script/sconsign"; do 
     13                sed -i -e "s@#! /usr/bin/env python@#! /bin/env python@" $f 
     14        done 
     15        python setup.py build 
     16} 
     17 
     18INSTALL { 
     19        if [ ! -z ${DESTDIR} ]; then 
     20                options="${options} --root=${DESTDIR}" 
     21        fi 
     22        options="${options} --prefix=`finddir B_COMMON_DIRECTORY`" 
     23        options="${options} --install-data=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`" 
     24        options="${options} --symlink-scons" 
     25        options="${options} --standard-lib" 
     26        cd scons-2.2.0 
     27        python setup.py install $options 
     28} 

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/