homebrew-core/Formula/hstr.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

class Hstr < Formula
desc "Bash and zsh history suggest box"
homepage "https://github.com/dvorka/hstr"
url "https://github.com/dvorka/hstr/archive/2.0.tar.gz"
sha256 "8d93ed8bfee1a979e8d06646e162b70316e2097e16243636d81011ba1000627a"
2019-01-08 09:36:38 +00:00
revision 1
2018-11-29 02:30:26 +00:00
bottle do
cellar :any
2019-01-13 10:59:11 +00:00
sha256 "6bc65753efae0a89c2b9828e37928a879cd56884a03b0b1bbf34e8056590efc0" => :mojave
sha256 "8674fdfe45a193a76a7c67ef4e7df70c08ccca8ab60194acc67be2622bfeed15" => :high_sierra
sha256 "855047dba9374bce6e7d880aa7847a77a4429d86ad611992c4f94ad207d0d11b" => :sierra
2018-11-29 02:30:26 +00:00
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "readline"
def install
system "autoreconf", "-fvi"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
ENV["HISTFILE"] = testpath/".hh_test"
(testpath/".hh_test").write("test\n")
assert_equal "test", shell_output("#{bin}/hh -n").chomp
end
end