diff options
| author | Max Howell | 2009-12-05 15:42:26 +0000 | 
|---|---|---|
| committer | Max Howell | 2009-12-05 15:59:37 +0000 | 
| commit | bbfc3bfb1af8577c45561961ee64992d994f970c (patch) | |
| tree | 53a32247832073fcb4a2d863e98eba28d2f88ebc /Library/Formula/io.rb | |
| parent | 2f80e013da4daa3e5d87a4b983700d71ae3f6666 (diff) | |
| download | homebrew-bbfc3bfb1af8577c45561961ee64992d994f970c.tar.bz2 | |
Force IO to install into the prefix of our choosing
Diffstat (limited to 'Library/Formula/io.rb')
| -rw-r--r-- | Library/Formula/io.rb | 35 | 
1 files changed, 34 insertions, 1 deletions
diff --git a/Library/Formula/io.rb b/Library/Formula/io.rb index f4fa29a47..fed4300ad 100644 --- a/Library/Formula/io.rb +++ b/Library/Formula/io.rb @@ -3,8 +3,41 @@ require 'formula'  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 +    docs/IoReference.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 +    def install +    inreplace 'addons/SGML/build.io', 'sudo ', '' +    inreplace 'addons/TagDB/build.io', 'sudo ', '' + +    hardcoded_prefixes.each{ |fn| inreplace fn, '/usr/local', prefix } +      system "make vm"      system "make"      system "make install"  | 
