aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/amap.rb
blob: 383514d6a2ccd3ad0e8c50101853485d384cc35a (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
require "formula"

class Amap < Formula
  homepage "https://www.thc.org/thc-amap/"
  url "https://www.thc.org/releases/amap-5.4.tar.gz"
  sha1 "79056f29a3b9e0a21062116aec3e966b1a46d7d3"
  revision 1

  bottle do
    cellar :any
    sha1 "3e5f595cd8e8427dd9e644331538be8c39997500" => :yosemite
    sha1 "8e3eaec3b621aa8cda4f9fae3a80f66bfb53cb47" => :mavericks
    sha1 "6b625caf2d80f33a9175d1e6370ebff677237c29" => :mountain_lion
  end

  depends_on "openssl"

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make"

    # --prefix doesn't work as we want it to so install manually
    bin.install "amap", "amap6", "amapcrap"
    man1.install "amap.1"
  end
end