From e519e5f69213ea765a0f28a4c8dbe0a2f39e736c Mon Sep 17 00:00:00 2001 From: David Holm Date: Tue, 4 Feb 2014 19:25:26 +0100 Subject: tcsh 6.18.01 (new formula) Closes #26405. Signed-off-by: Mike McQuaid --- Library/Formula/tcsh.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Library/Formula/tcsh.rb (limited to 'Library') diff --git a/Library/Formula/tcsh.rb b/Library/Formula/tcsh.rb new file mode 100644 index 000000000..db418b981 --- /dev/null +++ b/Library/Formula/tcsh.rb @@ -0,0 +1,24 @@ +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 -- cgit v1.2.3