2016-03-15 16:22:00 +00:00
|
|
|
class Buku < Formula
|
|
|
|
desc "Command-line bookmark manager"
|
|
|
|
homepage "https://github.com/jarun/Buku"
|
2016-05-29 00:37:52 +00:00
|
|
|
url "https://github.com/jarun/Buku/archive/v2.1.tar.gz"
|
|
|
|
sha256 "2b80de34a8fb47d430421a2a27f80bea5195dd89d979f5911c035281998a07d5"
|
2016-03-15 16:22:00 +00:00
|
|
|
|
2016-03-16 04:09:17 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-05-15 18:15:40 +00:00
|
|
|
sha256 "dbd8fa932bfa207a4a30c4b3541ab850aa0b003e634651737458f0444cd45775" => :el_capitan
|
|
|
|
sha256 "c463659c95a3fa76ccdfc345cdc105e814bb00a2ad2b104d5a5ed683a72f0a6d" => :yosemite
|
|
|
|
sha256 "24eff66c1db880ec5ce58329d4b7c0b8d2a3c000bbe74cce75209cea2a4f008a" => :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
|