pandoc: use revised cabal file from Hackage
directory 1.3 compatibility Closes #8641. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
92dd29d9bb
commit
c571c02785
1 changed files with 10 additions and 3 deletions
|
@ -7,6 +7,7 @@ class Pandoc < Formula
|
|||
homepage "https://pandoc.org/"
|
||||
url "https://hackage.haskell.org/package/pandoc-1.19.1/pandoc-1.19.1.tar.gz"
|
||||
sha256 "9d22db0a1536de0984f4a605f1a28649e68d540e6d892947d9644987ecc4172a"
|
||||
revision 1
|
||||
head "https://github.com/jgm/pandoc.git"
|
||||
|
||||
bottle do
|
||||
|
@ -19,9 +20,15 @@ class Pandoc < Formula
|
|||
depends_on "cabal-install" => :build
|
||||
|
||||
def install
|
||||
args = []
|
||||
args << "--constraint=cryptonite -support_aesni" if MacOS.version <= :lion
|
||||
install_cabal_package *args
|
||||
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"
|
||||
|
||||
args = []
|
||||
args << "--constraint=cryptonite -support_aesni" if MacOS.version <= :lion
|
||||
install_cabal_package *args
|
||||
end
|
||||
(bash_completion/"pandoc").write `#{bin}/pandoc --bash-completion`
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue