diff options
author | knu <knu@FreeBSD.org> | 2002-10-26 01:48:43 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-10-26 01:48:43 +0800 |
commit | 824940482392c44e2ecc9d9bfb9f3c9f4a68ff6e (patch) | |
tree | c360ab5e91d902b32832c3ef21a03722bdfbaf86 /textproc | |
parent | 27938dece4df97c8ce3c956792bd6863e12c2067 (diff) | |
download | freebsd-ports-gnome-824940482392c44e2ecc9d9bfb9f3c9f4a68ff6e.tar.gz freebsd-ports-gnome-824940482392c44e2ecc9d9bfb9f3c9f4a68ff6e.tar.zst freebsd-ports-gnome-824940482392c44e2ecc9d9bfb9f3c9f4a68ff6e.zip |
Install the English dictionary when LANG is set to an unsupported
language by aspell.
Approved by: MAINTAINER
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/aspell/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile index 7a918e45c612..70732ed7adb2 100644 --- a/textproc/aspell/Makefile +++ b/textproc/aspell/Makefile @@ -48,10 +48,13 @@ DICTREVISION= 2 .include <bsd.port.pre.mk> .if defined(LANG) -DEF_DICT!= ${ECHO_CMD} ${LANG} | ${CUT} -c 1-2 -.else -DEF_DICT= en +.for i in ${AVAIL_DICT} +.if ${LANG:M${i}*} != "" +DEF_DICT= ${i} +.endif +.endfor .endif +DEF_DICT?= en pre-everything:: .if (!defined(ASPELL_BR) && !defined(ASPELL_CA) && !defined(ASPELL_CS) && !defined(ASPELL_DA) && !defined(ASPELL_DE) && !defined(ASPELL_EN) && !defined(ASPELL_EO) && !defined(ASPELL_ES) && !defined(ASPELL_FO) && !defined(ASPELL_FR) && !defined(ASPELL_IT) && !defined(ASPELL_NL) && !defined(ASPELL_NO) && !defined(ASPELL_PL) && !defined(ASPELL_PT) && !defined(ASPELL_RO) && !defined(ASPELL_RU) && !defined(ASPELL_SK) && !defined(ASPELL_SV)) |