homebrew-core/Formula/mongrel2.rb
2018-08-22 22:18:23 +02:00

45 lines
1.7 KiB
Ruby

class Mongrel2 < Formula
desc "Application, language, and network architecture agnostic web server"
homepage "https://mongrel2.org/"
head "https://github.com/mongrel2/mongrel2.git", :branch => "develop"
stable do
url "https://github.com/mongrel2/mongrel2/releases/download/v1.11.0/mongrel2-v1.11.0.tar.bz2"
sha256 "917f2ce07c0908cae63ac03f3039815839355d46568581902377ba7e41257bed"
# ensure unit tests work on 1.11.0. remove after next release
patch do
url "https://github.com/mongrel2/mongrel2/commit/7cb8532e2ecc341d77885764b372a363fbc72eff.patch?full_index=1"
sha256 "fa7be14bf1df8ec3ab8ae164bde8eb703e9e2665645aa627baae2f08c072db9a"
end
end
bottle do
cellar :any
sha256 "cfda97fdc8cf6fa5ee0b4f1b48b07840b1560bd73ced286bb574f838148e6f25" => :mojave
sha256 "67696f654ab1d878ac7c2a3fa254b0ee86c1d444578045997a971ca44189b2fe" => :high_sierra
sha256 "293b0edc8bcc0b7e3a97748a6accbc5000916ed145fd467aeb809303438a207a" => :sierra
sha256 "7a6880cbc814b084a3ac91e379b7a720438951e31a18119c232f976fded229c3" => :el_capitan
sha256 "0b2926fe3d79ab934e95f0e5c067e8bb23b6900b99255482defee9388a0dee07" => :yosemite
sha256 "dd07092a2384c243fcd8c54ed67f2a728f3da698276540fc1c9b201eb3c5cbbb" => :mavericks
end
depends_on "zeromq"
def install
# Build in serial. See:
# https://github.com/Homebrew/homebrew/issues/8719
ENV.deparallelize
# Mongrel2 pulls from these ENV vars instead
ENV["OPTFLAGS"] = "#{ENV.cflags} #{ENV.cppflags}"
ENV["OPTLIBS"] = "#{ENV.ldflags} -undefined dynamic_lookup"
system "make", "all"
system "make", "install", "PREFIX=#{prefix}"
end
test do
system bin/"m2sh", "help"
end
end