diff options
| author | Alexis Hildebrandt | 2010-01-24 15:29:42 +0100 |
|---|---|---|
| committer | David Höppner | 2010-02-08 16:31:32 +0100 |
| commit | 4d8e13f5018aec498cef8d02d1ccd97b6a0b06a3 (patch) | |
| tree | 242aa6702461b9f6243f9439de59dbe5acec6643 /Library/Formula | |
| parent | 5dc00f55c044037029719b9820053cb456d1f450 (diff) | |
| download | homebrew-4d8e13f5018aec498cef8d02d1ccd97b6a0b06a3.tar.bz2 | |
Update Formula: aspell. Fix dictionary install.
Add aspell binaries to $PATH when installing dictionaries,
so that the aspell prezip binary finds its prezip-bin.
If it doesn't it fails silently and installs empty dictionaries.
Signed-off-by: David Höppner <0xffea@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/aspell.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb index ff91b19d2..7013211f2 100644 --- a/Library/Formula/aspell.rb +++ b/Library/Formula/aspell.rb @@ -3,8 +3,8 @@ require 'formula' class AspellLang <Formula def install aspell = Formula.factory 'aspell' - system "./configure --vars ASPELL=#{aspell.prefix}/bin/aspell" - system "make install" + system "./configure --vars ASPELL=#{aspell.prefix}/bin/aspell PREZIP=#{aspell.prefix}/bin/prezip" + system "PATH=$PATH:#{aspell.prefix}/bin; make install" end end @@ -363,7 +363,7 @@ class Aspell <Formula system "make install" langopt = ARGV.options.select { |v| v =~ /--lang=/ } - langopt.each do |opt| + langopt.uniq.each do |opt| languages = opt.split('=')[1].split(',') languages.each() do |lang| classname = "Aspell" + lang.capitalize |
