scons: fix build on Python pre-2.7

Fixes Homebrew/homebrew#31407.
This commit is contained in:
Misty De Meo 2014-08-10 17:46:13 -07:00
parent b2e773135b
commit 13ca9342c8

View file

@ -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')