homebrew-core/Formula/mighttpd2.rb
2015-03-18 17:20:44 +00:00

28 lines
834 B
Ruby

require "language/haskell"
class Mighttpd2 < Formula
include Language::Haskell::Cabal
homepage "http://www.mew.org/~kazu/proj/mighttpd/en/"
url "http://hackage.haskell.org/package/mighttpd2-3.2.4/mighttpd2-3.2.4.tar.gz"
sha256 "3b99ac25a07b8329f6111611a8fa0278d021323d28a4489d0f3ef4fd79042568"
bottle do
sha256 "221b886d90788df97537c4786a55380c220ddb8ec2bce045fad00276db7f5217" => :yosemite
sha256 "0bc66b81501ddf5dd0cad73fd1f3aa44515d94dc0f0759bbe703cb5ceb98992d" => :mavericks
sha256 "949c366d77155dd01228d4f977b9a022a6151c65ab49f10a48c4436989d7d20d" => :mountain_lion
end
depends_on "ghc" => :build
depends_on "cabal-install" => :build
depends_on "gmp"
def install
install_cabal_package
end
test do
system "#{bin}/mighty-mkindex"
assert (testpath/"index.html").file?
end
end