homebrew-core/Formula/tcsh.rb
David Holm b976f8f10c tcsh 6.18.01 (new formula)
Closes .

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-06 20:47:55 +00:00

24 lines
590 B
Ruby

require "formula"
class Tcsh < Formula
homepage 'http://www.tcsh.org/'
url 'ftp://ftp.astron.com/pub/tcsh/tcsh-6.18.01.tar.gz'
sha1 'eee2035645737197ff8059c84933a75d23cd76f9'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/'test.csh').write <<-EOS.undent
#!#{bin}/tcsh
set ARRAY=( "t" "e" "s" "t" )
foreach i ( `seq $#ARRAY` )
echo -n $ARRAY[$i]
end
EOS
assert_equal "test", `#{bin}/tcsh ./test.csh`
end
end