diff options
| author | Baptiste Fontaine | 2015-04-05 20:18:37 +0200 |
|---|---|---|
| committer | Xu Cheng | 2015-04-06 17:33:54 +0800 |
| commit | 2ed51fc82bd0554aa41e011d3395adc98ee7aefc (patch) | |
| tree | 7633d8085ceca54cabefb8ec4953d0af3b3b05e6 /Library | |
| parent | f8b794d8248aa43357a3c2c9a85d1ab8f9af296c (diff) | |
| download | homebrew-2ed51fc82bd0554aa41e011d3395adc98ee7aefc.tar.bz2 | |
ssed: test added
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ssed.rb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Formula/ssed.rb b/Library/Formula/ssed.rb index 0f30a617c..c0b1e4acb 100644 --- a/Library/Formula/ssed.rb +++ b/Library/Formula/ssed.rb @@ -1,9 +1,9 @@ -require 'formula' - class Ssed < Formula - homepage 'http://sed.sourceforge.net/grabbag/ssed/' - url 'http://sed.sourceforge.net/grabbag/ssed/sed-3.62.tar.gz' - sha1 '6bdc4cd07780e397787c0d494c962827bb407fa2' + homepage "http://sed.sourceforge.net/grabbag/ssed/" + url "http://sed.sourceforge.net/grabbag/ssed/sed-3.62.tar.gz" + sha256 "af7ff67e052efabf3fd07d967161c39db0480adc7c01f5100a1996fec60b8ec4" + + conflicts_with "gnu-sed", :because => "both install share/info/sed.info" def install system "./configure", "--disable-dependency-tracking", @@ -11,6 +11,11 @@ class Ssed < Formula "--mandir=#{man}", "--infodir=#{info}", "--program-prefix=s" - system "make install" + system "make", "install" + end + + test do + assert_equal "homebrew", + pipe_output("#{bin}/ssed s/neyd/mebr/", "honeydew", 0).chomp end end |
