aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-29 20:33:37 -0700
committerAdam Vandenberg2010-06-29 20:35:41 -0700
commit1317028615ce9d6092d5bac4f64fbc2356f0a302 (patch)
tree61fe737a76dcf662ea4b5619e46e4f70f4ab7fd2 /Library
parent61965111086ca35dd538af95a1f5c0bf928e56db (diff)
downloadhomebrew-1317028615ce9d6092d5bac4f64fbc2356f0a302.tar.bz2
Updates to Erlang formula.
* Install erlang-skels.el for emacs * Always use GitHub download; it's too much faster not to.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/erlang.rb29
1 files changed, 14 insertions, 15 deletions
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index 3acef5602..eaece5fd9 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -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