aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlex Burka2015-01-01 17:13:45 -0500
committerMisty De Meo2015-01-01 14:51:48 -0800
commit83d1678aeb0b5ad083aecd046eea0bad77a11f67 (patch)
tree67cd436960c3abf05af85914397b6d3a5d0edc92 /Library/Formula
parente9a8f0a1555669a75c953027798fff76defd4e29 (diff)
downloadhomebrew-83d1678aeb0b5ad083aecd046eea0bad77a11f67.tar.bz2
nimrod: v0.10.2, alias as nim
Closes #35435. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nimrod.rb53
1 files changed, 8 insertions, 45 deletions
diff --git a/Library/Formula/nimrod.rb b/Library/Formula/nimrod.rb
index c8150399b..070a33887 100644
--- a/Library/Formula/nimrod.rb
+++ b/Library/Formula/nimrod.rb
@@ -1,18 +1,12 @@
require 'formula'
class Nimrod < Formula
- homepage "http://nimrod-lang.org/"
+ homepage "http://nim-lang.org/"
- stable do
- url "http://nimrod-lang.org/download/nimrod_0.9.6.zip"
- sha1 "a0be99cd67ca2283c6cf076bb7edee74d2f32dc5"
+ url "http://nim-lang.org/download/nim-0.10.2.zip"
+ sha1 "0a54d6d7f257cdade5bf950d318066959c48a6dc"
- # This patch fixes an OS X-specific codegen issue.
- # See http://github.com/Araq/Nimrod/issues/1701
- patch :DATA
- end
-
- head "https://github.com/Araq/Nimrod.git", :branch => "devel"
+ head "https://github.com/Araq/Nim.git", :branch => "devel"
bottle do
cellar :any
@@ -22,50 +16,19 @@ class Nimrod < Formula
end
def install
- # For some reason the mingw variable doesn't get passed through,
- # so hardcode it. This is fixed in HEAD.
- inreplace "compiler/nimrod.ini", "${mingw}", "mingw32" unless build.head?
-
system "/bin/sh", "build.sh"
system "/bin/sh", "install.sh", prefix
- if build.stable?
- (prefix/"nimrod").install "compiler"
- bin.install_symlink prefix/"nimrod/bin/nimrod"
- else
- (prefix/"nim").install "compiler"
- bin.install_symlink prefix/"nim/bin/nim"
- bin.install_symlink prefix/"nim/bin/nim" => "nimrod"
- end
+ (prefix/"nim").install "compiler"
+ bin.install_symlink prefix/"nim/bin/nim"
+ bin.install_symlink prefix/"nim/bin/nim" => "nimrod"
end
test do
(testpath/"hello.nim").write <<-EOS.undent
echo("Hi!")
EOS
- system "#{bin}/nimrod", "compile", "--run", "hello.nim"
+ system "#{bin}/nim", "compile", "--run", "hello.nim"
end
end
-__END__
---- a/lib/pure/concurrency/cpuinfo.nim
-+++ b/lib/pure/concurrency/cpuinfo.nim
-@@ -20,15 +20,15 @@ when defined(linux):
- import linux
-
- when defined(freebsd) or defined(macosx):
-- {.emit:"#include <sys/types.h>".}
-+ {.emit:"#include <sys/types.h>\n".}
-
- when defined(openbsd) or defined(netbsd):
-- {.emit:"#include <sys/param.h>".}
-+ {.emit:"#include <sys/param.h>\n".}
-
- when defined(macosx) or defined(bsd):
- # we HAVE to emit param.h before sysctl.h so we cannot use .header here
- # either. The amount of archaic bullshit in Poonix based OSes is just insane.
-- {.emit:"#include <sys/sysctl.h>".}
-+ {.emit:"#include <sys/sysctl.h>\n".}
- const
- CTL_HW = 6
- HW_AVAILCPU = 25