diff options
| author | David Holm | 2014-02-04 19:25:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-06 20:47:55 +0000 |
| commit | e519e5f69213ea765a0f28a4c8dbe0a2f39e736c (patch) | |
| tree | 4337ca1215e64a60f5acf8978f99fc7af9562d70 /Library/Formula | |
| parent | ff52a119ae9f8aaf01d7bbf8d3b164501638afd7 (diff) | |
| download | homebrew-e519e5f69213ea765a0f28a4c8dbe0a2f39e736c.tar.bz2 | |
tcsh 6.18.01 (new formula)
Closes #26405.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tcsh.rb | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
