homebrew-core/Formula/aardvark_shell_utils.rb
Baptiste Fontaine 7b6f2aa8d8 aardvark_shell_utils: add conflict with coreutils
Closes Homebrew/homebrew#42767.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-11 08:59:46 +02:00

23 lines
917 B
Ruby

class AardvarkShellUtils < Formula
desc "Utilities to aid shell scripts or command-line users"
homepage "http://www.laffeycomputer.com/shellutils.html"
url "http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz"
sha256 "aa2b83d9eea416aa31dd1ce9b04054be1a504e60e46426225543476c0ebc3f67"
conflicts_with "coreutils", :because => "both install `realpath` binaries"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make", "install"
end
test do
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
end
end