2010-11-04 16:37:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class AardvarkShellUtils < Formula
|
2010-11-04 16:37:54 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8cee29059038ebec96c3a97978d18a5a4941da06'
|
2010-11-04 16:37:54 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2014-02-14 17:59:01 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
output = `#{bin}/filebase movcpm.com`
|
|
|
|
assert_equal "movcpm\n", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
|
|
|
|
output = `#{bin}/fileext movcpm.com`
|
|
|
|
assert_equal "com\n", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
|
|
|
|
output = `#{bin}/realpath .`
|
|
|
|
assert_equal "#{testpath}\n", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
2010-11-04 16:37:54 +00:00
|
|
|
end
|