aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-16 23:10:11 -0500
committerJack Nagel2014-04-16 23:10:11 -0500
commit911aa75a3907e03b3f453fddbd7129ed57602d77 (patch)
tree119a7be30035985c25566216aef66c3361c12301 /Library
parentaef579fb78a07771fd1481c817d988405b0818b4 (diff)
downloadhomebrew-911aa75a3907e03b3f453fddbd7129ed57602d77.tar.bz2
box2d: no need to chdir twice
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/box2d.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/box2d.rb b/Library/Formula/box2d.rb
index 200505aef..55afc54e6 100644
--- a/Library/Formula/box2d.rb
+++ b/Library/Formula/box2d.rb
@@ -8,14 +8,12 @@ class Box2d < Formula
depends_on 'cmake' => :build
def install
- cd 'Box2D_v2.3.0' do
- cd 'Box2D' do
- system "cmake", "-DBOX2D_INSTALL=ON",
- "-DBOX2D_BUILD_SHARED=ON",
- "-DBOX2D_BUILD_EXAMPLES=OFF",
- *std_cmake_args
- system "make install"
- end
+ cd "Box2D_v#{version}/Box2D" do
+ system "cmake", "-DBOX2D_INSTALL=ON",
+ "-DBOX2D_BUILD_SHARED=ON",
+ "-DBOX2D_BUILD_EXAMPLES=OFF",
+ *std_cmake_args
+ system "make install"
end
end
end