diff options
| author | Max Nordlund | 2014-08-24 01:00:31 +0200 |
|---|---|---|
| committer | Misty De Meo | 2014-08-24 00:13:10 -0700 |
| commit | 04a4b0cc20e685b1afb976a6d077e1c287e7df0b (patch) | |
| tree | 32a13f0861383158aca979158db88f66dcd60236 /Library/Formula | |
| parent | 516be00372bda010334719756fe55ec271ab2637 (diff) | |
| download | homebrew-04a4b0cc20e685b1afb976a6d077e1c287e7df0b.tar.bz2 | |
mighttpd2 3.2.0 (new formula)
This adds [mighttpd2][], a high-performance HTTP server for static files and CGI
scripts, written in Haskell.
[mighttpd2]: http://mew.org/~kazu/proj/mighttpd/en/
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mighttpd2.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/mighttpd2.rb b/Library/Formula/mighttpd2.rb new file mode 100644 index 000000000..385dc24c1 --- /dev/null +++ b/Library/Formula/mighttpd2.rb @@ -0,0 +1,27 @@ +require "formula" +require "language/haskell" + +class Mighttpd2 < Formula + include Language::Haskell::Cabal + + homepage "http://mew.org/~kazu/proj/mighttpd/en/" + url "http://hackage.haskell.org/package/mighttpd2-3.2.0/mighttpd2-3.2.0.tar.gz" + sha1 "878a9e03ad3a62221dab22cb6412ae446368e1bd" + + depends_on "ghc" => :build + depends_on "cabal-install" => :build + depends_on "gmp" + + def install + cabal_sandbox do + cabal_install "--only-dependencies" + cabal_install "--prefix=#{prefix}" + end + cabal_clean_lib + end + + test do + system "#{bin}/mighty-mkindex" + assert (testpath/"index.html").file? + end +end |
