diff options
| author | Martin Kuehl | 2010-03-01 20:04:42 +0100 | 
|---|---|---|
| committer | Adam Vandenberg | 2010-06-17 16:53:17 -0700 | 
| commit | 5b5e62f545bc04cb7a757ebbdc67d57572b32611 (patch) | |
| tree | d5a5744957627aff1ef7dee6c8efe43937167773 /Library/Formula | |
| parent | 017862f684d0fb2cc8387d29a1ccbbf225e09946 (diff) | |
| download | homebrew-5b5e62f545bc04cb7a757ebbdc67d57572b32611.tar.bz2 | |
Updated formula: Io.
* Io switched its build system to `cmake`; adapt to that.
* Extract the `libsgml` formula.
* Install documentation.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/io.rb | 42 | 
1 files changed, 10 insertions, 32 deletions
diff --git a/Library/Formula/io.rb b/Library/Formula/io.rb index f9dbb4bb1..107ca6620 100644 --- a/Library/Formula/io.rb +++ b/Library/Formula/io.rb @@ -4,41 +4,19 @@ class Io <Formula    head 'git://github.com/stevedekorte/io.git'    homepage 'http://iolanguage.com/' -  def hardcoded_prefixes; %w[ -    addons/Cairo/build.io -    addons/Flux/io/Flux.io -    addons/MySQL/build.io -    addons/SGML/source/libsgml-1.1.4/acgeneral.m4 -    addons/SGML/source/libsgml-1.1.4/configure -    addons/SGML/source/libsgml-1.1.4/libsgml.doxy -    addons/SGML/source/libsgml-1.1.4/Makefile -    addons/SGML/source/libsgml-1.1.4/Makefile.in -    addons/SGML/source/libsgml-1.1.4_osx/acgeneral.m4 -    addons/SGML/source/libsgml-1.1.4_osx/config/configure -    addons/SGML/source/libsgml-1.1.4_osx/libsgml.doxy -    addons/SGML/source/libsgml-1.1.4_osx/Makefile -    addons/SGML/source/libsgml-1.1.4_osx/Makefile.in -    addons/TagDB/build.io -    build/AddonBuilder.io -    docs/IoGuide.html -    extras/osx/osx.xcodeproj/project.pbxproj -    extras/osxmain/osxmain.xcodeproj/project.pbxproj -    libs/basekit/source/Hash_fnv.c -    libs/basekit/source/Hash_fnv.h -    libs/iovm/source/IoSystem.c -    Makefile -    tools/io/docs2html.io] <<  -    'extras/SyntaxHighlighters/Io.tmbundle/Commands/Run Io Program (ioServer).plist' -  end +  depends_on 'cmake' +  depends_on 'libsgml'    def install -    inreplace ['addons/SGML/build.io', 'addons/TagDB/build.io'], -      'sudo ', '' +    ENV.j1 +    FileUtils.mkdir 'io-build' -    inreplace hardcoded_prefixes, '/usr/local', prefix +    Dir.chdir 'io-build' do +      system "cmake .. #{std_cmake_parameters}" +      system "make install" +    end -    system "make vm" -    system "make" -    system "make install" +    FileUtils.rm_f Dir['docs/*.pdf'] +    doc.install Dir['docs/*']    end  end  | 
