aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Hildebrandt2010-08-08 16:31:33 +0200
committerAdam Vandenberg2010-09-16 09:29:42 -0700
commitaf54688851b73f541fcf3c071235a257fa05c295 (patch)
tree7cb0f3deeb94b112ae145f9dfc821023f609cc1d
parent197355f6284e8cd940b233b219d6c6e0fc8f2abd (diff)
downloadhomebrew-af54688851b73f541fcf3c071235a257fa05c295.tar.bz2
Update Formula: aspell
Some changes on how language dictionary formulae are handled so updating to new dictionary version can be handled by the brew-aspell-dictionaries script in contributions. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/aspell.rb271
1 files changed, 150 insertions, 121 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb
index f5db5ec8e..d743a4870 100644
--- a/Library/Formula/aspell.rb
+++ b/Library/Formula/aspell.rb
@@ -8,372 +8,401 @@ class AspellLang <Formula
end
end
-class AspellAf <AspellLang
+class Aspell <Formula
+ url 'ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz'
+ homepage 'http://aspell.net/'
+ md5 'bc80f0198773d5c05086522be67334eb'
+
+ def options
+ [['--lang=XX,...',
+ "Install dictionary for language XX where XX is the country code, e.g.: --lang=en,es\n\tAvailable country codes: #{available_languages.join(', ')} "]]
+ end
+
+ def install
+ fails_with_llvm
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+
+ ARGV.options_only.select { |v| v =~ /--lang=/ }.uniq.each do |opt|
+ languages = opt.split('=')[1].split(',')
+ languages.each do |lang|
+ formula = Object.const_get("Aspell_" + lang).new
+ formula.brew { formula.install }
+ end
+ end
+ end
+
+ # TODO remove when options works properly
+ def caveats; <<-EOS.undent
+ Dictionaries are not automatically installed, please specify the languages
+ for which you want dictionaries to be installed with the --lang option, e.g:
+ % brew install aspell --lang=en,es
+
+ For the following languages aspell dictionaries are available:
+ #{available_languages.join(', ')}
+ EOS
+ end
+end
+
+# BEGIN generated with brew-aspell-dictionaries
+class Aspell_af <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/af/aspell-af-0.50-0.tar.bz2'
md5 'bde617a195e70364f96eea71cf71a333'
end
-class AspellAm <AspellLang
+class Aspell_am <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/am/aspell6-am-0.03-1.tar.bz2'
md5 '7e28708b53bd4bc3008dfb04237413ac'
end
-class AspellAr <AspellLang
+class Aspell_ar <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ar/aspell6-ar-1.2-0.tar.bz2'
md5 '154cf762bafdd02db419b62191138738'
end
-class AspellAz <AspellLang
+class Aspell_ast <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/ast/aspell6-ast-0.01.tar.bz2'
+ md5 '28955414fef2bc3e5395d45e051bdcd9'
+end
+class Aspell_az <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/az/aspell6-az-0.02-0.tar.bz2'
md5 '24d9d46c8fc23197666a43a7962a7b0d'
end
-class AspellBe <AspellLang
+class Aspell_be <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/be/aspell5-be-0.01.tar.bz2'
md5 '61314a1672f98571b32d23486bbd43be'
end
-class AspellBg <AspellLang
+class Aspell_bg <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/bg/aspell6-bg-4.1-0.tar.bz2'
md5 'e22f0634c48eae9c9fbdf9d569b8235c'
end
-class AspellBn <AspellLang
+class Aspell_bn <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/bn/aspell6-bn-0.01.1-1.tar.bz2'
md5 '5ea70ec74e67f49b2844d306ddf38388'
end
-class AspellBr <AspellLang
+class Aspell_br <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/br/aspell-br-0.50-2.tar.bz2'
md5 '800c7a28e09bd7734d1501cb7a91ad8f'
end
-class AspellCa <AspellLang
+class Aspell_ca <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ca/aspell6-ca-2.1.5-1.tar.bz2'
md5 '153d26f724866909c6faf49eecefe8b3'
end
-class AspellCs <AspellLang
+class Aspell_cs <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/cs/aspell6-cs-20040614-1.tar.bz2'
md5 '50f0c2b7b6fcfe47bb647ad8993d2fe8'
end
-class AspellCy <AspellLang
+class Aspell_csb <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2'
+ md5 '0d4b408076115b7516c68887a563be68'
+end
+class Aspell_cy <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/cy/aspell-cy-0.50-3.tar.bz2'
md5 'd59fee193dba87973b38ac2862a090bb'
end
-class AspellDa <AspellLang
+class Aspell_da <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/da/aspell5-da-1.4.42-1.tar.bz2'
md5 'd14c03dca23b572606279d7317b022d0'
end
-class AspellDe <AspellLang
+class Aspell_de <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/de/aspell6-de-20030222-1.tar.bz2'
md5 '5950c5c8a36fc93d4d7616591bace6a6'
end
-class AspellEl <AspellLang
+class Aspell_de_alt <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/de-alt/aspell6-de-alt-2.1-1.tar.bz2'
+ md5 '13245374b03088608d729fd15c58cd7a'
+end
+class Aspell_el <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/el/aspell-el-0.50-3.tar.bz2'
md5 '0ea2c42ceb9b91f7f5de2c017234ad37'
end
-class AspellEn <AspellLang
+class Aspell_en <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2'
md5 '16449e0a266e1ecc526b2f3cd39d4bc2'
end
-class AspellEo <AspellLang
+class Aspell_eo <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/eo/aspell6-eo-2.1.20000225a-2.tar.bz2'
md5 '455719c49ffeb51b204767de6e1d9ef6'
end
-class AspellEs <AspellLang
+class Aspell_es <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.9a-1.tar.bz2'
md5 '473c980181e1930d075c6111a7a68e49'
end
-class AspellEt <AspellLang
+class Aspell_et <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/et/aspell6-et-0.1.21-1.tar.bz2'
md5 '82929f49ddc1149b6ef2bde4c3c12bcd'
end
-class AspellFa <AspellLang
+class Aspell_fa <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2'
md5 '47c8599e529fc291a096c12f0b8372ca'
end
-class AspellFi <AspellLang
+class Aspell_fi <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/fi/aspell6-fi-0.7-0.tar.bz2'
md5 '6d1032116982c0efab1af8fce83259c0'
end
-class AspellFo <AspellLang
+class Aspell_fo <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/fo/aspell5-fo-0.2.16-1.tar.bz2'
md5 'a57e8870c272931da41cd1fc5a291f3d'
end
-class AspellFr <AspellLang
+class Aspell_fr <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/fr/aspell-fr-0.50-3.tar.bz2'
md5 '53a2d05c4e8f7fabd3cefe24db977be7'
end
-class AspellFy <AspellLang
+class Aspell_fy <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/fy/aspell6-fy-0.12-0.tar.bz2'
md5 '7c356ab9a52e546bdf75af8774b6d9bf'
end
-class AspellGa <AspellLang
- url 'http://ftp.gnu.org/gnu/aspell/dict/ga/aspell5-ga-4.4-0.tar.bz2'
- md5 '85eecae7fe14e06145d897e1fb736366'
+class Aspell_ga <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/ga/aspell5-ga-4.5-0.tar.bz2'
+ md5 '174385bbc0b67ae75a5581c8617827b6'
end
-class AspellGd <AspellLang
+class Aspell_gd <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/gd/aspell5-gd-0.1.1-1.tar.bz2'
md5 '171673ec92270f58f945c4317286220b'
end
-class AspellGl <AspellLang
+class Aspell_gl <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/gl/aspell6-gl-0.5a-2.tar.bz2'
md5 '7502e37bf2a1c4a0a05f9a6e755e7c21'
end
-class AspellGrc <AspellLang
+class Aspell_grc <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/grc/aspell6-grc-0.02-0.tar.bz2'
md5 '9a4ecc08569e4de53d35f16d1da02099'
end
-class AspellGu <AspellLang
+class Aspell_gu <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/gu/aspell6-gu-0.03-0.tar.bz2'
md5 'dd9e466b23ced916d6bb89decc919976'
end
-class AspellGv <AspellLang
+class Aspell_gv <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2'
md5 '139b5aa1f5ea85fb7a4be0338039e959'
end
-class AspellHe <AspellLang
+class Aspell_he <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/he/aspell6-he-1.0-0.tar.bz2'
md5 '71791e0299787391d2ace1c850b5b434'
end
-class AspellHi <AspellLang
+class Aspell_hi <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/hi/aspell6-hi-0.02-0.tar.bz2'
md5 '4fd4aedbda587bbc4eecb9d3ea57591d'
end
-class AspellHr <AspellLang
+class Aspell_hil <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/hil/aspell5-hil-0.11-0.tar.bz2'
+ md5 '6ce553007a773a1c2ffd68b660ddb60b'
+end
+class Aspell_hr <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/hr/aspell-hr-0.51-0.tar.bz2'
md5 '7d2fb9af47266884c731691123a95a8d'
end
-class AspellHsb <AspellLang
- url 'http://ftp.gnu.org/gnu/aspell/dict/hsb/aspell6-hsb-0.01-1.tar.bz2'
- md5 'b7a0e5fa5843f080bfce2b441f46d981'
+class Aspell_hsb <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/hsb/aspell6-hsb-0.02-0.tar.bz2'
+ md5 'f018c68a688600aeb9cb53747021703a'
end
-class AspellHu <AspellLang
+class Aspell_hu <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/hu/aspell6-hu-0.99.4.2-0.tar.bz2'
md5 '4f4e1e98019a89d0ebf43ec59ae68254'
end
-class AspellHy <AspellLang
+class Aspell_hy <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/hy/aspell6-hy-0.10.0-0.tar.bz2'
md5 '41af00aed5078bb4755728c7dec834a2'
end
-class AspellIa <AspellLang
+class Aspell_ia <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ia/aspell-ia-0.50-1.tar.bz2'
md5 '36846c747a4cb7874b00f37752e83f25'
end
-class AspellId <AspellLang
+class Aspell_id <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/id/aspell5-id-1.2-0.tar.bz2'
md5 '9136385a6ce0ff0d113427ab3c974254'
end
-class AspellIs <AspellLang
+class Aspell_is <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/is/aspell-is-0.51.1-0.tar.bz2'
md5 '1e0b6125d91d7edad710482ddcce2d23'
end
-class AspellIt <AspellLang
+class Aspell_it <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/it/aspell6-it-2.2_20050523-0.tar.bz2'
md5 'b1217299a0b67d1e121494d7ec18a88d'
end
-class AspellKu <AspellLang
+class Aspell_ku <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ku/aspell5-ku-0.20-1.tar.bz2'
md5 '8d714169b131fc6ca8a783c6acc471ae'
end
-class AspellKy <AspellLang
+class Aspell_ky <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ky/aspell6-ky-0.01-0.tar.bz2'
md5 '83ed490464521361867546f9ad4cbaf2'
end
-class AspellLa <AspellLang
+class Aspell_la <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/la/aspell6-la-20020503-0.tar.bz2'
md5 'd42c679b95ba9b094aaa65f118834bf6'
end
-class AspellLt <AspellLang
+class Aspell_lt <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/lt/aspell6-lt-1.2.1-0.tar.bz2'
md5 'bfde48c27cac3ae8ce3a1818ba68a2d8'
end
-class AspellLv <AspellLang
+class Aspell_lv <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/lv/aspell6-lv-0.5.5-1.tar.bz2'
md5 'cd120047c0b160a40361cbf03913e91f'
end
-class AspellMg <AspellLang
+class Aspell_mg <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mg/aspell5-mg-0.03-0.tar.bz2'
md5 'f75e3b51a6935cd4be19c1ea452217a1'
end
-class AspellMi <AspellLang
+class Aspell_mi <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mi/aspell-mi-0.50-0.tar.bz2'
md5 '8b1a07032ee086662bfe44a2e0459db4'
end
-class AspellMk <AspellLang
+class Aspell_mk <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mk/aspell-mk-0.50-0.tar.bz2'
md5 '50e15df6b68e78d1baa789f517b2401b'
end
-class AspellMl <AspellLang
+class Aspell_ml <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ml/aspell6-ml-0.03-1.tar.bz2'
md5 '5ac03b3b0d0618b0aa470c9f5ac46866'
end
-class AspellMn <AspellLang
+class Aspell_mn <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mn/aspell6-mn-0.06-2.tar.bz2'
md5 'fd1ed8b4e57c858c62c4f74a687bba90'
end
-class AspellMr <AspellLang
+class Aspell_mr <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mr/aspell6-mr-0.10-0.tar.bz2'
md5 '489ac0c368d3012525134758f8572cac'
end
-class AspellMs <AspellLang
+class Aspell_ms <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ms/aspell-ms-0.50-0.tar.bz2'
md5 'cfdd94bba4781766c5d870202abd60e0'
end
-class AspellMt <AspellLang
+class Aspell_mt <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/mt/aspell-mt-0.50-0.tar.bz2'
md5 '6df98356e411891c956c249731b708fa'
end
-class AspellNb <AspellLang
+class Aspell_nb <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/nb/aspell-nb-0.50.1-0.tar.bz2'
md5 'd1173a5ce04f39e9c93183da691e7ce8'
end
-class AspellNds <AspellLang
+class Aspell_nds <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/nds/aspell6-nds-0.01-0.tar.bz2'
md5 '76b2b3f2bdeefdfc6ce75ae11c9ae149'
end
-class AspellNl <AspellLang
+class Aspell_nl <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/nl/aspell-nl-0.50-2.tar.bz2'
md5 'c3ef9fd7dc4c47d816eee9ef5149c76a'
end
-class AspellNn <AspellLang
+class Aspell_nn <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/nn/aspell-nn-0.50.1-1.tar.bz2'
md5 '3711eb9df68f25262af10119579239bc'
end
-class AspellNy <AspellLang
+class Aspell_ny <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ny/aspell5-ny-0.01-0.tar.bz2'
md5 '856906a424fcbc50cc925d692d294215'
end
-class AspellOr <AspellLang
+class Aspell_or <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/or/aspell6-or-0.03-1.tar.bz2'
md5 '6c9d702607eaa43ef665007c4b857ba4'
end
-class AspellPa <AspellLang
+class Aspell_pa <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/pa/aspell6-pa-0.01-1.tar.bz2'
md5 'de336d6ef55ad6fa81f8903765c6c95d'
end
-class AspellPl <AspellLang
+class Aspell_pl <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/pl/aspell6-pl-6.0_20061121-0.tar.bz2'
md5 '3139a69a1bd9ccb1d853d30aa024fc2b'
end
-class AspellPtBr <AspellLang
+class Aspell_pt_BR <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/pt_BR/aspell6-pt_BR-20090702-0.tar.bz2'
md5 'e082a8956882eb94a67c12e1b8c4a324'
end
-class AspellPtPt <AspellLang
+class Aspell_pt_PT <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/pt_PT/aspell6-pt_PT-20070510-0.tar.bz2'
md5 'a54267ce8f91de6e6a1baf1e8048cba0'
end
-class AspellQu <AspellLang
+class Aspell_qu <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/qu/aspell6-qu-0.02-0.tar.bz2'
md5 'b1c4a68fd5f46cadb600d925b0764fa5'
end
-class AspellRo <AspellLang
- url 'http://ftp.gnu.org/gnu/aspell/dict/ro/aspell5-ro-3.1.tar.bz2'
- md5 '9be13b83c2eb441db38932933ae2a9c8'
+class Aspell_ro <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/ro/aspell5-ro-3.3-2.tar.bz2'
+ md5 '2d708c95fd7711efc61673c77f5f9d9e'
end
-class AspellRu <AspellLang
+class Aspell_ru <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ru/aspell6-ru-0.99f7-1.tar.bz2'
md5 'c4c98eaa5e77ad3adccbc5c96cb57cb3'
end
-class AspellRw <AspellLang
+class Aspell_rw <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/rw/aspell-rw-0.50-0.tar.bz2'
md5 'd369916c4f4159b04e43daf31dde60c9'
end
-class AspellSc <AspellLang
+class Aspell_sc <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sc/aspell5-sc-1.0.tar.bz2'
md5 '05284890c3445c5850a3c1410790a057'
end
-class AspellSk <AspellLang
+class Aspell_sk <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sk/aspell6-sk-2.01-2.tar.bz2'
md5 'b31bdc33a681902e5bc493a0692022a9'
end
-class AspellSl <AspellLang
+class Aspell_sl <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sl/aspell-sl-0.50-0.tar.bz2'
md5 'c4c11402bc834d796d1b56e711470480'
end
-class AspellSr <AspellLang
+class Aspell_sr <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sr/aspell6-sr-0.02.tar.bz2'
md5 'a068ba095e7246fd3bbc92e7d0287998'
end
-class AspellSv <AspellLang
+class Aspell_sv <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sv/aspell-sv-0.51-0.tar.bz2'
md5 'd180c781f8986ea0f65b6b18f02a494e'
end
-class AspellSw <AspellLang
+class Aspell_sw <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/sw/aspell-sw-0.50-0.tar.bz2'
md5 '26ccc3500d7f7c288b74bba1c1fab38f'
end
-class AspellTa <AspellLang
+class Aspell_ta <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/ta/aspell6-ta-20040424-1.tar.bz2'
md5 'fc98b0b8d79291448d3a4f48ebbf2bd0'
end
-class AspellTe <AspellLang
+class Aspell_te <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/te/aspell6-te-0.01-2.tar.bz2'
md5 '645f7f7204520552cddbe1c9ae64df2a'
end
-class AspellTk <AspellLang
+class Aspell_tet <AspellLang
+ url 'http://ftp.gnu.org/gnu/aspell/dict/tet/aspell5-tet-0.1.1.tar.bz2'
+ md5 '6a18e0253d7d6baa49daca513b0d782b'
+end
+class Aspell_tk <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/tk/aspell5-tk-0.01-0.tar.bz2'
md5 'acf208c098538eeacef444baf123ea3c'
end
-class AspellTl <AspellLang
+class Aspell_tl <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/tl/aspell5-tl-0.02-1.tar.bz2'
md5 '126437909424021a553055b1b96fdf73'
end
-class AspellTn <AspellLang
+class Aspell_tn <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/tn/aspell5-tn-1.0.1-0.tar.bz2'
md5 '6e5ef98452b36a211a4fc1fdbadda322'
end
-class AspellTr <AspellLang
+class Aspell_tr <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/tr/aspell-tr-0.50-0.tar.bz2'
md5 '432ecdc4e5233da0a4c1a52ed9103fa2'
end
-class AspellUk <AspellLang
+class Aspell_uk <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/uk/aspell6-uk-1.4.0-0.tar.bz2'
md5 '662f15381d11581758866fd7af43b4d7'
end
-class AspellUz <AspellLang
+class Aspell_uz <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/uz/aspell6-uz-0.6-0.tar.bz2'
md5 'e0d72a8250bba1a1f40dfb2a163eed65'
end
-class AspellVi <AspellLang
+class Aspell_vi <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/vi/aspell6-vi-0.01.1-1.tar.bz2'
md5 '314185e521900df0fab8375fa609bba2'
end
-class AspellWa <AspellLang
+class Aspell_wa <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/wa/aspell-wa-0.50-0.tar.bz2'
md5 'e3817402d7be19d4b0d0342d3a5970ea'
end
-class AspellYi <AspellLang
+class Aspell_yi <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/yi/aspell6-yi-0.01.1-1.tar.bz2'
md5 '9d514384bf00cfb9ceb0d5f78f998d93'
end
-class AspellZu <AspellLang
+class Aspell_zu <AspellLang
url 'http://ftp.gnu.org/gnu/aspell/dict/zu/aspell-zu-0.50-0.tar.bz2'
md5 '2478cbbb6abaf5ed74bc2da7e7152116'
end
-
-class Aspell <Formula
- url 'ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz'
- homepage 'http://aspell.net/'
- md5 'bc80f0198773d5c05086522be67334eb'
-
- def options
- [['--lang=XX,...',
- 'Install dictionary for language XX where language is the 2 or 3 letter country code, e.g.: --lang=en,es']]
- end
-
- def install
- fails_with_llvm
- system "./configure", "--prefix=#{prefix}"
- system "make install"
-
- ARGV.options_only.select { |v| v =~ /--lang=/ }.uniq.each do |opt|
- languages = opt.split('=')[1].split(',')
- languages.each do |lang|
- formula = Object.const_get("Aspell" + lang.capitalize).new
- formula.brew { formula.install }
- end
- end
- end
-
- # TODO remove when options works properly
- def caveats; <<-EOS
- To install dictionaries, eg:
- brew install aspell --lang=en
- EOS
- end
+def available_languages
+ %w( af am ar ast az be bg bn br ca cs csb cy da de de_alt el en eo es et fa fi fo fr fy ga gd gl grc gu gv he hi hil hr hsb hu hy ia id is it ku ky la lt lv mg mi mk ml mn mr ms mt nb nds nl nn ny or pa pl pt_BR pt_PT qu ro ru rw sc sk sl sr sv sw ta te tet tk tl tn tr uk uz vi wa yi zu)
end
+# END generated with brew-aspell-dictionaries