mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Updated bep and patch files for scons 2.0.1 from Roland Plüss.
This commit is contained in:
@@ -12,19 +12,19 @@ diff -Naur scons-2.0.1/engine/SCons/Platform/__init__.py scons-2.0.1-haiku/engin
|
||||
elif os.name == 'os2':
|
||||
diff -Naur scons-2.0.1/engine/SCons/Platform/haiku.py scons-2.0.1-haiku/engine/SCons/Platform/haiku.py
|
||||
--- scons-2.0.1/engine/SCons/Platform/haiku.py 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ scons-2.0.1-haiku/engine/SCons/Platform/haiku.py 2011-07-26 06:05:29.487325696 +0000
|
||||
@@ -0,0 +1,41 @@
|
||||
+++ scons-2.0.1-haiku/engine/SCons/Platform/haiku.py 2011-07-26 22:13:19.692584448 +0000
|
||||
@@ -0,0 +1,54 @@
|
||||
+"""SCons.Platform.haiku
|
||||
+
|
||||
+Platform-specific initialization for Haiku systems.
|
||||
+
|
||||
+There normally shouldn't be any need to import this module directly. It
|
||||
+There normally shouldn't be any need to import this module directly. It
|
||||
+will usually be imported through the generic SCons.Platform.Platform()
|
||||
+selection method.
|
||||
+"""
|
||||
+
|
||||
+#
|
||||
+# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation
|
||||
+# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
|
||||
+#
|
||||
+# Permission is hereby granted, free of charge, to any person obtaining
|
||||
+# a copy of this software and associated documentation files (the
|
||||
@@ -49,36 +49,22 @@ diff -Naur scons-2.0.1/engine/SCons/Platform/haiku.py scons-2.0.1-haiku/engine/S
|
||||
+__revision__ = ""
|
||||
+
|
||||
+import posix
|
||||
+import commands
|
||||
+
|
||||
+def findDir( identifier ):
|
||||
+ return commands.getoutput( 'finddir %s' % identifier )
|
||||
+
|
||||
+def generate(env):
|
||||
+ posix.generate(env)
|
||||
+ env['ENV']['PATH'] = '.:/boot/home/config/bin:/boot/common/bin:/boot/system/bin:/boot/develop/tools/gnupro/bin'
|
||||
+
|
||||
+ # path list
|
||||
+ listPath = [ '.' ]
|
||||
+ listPath.append( '%s/bin' % findDir( 'B_USER_CONFIG_DIRECTORY' ) )
|
||||
+ listPath.append( findDir( 'B_COMMON_BIN_DIRECTORY' ) )
|
||||
+ listPath.append( findDir( 'B_SYSTEM_BIN_DIRECTORY' ) )
|
||||
+ listPath.append( findDir( 'B_BEOS_BIN_DIRECTORY' ) )
|
||||
+ listPath.append( '%s/tools/gnupro/bin' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' ) )
|
||||
+ env['ENV']['PATH'] = ':'.join( listPath )
|
||||
+
|
||||
+ # help the linker find the startfiles
|
||||
+ env['ENV']['BELIBRARIES'] = '/boot/develop/lib/x86'
|
||||
diff -Naur scons-2.0.1/script/scons scons-2.0.1-haiku/script/scons
|
||||
--- scons-2.0.1/script/scons 2010-08-17 06:02:53.027000832 +0000
|
||||
+++ scons-2.0.1-haiku/script/scons 2011-07-26 06:06:01.259522560 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
#
|
||||
# SCons - a Software Constructor
|
||||
#
|
||||
diff -Naur scons-2.0.1/script/scons-time scons-2.0.1-haiku/script/scons-time
|
||||
--- scons-2.0.1/script/scons-time 2010-08-17 06:02:53.026738688 +0000
|
||||
+++ scons-2.0.1-haiku/script/scons-time 2011-07-26 06:06:03.308281344 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/bin/env python
|
||||
#
|
||||
# scons-time - run SCons timings and collect statistics
|
||||
#
|
||||
diff -Naur scons-2.0.1/script/sconsign scons-2.0.1-haiku/script/sconsign
|
||||
--- scons-2.0.1/script/sconsign 2010-08-17 06:02:53.027000832 +0000
|
||||
+++ scons-2.0.1-haiku/script/sconsign 2011-07-26 06:06:14.344195072 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
#
|
||||
# SCons - a Software Constructor
|
||||
#
|
||||
+ env['ENV']['BELIBRARIES'] = ':%s/lib/x86' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' )
|
||||
|
||||
@@ -4,25 +4,25 @@ LICENSE="MIT"
|
||||
COPYRIGHT="2001-2010 The SCons Foundation"
|
||||
SRC_URI="http://ovh.dl.sourceforge.net/sourceforge/scons/scons-2.0.1.tar.gz"
|
||||
CHECKSUM_MD5="beca648b894cdbf85383fffc79516d18"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-lang/python >= 2.5.4"
|
||||
BUILD {
|
||||
cd scons-2.0.1
|
||||
for f in "script/scons script/scons-time script/sconsign"; do
|
||||
sed -i -e "s@#! /usr/bin/env python@#! /bin/env python@" $f
|
||||
done
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd scons-2.0.1
|
||||
if [ ! -z ${DESTDIR} ];then
|
||||
python setup.py install --root=${DESTDIR} \
|
||||
--prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--symlink-scons \
|
||||
--standard-lib
|
||||
else
|
||||
python setup.py install --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--symlink-scons \
|
||||
--standard-lib
|
||||
if [ ! -z ${DESTDIR} ]; then
|
||||
options="${options} --root=${DESTDIR}"
|
||||
fi
|
||||
options="${options} --prefix=`finddir B_COMMON_DIRECTORY`"
|
||||
options="${options} --install-data=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`"
|
||||
options="${options} --symlink-scons"
|
||||
options="${options} --standard-lib"
|
||||
cd scons-2.0.1
|
||||
python setup.py install $options
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user