2014-10-05 17:19:04 +00:00
|
|
|
class Hh < Formula
|
2015-06-15 10:17:58 +00:00
|
|
|
desc "Bash and zsh history suggest box"
|
2014-10-05 17:19:04 +00:00
|
|
|
homepage "https://github.com/dvorka/hstr"
|
2015-06-15 10:17:58 +00:00
|
|
|
url "https://github.com/dvorka/hstr/releases/download/1.17/hh-1.17-src.tgz"
|
|
|
|
sha256 "68eae9ecb022d3f492b85e1479d9b81e3b47b568b7714fd35e4e0fca50234c6e"
|
2014-10-05 17:19:04 +00:00
|
|
|
|
2014-11-04 20:02:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-24 19:47:43 +00:00
|
|
|
sha256 "8e5a229c8733c28bc6655d2fa3c1ac141be27780d851e37c9b512861c53b3113" => :el_capitan
|
2015-06-15 21:14:23 +00:00
|
|
|
sha256 "ceb89140b07409845bd3bd40cafb9dcf65ff65de35a634d013455a100c6e8066" => :yosemite
|
|
|
|
sha256 "192d154897ebce7cb5b55e0ca1c0cc8503ac9bd5e1e5cc2bc8a7f7fe7aee188d" => :mavericks
|
|
|
|
sha256 "50dc71816420d5ec1fdcb90cd9ef82a0ee47208250c8525f72e238aa90a0404c" => :mountain_lion
|
2014-11-04 20:02:56 +00:00
|
|
|
end
|
|
|
|
|
2014-10-05 17:19:04 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/dvorka/hstr.git"
|
2014-12-04 17:01:24 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-10-05 17:19:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "readline"
|
|
|
|
|
|
|
|
def install
|
2015-01-23 09:24:17 +00:00
|
|
|
system "autoreconf", "-fvi" if build.head?
|
2014-10-05 17:19:04 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/".hh_test"
|
|
|
|
path.write "test\n"
|
|
|
|
ENV["HISTFILE"] = path
|
|
|
|
assert_equal "test\n", `#{bin}/hh -n`
|
|
|
|
end
|
|
|
|
end
|