2011-09-15 13:05:25 +00:00
|
|
|
class Ape < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Ajax Push Engine"
|
2014-11-08 02:03:47 +00:00
|
|
|
homepage "http://www.ape-project.org/"
|
|
|
|
url "https://github.com/APE-Project/APE_Server/archive/v1.1.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "c5f6ec0740f20dd5eb26c223149fc4bade3daadff02a851e2abb7e00be97db42"
|
2013-03-28 20:46:43 +00:00
|
|
|
|
2014-11-08 02:54:26 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "142d7a4e40a2496c922a5ac0eb1aaeab22b25e70" => :yosemite
|
|
|
|
sha1 "db7e3d51666dfe7e9d728c1e37f0f07eb20fc36f" => :mavericks
|
|
|
|
sha1 "bc4cdbc2a6212b4070a06c356982a68b1b4f5867" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-03-28 20:46:43 +00:00
|
|
|
fails_with :clang do
|
2013-11-07 20:04:24 +00:00
|
|
|
build 500
|
2014-11-08 02:03:47 +00:00
|
|
|
cause "multiple configure and compile errors"
|
2013-03-28 20:46:43 +00:00
|
|
|
end
|
2011-09-15 13:05:25 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./build.sh"
|
2014-11-08 02:03:47 +00:00
|
|
|
# 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"
|
2011-09-15 13:05:25 +00:00
|
|
|
system "make", "install", "prefix=#{prefix}"
|
|
|
|
end
|
2014-11-08 02:03:47 +00:00
|
|
|
|
|
|
|
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
|
2011-09-15 13:05:25 +00:00
|
|
|
end
|