forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
Sorry, something went wrong. |
||
system "make" | ||
system "cp -R . #{prefix}" | ||
This comment has been minimized.
Sorry, something went wrong.
adamv
|
||
system "ln -s #{prefix} #{erlang.lib}/erlang/lib/couchbeam-#{version}" | ||
end | ||
end |
1 comment
on commit bd0b708
There was a problem hiding this comment.
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.
This should be:
erlang = Formula.factory("erlang")