homebrew-core/Formula/pyenv-ccache.rb
Xu Cheng 79e13e4e0a pyenv-ccache: add ccache deps and test
Closes Homebrew/homebrew#35500.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-03 18:42:04 +00:00

19 lines
500 B
Ruby

class PyenvCcache < Formula
homepage "https://github.com/yyuu/pyenv-ccache"
url "https://github.com/yyuu/pyenv-ccache/archive/v0.0.2.tar.gz"
sha1 "bd68c92315c5aa8e2d596981f0fab31e6c366137"
head "https://github.com/yyuu/pyenv-ccache.git"
depends_on "pyenv"
depends_on "ccache" => :recommended
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
assert shell_output("eval \"$(pyenv init -)\" && pyenv hooks install").include?("ccache.bash")
end
end