2014-11-08 02:03:47 +00:00
|
|
|
require "formula"
|
2011-09-15 13:05:25 +00:00
|
|
|
|
|
|
|
class Ape < Formula
|
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"
|
|
|
|
sha1 "a2710108c0130fb4c00777ddde238f68aa4bc0e3"
|
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
|