2011-03-10 05:11:03 +00:00
|
|
|
class AardvarkShellUtils < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Utilities to aid shell scripts or command-line users"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.laffeycomputer.com/shellutils.html"
|
|
|
|
url "http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz"
|
|
|
|
sha256 "aa2b83d9eea416aa31dd1ce9b04054be1a504e60e46426225543476c0ebc3f67"
|
2010-11-04 16:37:54 +00:00
|
|
|
|
2015-08-10 22:30:17 +00:00
|
|
|
conflicts_with "coreutils", :because => "both install `realpath` binaries"
|
|
|
|
|
2010-11-04 16:37:54 +00:00
|
|
|
def install
|
2015-08-10 22:30:17 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-11-04 16:37:54 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-11-04 16:37:54 +00:00
|
|
|
end
|
2014-02-14 17:59:01 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "movcpm", shell_output("#{bin}/filebase movcpm.com").strip
|
|
|
|
assert_equal "com", shell_output("#{bin}/fileext movcpm.com").strip
|
|
|
|
assert_equal testpath.to_s, shell_output("#{bin}/realpath .").strip
|
2014-02-14 17:59:01 +00:00
|
|
|
end
|
2010-11-04 16:37:54 +00:00
|
|
|
end
|