homebrew-core/Formula/gccxml.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

22 lines
584 B
Ruby

require 'formula'
class Gccxml <Formula
# NOTE you don't need to specify the version, usually it is determined
# automatically by examination of the URL, however in this case our auto
# determination magic is inadequete
version 'HEAD'
url "cvs://:pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML:gccxml"
homepage 'http://www.gccxml.org/HTML/Index.html'
depends_on 'cmake'
def install
FileUtils.mkdir 'gccxml-build'
Dir.chdir 'gccxml-build' do
system "cmake .. #{std_cmake_parameters}"
system "make"
system "make install"
end
end
end