From 13ca9342c878ba2e9739967a7cd7fff222f7af41 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 10 Aug 2014 17:46:13 -0700 Subject: [PATCH] scons: fix build on Python pre-2.7 Fixes Homebrew/homebrew#31407. --- Formula/scons.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/scons.rb b/Formula/scons.rb index 62fdf48bc7..5fb533cef4 100644 --- a/Formula/scons.rb +++ b/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')