aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bindfs.rb
blob: c56fe6cb8cae2a44bb99decd4cb17ae5204fddcf (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
38
39
40
41
42
require "formula"

class Bindfs < Formula
  homepage "http://bindfs.org/"
  url "http://bindfs.org/downloads/bindfs-1.12.4.tar.gz"
  sha1 "c518fdaf4e22472f0b8140c5a338493c444026b6"

  bottle do
    cellar :any
    sha1 "6709966a00d8bb146b5bd4e75dc37dc38db7bb88" => :mavericks
    sha1 "c04026b339551e371fcd5993a9fb4ce332b45af8" => :mountain_lion
    sha1 "d19667195246207f7b1eb98bae042e54e8dc26ac" => :lion
  end

  head do
    url "https://github.com/mpartel/bindfs.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  depends_on "pkg-config" => :build
  depends_on "osxfuse"

  def install
    if build.head?
      system "./autogen.sh", "--disable-debug",
                             "--disable-dependency-tracking",
                             "--prefix=#{prefix}"
    else
      system "./configure", "--disable-debug",
                            "--disable-dependency-tracking",
                            "--prefix=#{prefix}"
    end

    system "make install"
  end

  test do
    system "#{bin}/bindfs", "-V"
  end
end