2016-03-15 16:22:00 +00:00
|
|
|
class Buku < Formula
|
|
|
|
desc "Command-line bookmark manager"
|
|
|
|
homepage "https://github.com/jarun/Buku"
|
2016-07-15 00:33:07 +00:00
|
|
|
url "https://github.com/jarun/Buku/archive/v2.3.tar.gz"
|
|
|
|
sha256 "0fe0cf1d9e62c3b492f38cd11dd47b567c82aef1ebe04e097055a6f708ec64c9"
|
2016-03-15 16:22:00 +00:00
|
|
|
|
2016-03-16 04:09:17 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-06-13 01:23:39 +00:00
|
|
|
sha256 "bdff4a2239ff386b6582ab331bad1ed1252b66a307629e030741f8a63a506268" => :el_capitan
|
|
|
|
sha256 "422601e1eaa0b54152c89c6e97d9a01cd83020a9153725ccfd17277215b1f3cb" => :yosemite
|
|
|
|
sha256 "928bb6c1dbb51c408ff38bc812fc8c7852c0fee4a890f4e9f6720d521ba9db3b" => :mavericks
|
2016-03-16 04:09:17 +00:00
|
|
|
end
|
|
|
|
|
2016-03-15 16:22:00 +00:00
|
|
|
depends_on :python3
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2016-05-15 16:18:45 +00:00
|
|
|
bash_completion.install "auto-completion/bash/buku-completion.bash"
|
|
|
|
fish_completion.install "auto-completion/fish/buku.fish"
|
|
|
|
zsh_completion.install "auto-completion/zsh/_buku"
|
2016-03-15 16:22:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-04-22 17:19:16 +00:00
|
|
|
ENV["XDG_DATA_HOME"] = "#{testpath}/.local/share"
|
2016-03-15 16:22:00 +00:00
|
|
|
system "#{bin}/buku", "-a", "https://github.com/Homebrew/homebrew"
|
2016-05-29 00:37:52 +00:00
|
|
|
assert_match "https://github.com/Homebrew/homebrew", shell_output("#{bin}/buku --noprompt -s github")
|
2016-03-15 16:22:00 +00:00
|
|
|
end
|
|
|
|
end
|