homebrew-core/Formula/fakeroot.rb
Hannu Hartikainen ea692c8720 fakeroot: test functionality, not version
Closes Homebrew/homebrew#28056.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-02 08:34:37 -07:00

23 lines
599 B
Ruby

require 'formula'
class Fakeroot < Formula
homepage 'http://packages.qa.debian.org/f/fakeroot.html'
url 'http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.18.4.orig.tar.bz2'
sha1 '60cdd12ea3a72f3676c0f3930ab908ff1f13b996'
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 `fakeroot whoami`, "root\n"
end
end