aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-03 12:27:56 -0700
committerAdam Vandenberg2012-09-03 12:27:56 -0700
commit39bc9ff945c158068f72eca173101a51656cdf00 (patch)
tree4840ebcf8ccdd0052350f53ac998405c3b956058 /Library/Formula
parent9d149e6a7151c1d3f11bea70a23ab184b2ce2269 (diff)
downloadhomebrew-39bc9ff945c158068f72eca173101a51656cdf00.tar.bz2
liblas: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/liblas.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/liblas.rb b/Library/Formula/liblas.rb
index 5b21bd2ae..a314a7dde 100644
--- a/Library/Formula/liblas.rb
+++ b/Library/Formula/liblas.rb
@@ -10,9 +10,7 @@ class Liblas < Formula
depends_on 'gdal'
depends_on 'boost'
- def options
- [['--with-test', 'Verify during install with `make test`.']]
- end
+ option 'with-test', 'Verify during install with `make test`'
def install
mkdir 'macbuild' do
@@ -23,7 +21,7 @@ class Liblas < Formula
ENV['Boost_LIBRARY_DIRS'] = "#{HOMEBREW_PREFIX}/lib"
system "cmake", "..", *std_cmake_args
system "make"
- system "make test" if ARGV.include? '--with-test'
+ system "make test" if build.include? 'with-test'
system "make install"
end
end