homebrew-core/Formula/pyenv-ccache.rb

26 lines
767 B
Ruby

class PyenvCcache < Formula
desc "Make Python build faster, using the leverage of `ccache`"
homepage "https://github.com/pyenv/pyenv-ccache"
url "https://github.com/pyenv/pyenv-ccache/archive/v0.0.2.tar.gz"
sha256 "ebfb8a5ed754df485b3f391078c5dc913f0587791a5e3815e61078f0db180b9e"
license "MIT"
head "https://github.com/pyenv/pyenv-ccache.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, all: "8cb5b918ec485fd99f0af48056be2d00d2c1bf2055f7f5890dbf6335086be4b5"
end
depends_on "ccache"
depends_on "pyenv"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
output = shell_output("eval \"$(pyenv init -)\" && pyenv hooks install && ls")
assert_match "ccache.bash", output
end
end