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
Alexis Hildebrandt 2010-01-24 15:29:42 +01:00 committed by David Höppner
parent d4bf272951
commit 7fc90c51cf
1 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@ require 'formula'
class AspellLang <Formula class AspellLang <Formula
def install def install
aspell = Formula.factory 'aspell' aspell = Formula.factory 'aspell'
system "./configure --vars ASPELL=#{aspell.prefix}/bin/aspell" system "./configure --vars ASPELL=#{aspell.prefix}/bin/aspell PREZIP=#{aspell.prefix}/bin/prezip"
system "make install" system "PATH=$PATH:#{aspell.prefix}/bin; make install"
end end
end end
@ -363,7 +363,7 @@ class Aspell <Formula
system "make install" system "make install"
langopt = ARGV.options.select { |v| v =~ /--lang=/ } langopt = ARGV.options.select { |v| v =~ /--lang=/ }
langopt.each do |opt| langopt.uniq.each do |opt|
languages = opt.split('=')[1].split(',') languages = opt.split('=')[1].split(',')
languages.each() do |lang| languages.each() do |lang|
classname = "Aspell" + lang.capitalize classname = "Aspell" + lang.capitalize