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>
This commit is contained in:
Alexis Hildebrandt 2010-01-24 15:29:42 +01:00 committed by David Höppner
parent d4bf272951
commit 7fc90c51cf

View file

@ -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