blob: 6bb0f0c6c6bc16d15ebe5ccc0a264fd4bb24470b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | 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
 |