Skip to content
Browse files

Add support for Homebrew as an alternative to MacPorts

  • Loading branch information...
1 parent 426c967 commit 4b1b0bc486192fea88f47d6992b26bf694567ae3 @kballard committed Jun 3, 2010
Showing with 7 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +1 −0 README.txt
  3. +2 −0 build/AddonBuilder.io
  4. +1 −0 build/Project.io
View
3 Makefile
@@ -223,6 +223,9 @@ port:
urpmi:
_build/binaries/io$(BINARY_SUFFIX) build.io urpmi
+brew:
+ _build/binaries/io$(BINARY_SUFFIX) build.io brew
+
.DEFAULT:
./_build/binaries/io_static$(BINARY_SUFFIX) build.io -a $@
View
1 README.txt
@@ -14,6 +14,7 @@ OSX
---
cd to Io folder
make vm; sudo make install; sudo make port; sudo make install
+If Homebrew is being used instead of MacPorts, replace that last command with "make brew"
Debian or Ubuntu
----------------
View
2 build/AddonBuilder.io
@@ -70,6 +70,7 @@ AddonBuilder := Object clone do(
ebuilds := Map clone
pkgs := Map clone
rpms := Map clone
+ kegs := Map clone
init := method(
self folder := Directory clone
@@ -192,6 +193,7 @@ AddonBuilder := Object clone do(
if(ebuilds at(p), commands atPut("emerge", "emerge -DN1 " .. ebuilds at(p)))
if(pkgs at(p), commands atPut("port", "port install " .. pkgs at(p)))
if(rpms at(p), commands atPut("urpmi", "urpmi " .. rpms at(p) .. " && ldconfig"))
+ if(kegs at(p), commands atPut("brew", "brew install " .. kegs at(p)))
)
commands
)
View
1 build/Project.io
@@ -228,4 +228,5 @@ Project := Object clone do(
emerge := method(installDependenciesFor("emerge"))
port := method(installDependenciesFor("port"))
urpmi := method(installDependenciesFor("urpmi"))
+ brew := method(installDependenciesFor("brew"))
)

0 comments on commit 4b1b0bc

Please sign in to comment.
Something went wrong with that request. Please try again.