aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2014-08-10 17:46:13 -0700
committerMisty De Meo2014-08-10 17:56:38 -0700
commit54df4613ca869e939ffb9e9f56a1d2d516ec058a (patch)
tree3eeabf742ad89455a02b2a50b2d2ac194394324b
parent684e907debbf95d27143fd6945b9574b8f70e048 (diff)
downloadhomebrew-54df4613ca869e939ffb9e9f56a1d2d516ec058a.tar.bz2
scons: fix build on Python pre-2.7
Fixes #31407.
-rw-r--r--Library/Formula/scons.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/scons.rb b/Library/Formula/scons.rb
index 62fdf48bc..5fb533cef 100644
--- a/Library/Formula/scons.rb
+++ b/Library/Formula/scons.rb
@@ -4,6 +4,7 @@ class Scons < Formula
homepage 'http://www.scons.org'
url 'https://downloads.sourceforge.net/scons/scons-2.3.2.tar.gz'
sha1 '2937f20b86d0c5f86cf31e1fa378307ed34fc20a'
+ revision 1
bottle do
cellar :any
@@ -12,6 +13,13 @@ class Scons < Formula
sha1 "50344e59e5f99675239891ba92aaed4a70323b5e" => :lion
end
+ # Upstream patch to fix compatibility with Python pre-2.7
+ # https://bitbucket.org/scons/scons/commits/1444ad9af1d3b6148451af3f0596cba0ad352c50
+ patch :p2 do
+ url "https://bitbucket.org/scons/scons/commits/1444ad9af1d3b6148451af3f0596cba0ad352c50/raw/"
+ sha1 "022a40b4226d85d82a8145d08443495f31a9ed34"
+ end
+
def install
bin.mkpath # Script won't create this if it doesn't already exist
man1.install gzip('scons-time.1', 'scons.1', 'sconsign.1')