blob: e0f401a46b555f40a3613a5335b6a94952b616a1 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 | require "formula"
class Ape < Formula
  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
 |