From 54df4613ca869e939ffb9e9f56a1d2d516ec058a Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 10 Aug 2014 17:46:13 -0700 Subject: scons: fix build on Python pre-2.7 Fixes #31407. --- Library/Formula/scons.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula') 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') -- cgit v1.2.3