diff options
| author | Mike McQuaid | 2014-12-19 18:52:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-19 19:31:02 +0000 |
| commit | c529b9c51ab69fc56c57d8f25eacc0901a134dea (patch) | |
| tree | dfda357772ce172ebb40b10a742af7ff3c817671 /Library/Formula | |
| parent | 17683eac31d5c0d6fc82942730be051c61d2f165 (diff) | |
| download | homebrew-c529b9c51ab69fc56c57d8f25eacc0901a134dea.tar.bz2 | |
carthage 0.3.1 (new formula)
Closes #34807.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/carthage.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/carthage.rb b/Library/Formula/carthage.rb new file mode 100644 index 000000000..5487fb1a1 --- /dev/null +++ b/Library/Formula/carthage.rb @@ -0,0 +1,26 @@ +require "formula" + +class Carthage < Formula + homepage "https://github.com/Carthage/Carthage" + url "https://github.com/Carthage/Carthage.git", :tag => "0.3.1", + :shallow => false + head "https://github.com/Carthage/Carthage.git", :shallow => false + + depends_on :xcode => ["6.1.1", :build] + + def install + # Carthage likes to do stuff with submodules itself so we need a "real" + # git clone rather than letting it play with our cache. + cp_r cached_download/".git", "." + + system "make", "prefix_install", "PREFIX=#{prefix}" + + # Carthage puts some stuff in /tmp so clean it up after we're done. + system "make", "clean" + end + + test do + (testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"' + system "#{bin}/carthage", "update" + end +end |
