homebrew-core/Formula/open-mesh.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

25 lines
594 B
Ruby

require 'formula'
class OpenMesh < Formula
homepage 'http://openmesh.org'
url 'http://openmesh.org/fileadmin/openmesh-files/2.1/OpenMesh-2.1.tar.bz2'
md5 'e28ede60a261b92b7da517be71387b39'
head 'http://openmesh.org/svnrepo/OpenMesh/trunk/', :using => :svn
depends_on 'cmake' => :build
depends_on 'qt'
depends_on 'glew'
def install
mkdir 'openmesh-build'
cd 'openmesh-build' do
system "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release .."
system "make install"
end
end
def test
system("#{bin}/mconvert", '-help')
end
end