mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
scons: port haiku patch to python3.
also bump version.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
From c30cc8ab914c08d37fe69d62a46609fd3b728f5b Mon Sep 17 00:00:00 2001
|
||||
From c22b4bd5c5084f002caa5331f3ead300438aef11 Mon Sep 17 00:00:00 2001
|
||||
From: Ingo Weinhold <ingo_weinhold@gmx.de>
|
||||
Date: Fri, 9 Aug 2013 17:46:35 +0200
|
||||
Subject: Add support for the Haiku platform
|
||||
|
||||
|
||||
diff --git a/engine/SCons/Platform/__init__.py b/engine/SCons/Platform/__init__.py
|
||||
index c95f291..2fb360b 100644
|
||||
index 66bff49..455c605 100644
|
||||
--- a/engine/SCons/Platform/__init__.py
|
||||
+++ b/engine/SCons/Platform/__init__.py
|
||||
@@ -78,6 +78,8 @@ def platform_default():
|
||||
@@ -80,6 +80,8 @@ def platform_default():
|
||||
return 'aix'
|
||||
elif sys.platform.find('darwin') != -1:
|
||||
return 'darwin'
|
||||
@@ -92,5 +92,35 @@ index 0000000..547421e
|
||||
+
|
||||
+ env['ENV']['PATH'] = ':'.join(paths)
|
||||
--
|
||||
2.10.2
|
||||
2.24.0
|
||||
|
||||
|
||||
From 6d519c594fbf99cfff5f8e02e275964765e6a236 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 22 Jan 2020 22:35:19 +0100
|
||||
Subject: python3 support
|
||||
|
||||
|
||||
diff --git a/engine/SCons/Platform/haiku.py b/engine/SCons/Platform/haiku.py
|
||||
index 547421e..dd83ef8 100644
|
||||
--- a/engine/SCons/Platform/haiku.py
|
||||
+++ b/engine/SCons/Platform/haiku.py
|
||||
@@ -32,12 +32,12 @@ selection method.
|
||||
|
||||
__revision__ = ""
|
||||
|
||||
-import commands
|
||||
import os
|
||||
-import posix
|
||||
+import subprocess
|
||||
+from . import posix
|
||||
|
||||
def findDir(identifier):
|
||||
- return commands.getoutput('finddir %s' % identifier)
|
||||
+ return str(subprocess.check_output(['finddir', identifier], shell=False).rstrip())
|
||||
|
||||
def generate(env):
|
||||
posix.generate(env)
|
||||
--
|
||||
2.24.0
|
||||
|
||||
@@ -8,8 +8,8 @@ HOMEPAGE="https://www.scons.org/"
|
||||
COPYRIGHT="2001-2019 The SCons Foundation"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/scons/files/scons/$portVersion/scons-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4cea417fdd7499a36f407923d03b4b7000b0f9e8fd7b31b316b9ce7eba9143a5"
|
||||
SOURCE_URI="https://sourceforge.net/projects/scons/files/scons/$portVersion/scons-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7801f3f62f654528e272df780be10c0e9337e897650b62ddcee9f39fde13f8fb"
|
||||
PATCHES="scons-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
@@ -35,6 +35,7 @@ BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python3
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
@@ -50,4 +51,5 @@ INSTALL()
|
||||
--symlink-scons \
|
||||
--standard-lib \
|
||||
--no-install-bat
|
||||
sed -i s/python/python3/ $binDir/scons
|
||||
}
|
||||
Reference in New Issue
Block a user