require "formula" 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" sha1 "a2710108c0130fb4c00777ddde238f68aa4bc0e3" bottle do cellar :any sha1 "142d7a4e40a2496c922a5ac0eb1aaeab22b25e70" => :yosemite sha1 "db7e3d51666dfe7e9d728c1e37f0f07eb20fc36f" => :mavericks sha1 "bc4cdbc2a6212b4070a06c356982a68b1b4f5867" => :mountain_lion end fails_with :clang do 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