From 6fee4c2441d4d4b0417c6bbd165607d45378541b Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sat, 8 Oct 2016 09:36:14 -0400 Subject: [PATCH] pypy: fix Xcode 8 clock_gettime issue Fixed in upstream default and release-5.x branches. Upstream asked us to apply this commit to 5.4.1 (https://bitbucket.org/pypy/pypy/issues/2407/#comment-31210382). Closes #5689. Signed-off-by: Zhiming Wang --- Formula/pypy.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Formula/pypy.rb b/Formula/pypy.rb index 4bc412a9e0..c2088a3a9f 100644 --- a/Formula/pypy.rb +++ b/Formula/pypy.rb @@ -1,10 +1,22 @@ class Pypy < Formula desc "Highly performant implementation of Python 2 in Python" homepage "http://pypy.org/" - url "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.4.1-src.tar.bz2" - sha256 "45dbc50c81498f6f1067201b8fc887074b43b84ee32cc47f15e7db17571e9352" head "https://bitbucket.org/pypy/pypy", :using => :hg + stable do + url "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.4.1-src.tar.bz2" + sha256 "45dbc50c81498f6f1067201b8fc887074b43b84ee32cc47f15e7db17571e9352" + + patch do + # patch for Xcode 8 clock_gettime issue + # remove when next release is out + # https://bitbucket.org/pypy/pypy/issues/2407/#comment-31210382 + # https://bitbucket.org/pypy/pypy/commits/91b44e61f628 + url "https://raw.githubusercontent.com/Homebrew/formula-patches/05b5cf6/pypy/patch-clock_gettime.diff" + sha256 "f9ae7918620740238e404e73007da06cb9bf16c21ed698f91e02432086ec4432" + end + end + bottle do cellar :any sha256 "ea22b917547f7187cb4180e06e10cc5d9367b8901aad8aaa2762020a50a25513" => :el_capitan