homebrew-core/Formula/aardvark_shell_utils.rb

23 lines
803 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class AardvarkShellUtils < Formula
desc "Utilities to aid shell scripts or command-line users"
homepage 'http://www.laffeycomputer.com/shellutils.html'
2013-01-26 21:55:15 +00:00
url 'http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz'
sha1 '8cee29059038ebec96c3a97978d18a5a4941da06'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make install"
end
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
end
end