require "formula" require "language/haskell" class Pandoc < Formula include Language::Haskell::Cabal homepage "http://johnmacfarlane.net/pandoc/" url "https://hackage.haskell.org/package/pandoc-1.13.1/pandoc-1.13.1.tar.gz" sha1 "8f3df1977cf9daa848640754515b733c13fd934a" bottle do revision 1 sha1 "acceca6830120f47cc7b1ee9d05988dadc2b5f99" => :yosemite sha1 "5e268465b7024f5241b6a6c88db849b78580d7cf" => :mavericks sha1 "ff4aa7be2a28afb3d404c15a17b266bb4ef8f14b" => :mountain_lion end depends_on "ghc" => :build depends_on "cabal-install" => :build depends_on "gmp" fails_with(:clang) { build 425 } # clang segfaults on Lion def install cabal_sandbox do cabal_install "--only-dependencies" cabal_install "--prefix=#{prefix}" end cabal_clean_lib end test do system "pandoc", "-o", "output.html", prefix/"README" assert (Pathname.pwd/"output.html").read.include? '

Synopsis

' end end