Updates to Erlang formula.
* Install erlang-skels.el for emacs * Always use GitHub download; it's too much faster not to.
This commit is contained in:
parent
5a1bcb6cfe
commit
ecbc97996c
1 changed files with 14 additions and 15 deletions
|
@ -6,22 +6,18 @@ class ErlangManuals <Formula
|
|||
end
|
||||
|
||||
class Erlang <Formula
|
||||
version 'R13B04'
|
||||
url "http://erlang.org/download/otp_src_#{version}.tar.gz"
|
||||
md5 'ca6da4921e438891967900aa6a084341'
|
||||
|
||||
# Use `brew install erlang --HEAD` to download from (faster than tarball) GitHub repo.
|
||||
head "git://github.com/erlang/otp.git", :tag => "OTP_R13B04"
|
||||
# Download from GitHub repo, which is much faster than using the official tarball
|
||||
url "git://github.com/erlang/otp.git"
|
||||
homepage 'http://www.erlang.org'
|
||||
version 'R13B04'
|
||||
@specs = {:tag => "OTP_R13B04"}
|
||||
|
||||
# we can't strip the beam executables or any plugins
|
||||
# there isn't really anything else worth stripping and it takes a really
|
||||
# long time to run `file` over everything in lib because there is almost
|
||||
# 4000 files (and really erlang guys! what's with that?! Most of them should
|
||||
# be in share/erlang!)
|
||||
skip_clean 'lib'
|
||||
# may as well skip this too, everything is just shell scripts
|
||||
skip_clean 'bin'
|
||||
# We can't strip the beam executables or any plugins, there isn't really
|
||||
# anything else worth stripping and it takes a really, long time to run
|
||||
# `file` over everything in lib because there is almost 4000 files (and
|
||||
# really erlang guys! what's with that?! Most of them should be in share/erlang!)
|
||||
# may as well skip bin too, everything is just shell scripts
|
||||
skip_clean ['lib', 'bin']
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
|
@ -45,7 +41,7 @@ class Erlang <Formula
|
|||
end
|
||||
|
||||
if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
|
||||
config_flags << "--enable-darwin-64bit"
|
||||
config_flags << "--enable-darwin-64bit"
|
||||
end
|
||||
|
||||
system "./configure", *config_flags
|
||||
|
@ -54,6 +50,9 @@ class Erlang <Formula
|
|||
system "make install"
|
||||
|
||||
ErlangManuals.new.brew { man.install Dir['man/*'] }
|
||||
|
||||
# See: http://github.com/mxcl/homebrew/issues/issue/1317
|
||||
(lib+"erlang/lib/tools-2.6.5.1/emacs").install "lib/tools/emacs/erlang-skels.el"
|
||||
end
|
||||
|
||||
def test
|
||||
|
|
Loading…
Reference in a new issue