homebrew-core/Formula/pk.rb
Baptiste Fontaine f6b75c1852 pk: better test
Closes Homebrew/homebrew#40146.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-05-28 00:56:29 +02:00

20 lines
599 B
Ruby

class Pk < Formula
homepage "https://github.com/johnmorrow/pk"
url "https://github.com/johnmorrow/pk/releases/download/v1.0.2/pk-1.0.2.tar.gz"
sha256 "0431fe8fcbdfb3ac8ccfdef3d098d6397556f8905b7dec21bc15942a8fc5f110"
depends_on "argp-standalone"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "test"
system "make", "install"
end
test do
assert_equal "B C D", pipe_output("#{bin}/pk 2..4", "A B C D E", 0).chomp
end
end