scons: Tool-specific initialization for MinGW-w64.
This commit is contained in:
parent
67e575ca78
commit
ba1439cbf7
@ -1,8 +1,9 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
# Contributor: Renato Silva <br.renatosilva@gmail.com>
|
||||
|
||||
pkgname=scons
|
||||
pkgver=2.3.4
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Extensible Python-based build utility"
|
||||
arch=('any')
|
||||
groups=('base-devel')
|
||||
@ -11,13 +12,16 @@ license=('MIT')
|
||||
depends=('python2')
|
||||
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
scons-2.3.4-cyglink-msys2.patch
|
||||
scons-2.3.4-msys2-plat-mingw-env.patch)
|
||||
scons-2.3.4-msys2-plat-mingw-env.patch
|
||||
mingw_w64.py)
|
||||
md5sums=('91fbbb67c2c65b03c746601baac4a6a5'
|
||||
'8449f7f389bdd54f07d8ab27a8b7b48f'
|
||||
'4eb3a62a2fff6cac1cccd45a21cbcd8a')
|
||||
'4eb3a62a2fff6cac1cccd45a21cbcd8a'
|
||||
'7f2e8590c45e17a927f861051fc762b1')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cp ../mingw_w64.py engine/SCons/Tool/
|
||||
|
||||
# avoid errors when re-running makepkg
|
||||
rm -f engine/SCons/Platform/msys.py engine/SCons/Tool/msyslink.py
|
||||
|
||||
21
scons/mingw_w64.py
Normal file
21
scons/mingw_w64.py
Normal file
@ -0,0 +1,21 @@
|
||||
"""SCons.Tool.mingw_w64
|
||||
|
||||
Tool-specific initialization for MinGW-w64 (http://mingw-w64.sourceforge.net)
|
||||
|
||||
"""
|
||||
|
||||
#
|
||||
# Copyright (c) 2015 Renato Silva
|
||||
# This module is based on SCons.Tool.mingw and is licensed under the same terms
|
||||
#
|
||||
|
||||
__revision__ = "unknown"
|
||||
from SCons.Tool.mingw import *
|
||||
import SCons.Tool.mingw
|
||||
import SCons.Util
|
||||
|
||||
def find(env):
|
||||
path = env.WhereIs('gcc')
|
||||
if (path):
|
||||
return path
|
||||
return SCons.Util.WhereIs('gcc')
|
||||
Loading…
x
Reference in New Issue
Block a user