diff options
| -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" |
