aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fakeroot.rb
blob: 4f97eed4c408647661e7863678a4f0212000f2c3 (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
require "formula"

class Fakeroot < Formula
  homepage "https://tracker.debian.org/pkg/fakeroot"

  stable do
    url "https://mirrors.kernel.org/debian/pool/main/f/fakeroot/fakeroot_1.18.4.orig.tar.bz2"
    mirror "http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.18.4.orig.tar.bz2"
    sha1 "60cdd12ea3a72f3676c0f3930ab908ff1f13b996"

    # Monitor this with each release
    # https://github.com/Homebrew/homebrew/issues/33400#issuecomment-59827330
    depends_on MaximumMacOSRequirement => :mavericks
  end

  head "https://anonscm.debian.org/git/users/clint/fakeroot.git"

  depends_on :autoconf
  depends_on :automake
  depends_on :libtool

  def install
    system "./bootstrap"
    system "./configure", "--disable-dependency-tracking",
                          "--disable-static",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    assert_equal "root", shell_output("#{bin}/fakeroot whoami").strip
  end
end