Skip to content

Commit

Permalink
Add couchbeam formula
Browse files Browse the repository at this point in the history
  • Loading branch information
aflatter committed Mar 1, 2010
1 parent 7d7e521 commit bd0b708
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Library/Formula/couchbeam.rb
@@ -0,0 +1,17 @@
require 'formula'

class Couchbeam <Formula
homepage 'http://benoitc.github.com/couchbeam/'

url 'http://github.com/benoitc/couchbeam/tarball/0.4.2'
md5 '72dbc30a1ad9a1dd2de22d2f36d910a6'

depends_on 'erlang'

def install
erlang = Formulary.read("erlang").new("erlang")

This comment has been minimized.

Copy link
@adamv

adamv Apr 19, 2010

This should be:
erlang = Formula.factory("erlang")

system "make"
system "cp -R . #{prefix}"

This comment has been minimized.

Copy link
@adamv

adamv Apr 19, 2010

I think this is:
prefix.install Dir["*"]
but I haven't tried this formula yet to make sure that we really want to push everything over to prefix.

system "ln -s #{prefix} #{erlang.lib}/erlang/lib/couchbeam-#{version}"
end
end

1 comment on commit bd0b708

@adamv
Copy link

@adamv adamv commented on bd0b708 Oct 22, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've cleaned this up here:
http://github.com/adamv/homebrew/commits/couchbeam

The problem is that by symlinking into the erlang lib, if you "brew install couchbeam" then "brew rm couchbeam", the symlink stays around.
Then if you "brew install couchbeam" again it fails due to the existing symlink.

Please sign in to comment.