aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 17:06:20 +0800
committerMike McQuaid2015-01-03 18:42:04 +0000
commit4b05a3c9d6ff0bb87cedab4c8f527a2535eed5b5 (patch)
treeb01c5c41e5706db1880f1ca3ee4c6b9d2ca32519 /Library/Formula
parentd839efd9f900a11ceba03d6dfa5acfd794403a9f (diff)
downloadhomebrew-4b05a3c9d6ff0bb87cedab4c8f527a2535eed5b5.tar.bz2
pyenv-ccache: add ccache deps and test
Closes #35500. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyenv-ccache.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/pyenv-ccache.rb b/Library/Formula/pyenv-ccache.rb
index 7e32bc808..3becd54ef 100644
--- a/Library/Formula/pyenv-ccache.rb
+++ b/Library/Formula/pyenv-ccache.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class PyenvCcache < Formula
homepage "https://github.com/yyuu/pyenv-ccache"
url "https://github.com/yyuu/pyenv-ccache/archive/v0.0.2.tar.gz"
@@ -8,9 +6,14 @@ class PyenvCcache < Formula
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