From 578446cd27b8ad76eb70d8f69f48628515726c2f Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 10 Jan 2017 14:18:48 -0800 Subject: [PATCH] pandoc: fix head build (#8710) --- Formula/pandoc.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Formula/pandoc.rb b/Formula/pandoc.rb index b7e8e42b7a..f476928447 100644 --- a/Formula/pandoc.rb +++ b/Formula/pandoc.rb @@ -21,9 +21,11 @@ class Pandoc < Formula def install cabal_sandbox do - # remove for > 1.19.1; compatibility with directory 1.3 - system "cabal", "get", "pandoc" - mv "pandoc-1.19.1/pandoc.cabal", "pandoc.cabal" + if build.stable? + # remove for > 1.19.1; compatibility with directory 1.3 + system "cabal", "get", "pandoc" + mv "pandoc-1.19.1/pandoc.cabal", "pandoc.cabal" + end args = [] args << "--constraint=cryptonite -support_aesni" if MacOS.version <= :lion