23 lines
817 B
Ruby
23 lines
817 B
Ruby
class RandomizeLines < Formula
|
|
desc "Reads and randomize lines from a file (or STDIN)"
|
|
homepage "https://arthurdejong.org/rl/"
|
|
url "https://arthurdejong.org/rl/rl-0.2.7.tar.gz"
|
|
sha256 "1cfca23d6a14acd190c5a6261923757d20cb94861c9b2066991ec7a7cae33bc8"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "e61c986a537a9f0c77b1382add72096e72f7447ef50ac8acc01320014681e691" => :el_capitan
|
|
sha256 "fbffa3106ec600894f313f9770f1336227e2bf149f10c487344f26b4bf8f1093" => :yosemite
|
|
sha256 "ec4fc7a2361d75b1b76d0b4edfdb39aae104a9c054eaae07f0b0ee55762fe485" => :mavericks
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "echo -e \"1\n2\n4\" | \"#{bin}/rl\" -c 1"
|
|
end
|
|
end
|