diff options
| author | David Peek | 2013-08-13 09:47:48 +1000 | 
|---|---|---|
| committer | Samuel John | 2013-08-13 09:50:58 +0200 | 
| commit | b17372265ba7d58e27df67732352e94331e2323e (patch) | |
| tree | 3276ea29e9b2ab9efd40d73f8c816cf3ef163c9e | |
| parent | 85742ba59175b3f3bc8838d143419593240bd966 (diff) | |
| download | homebrew-b17372265ba7d58e27df67732352e94331e2323e.tar.bz2 | |
neko: Minor fixes to neko formula
Closes #21852.
Signed-off-by: Samuel John <github@SamuelJohn.de>
| -rw-r--r-- | Library/Formula/neko.rb | 12 | 
1 files changed, 4 insertions, 8 deletions
| diff --git a/Library/Formula/neko.rb b/Library/Formula/neko.rb index ec51925e4..3b363ae79 100644 --- a/Library/Formula/neko.rb +++ b/Library/Formula/neko.rb @@ -15,30 +15,26 @@ class Neko < Formula      ENV.deparallelize      system "make", "os=osx", "LIB_PREFIX=#{HOMEBREW_PREFIX}", "INSTALL_FLAGS=" -    (lib/'neko').install 'bin/libneko.dylib'      include.install Dir['vm/neko*.h']      neko = lib/'neko'      neko.install Dir['bin/*']      # Symlink into bin so libneko.dylib resolves correctly for custom prefix      bin.mkpath -    for file in ['neko', 'nekoc', 'nekoml', 'nekotools'] do +    %w(neko nekoc nekoml nekotools).each do |file|        (bin/file).make_relative_symlink(neko/file)      end -  end - -  def custom_prefix? -    HOMEBREW_PREFIX.to_s != '/usr/local' +    (lib/'libneko.dylib').make_relative_symlink(neko/'libneko.dylib')    end    test do -    ENV["NEKOPATH"] = "#{HOMEBREW_PREFIX}/lib/neko" if custom_prefix? +    ENV["NEKOPATH"] = "#{HOMEBREW_PREFIX}/lib/neko"      system "#{bin}/neko", "#{HOMEBREW_PREFIX}/lib/neko/test.n"    end    def caveats      s = '' -    if custom_prefix? +    if HOMEBREW_PREFIX.to_s != '/usr/local'        s << <<-EOS.undent          You must add the following line to your .bashrc or equivalent:            export NEKOPATH="#{HOMEBREW_PREFIX}/lib/neko" | 
