pandoc: fix head build (#8710)

This commit is contained in:
ilovezfs 2017-01-10 14:18:48 -08:00 committed by GitHub
parent 03d3dcc6db
commit 578446cd27

View file

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