From 4b05a3c9d6ff0bb87cedab4c8f527a2535eed5b5 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 3 Jan 2015 17:06:20 +0800 Subject: pyenv-ccache: add ccache deps and test Closes #35500. Signed-off-by: Mike McQuaid --- Library/Formula/pyenv-ccache.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3