From f556c7abac1046a193b4347707d2d7a34eb5ec9c Mon Sep 17 00:00:00 2001 From: Casper Hollingberry Date: Mon, 30 Mar 2015 23:19:19 -0700 Subject: texmath 0.8.0.2 (new formula) Closes #38221. Signed-off-by: Mike McQuaid --- Library/Formula/texmath.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Library/Formula/texmath.rb (limited to 'Library') diff --git a/Library/Formula/texmath.rb b/Library/Formula/texmath.rb new file mode 100644 index 000000000..fe3b94438 --- /dev/null +++ b/Library/Formula/texmath.rb @@ -0,0 +1,27 @@ +require "language/haskell" + +class Texmath < Formula + include Language::Haskell::Cabal + + homepage "http://johnmacfarlane.net/texmath.html" + url "https://hackage.haskell.org/package/texmath-0.8.0.2/texmath-0.8.0.2.tar.gz" + sha256 "47b9c3fdceed63c5d63987db7e511a38ea8ddf8591786ef56efea734a3c31f86" + + 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}", "-fexecutable" + end + cabal_clean_lib + end + + test do + assert_match "2", pipe_output("texmath", "a^2 + b^2 = c^2") + end +end -- cgit v1.2.3