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>master
parent
d4bf272951
commit
7fc90c51cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue