2017-03-19 18:13:38 +00:00
|
|
|
class Less < Formula
|
|
|
|
desc "Pager program similar to more"
|
|
|
|
homepage "http://www.greenwoodsoftware.com/less/index.html"
|
2017-04-23 05:13:21 +00:00
|
|
|
url "https://ftp.gnu.org/gnu/less/less-487.tar.gz"
|
2017-04-17 15:31:28 +00:00
|
|
|
mirror "http://www.greenwoodsoftware.com/less/less-487.tar.gz"
|
|
|
|
sha256 "f3dc8455cb0b2b66e0c6b816c00197a71bf6d1787078adeee0bcf2aea4b12706"
|
2017-03-19 18:13:38 +00:00
|
|
|
|
|
|
|
bottle do
|
2017-09-18 07:30:51 +00:00
|
|
|
sha256 "482f63381cba240e0e90bf9f2d970c39e30a3580e31ff49c8210d6e5a0e7d3ad" => :high_sierra
|
2017-04-17 17:46:51 +00:00
|
|
|
sha256 "9ca07bd92196f4fbf122054b3ee394f43f14173b816a5217f05661453c13dd23" => :sierra
|
|
|
|
sha256 "877f32f255528633a67c4ae76dfda423315473a0780f8f066b7d78af4d58bbc8" => :el_capitan
|
|
|
|
sha256 "5be9c4ad7e6eda596a6828d1f49c70612ac02e2df6a65254e99dc1a34ecf1095" => :yosemite
|
2017-03-19 18:13:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "pcre" => :optional
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
args << "--with-regex=pcre" if build.with? "pcre"
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/lesskey", "-V"
|
|
|
|
end
|
|
|
|
end
|