homebrew-core/Formula/ape.rb

39 lines
1.3 KiB
Ruby
Raw Normal View History

class Ape < Formula
desc "Ajax Push Engine"
homepage "http://www.ape-project.org/"
url "https://github.com/APE-Project/APE_Server/archive/v1.1.2.tar.gz"
sha256 "c5f6ec0740f20dd5eb26c223149fc4bade3daadff02a851e2abb7e00be97db42"
2014-11-08 02:54:26 +00:00
bottle do
2016-02-23 11:52:50 +00:00
cellar :any_skip_relocation
2016-09-26 19:01:58 +00:00
sha256 "dd095fa1465e0a20613481720e26a5917c08882b340a18ab4d351a95e5eb3a3e" => :sierra
2016-02-23 11:52:50 +00:00
sha256 "259b19e211ff6d6ffc376db0b3696a912a6ac48dca83cbcbe525c78e56755c82" => :el_capitan
2015-11-19 15:45:31 +00:00
sha256 "3859216e566e6faaccc7183d737527dd4785260a698c8344520e7951baebca76" => :yosemite
sha256 "83c7ef23309dec2e7bd4bec3ae75b6f0e04fcfecbda489c90810b6948eb3bb28" => :mavericks
sha256 "136d65f58cb956b95a6ccb9517a5affe69c3491d283478708ca88091abb3103f" => :mountain_lion
2014-11-08 02:54:26 +00:00
end
fails_with :clang do
2013-11-07 20:04:24 +00:00
build 500
cause "multiple configure and compile errors"
end
def install
system "./build.sh"
# The Makefile installs a configuration file in the bindir which our bot red-flags
(prefix+"etc").mkdir
inreplace "Makefile", "bin/ape.conf $(bindir)", "bin/ape.conf $(prefix)/etc"
system "make", "install", "prefix=#{prefix}"
end
def caveats; <<-EOS.undent
The default configuration file is stored in #{etc}. You should load aped with:
aped --cfg #{etc}/ape.conf
EOS
end
test do
system "#{bin}/aped", "--version"
end
end