diff options
| author | Adam Vandenberg | 2013-05-29 10:26:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-29 10:26:30 -0700 |
| commit | b6dbef5cf07a7b1ad566c41667d9d65f21299610 (patch) | |
| tree | 8f3df7faac22f6fe01f55898443260b40bbfc8c2 /Library | |
| parent | 562a082bf1d27d855d44aa5e8671fe6e03a5478d (diff) | |
| download | homebrew-b6dbef5cf07a7b1ad566c41667d9d65f21299610.tar.bz2 | |
Make nimrod usable
Closes #20078.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nimrod.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Library/Formula/nimrod.rb b/Library/Formula/nimrod.rb index 33701b6b6..011ae735f 100644 --- a/Library/Formula/nimrod.rb +++ b/Library/Formula/nimrod.rb @@ -7,9 +7,27 @@ class Nimrod < Formula head 'https://github.com/Araq/Nimrod.git' + # Install to libexec until an upstream fix appears for + # https://github.com/Araq/Nimrod/issues/459 def install system "/bin/sh", "./build.sh" inreplace 'install.sh', '$1/nimrod', '$1' - system "/bin/sh", "./install.sh", prefix + system "/bin/sh", "./install.sh", libexec + end + + test do + (testpath/'hello.nim').write <<-EOS.undent + echo("Hi!") + EOS + system "#{libexec}/bin/nimrod compile --run hello.nim" + end + + def caveats; <<-EOS.undent + Nimrod has been installed to #{libexec}. + The compiler will currently fail to find system.nim if called through a + symlink. To compile nim files, specify the full path to the compiler: + + #{libexec}/bin/nimrod compile --run hello.nim + EOS end end |
