2012-03-30 23:51:59 +00:00
|
|
|
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'
|
|
|
|
|
2012-09-27 18:55:41 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
|
2012-03-30 23:51:59 +00:00
|
|
|
def install
|
|
|
|
system "./bootstrap"
|
2014-01-27 00:37:36 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-03-30 23:51:59 +00:00
|
|
|
"--disable-static",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:34:48 +00:00
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "root", shell_output("#{bin}/fakeroot whoami").strip
|
2012-03-30 23:51:59 +00:00
|
|
|
end
|
|
|
|
end
|