aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-10-25 17:48:43 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-10-25 17:48:43 +0000
commitf59d514fd1f8896283d7979542cf0e8bf2126806 (patch)
tree8be7c62e2f20a072032630f2891ead839383d936 /textproc
parent3871c87a99c34961ecbadd8adbe2abd92aafb728 (diff)
downloadports-f59d514fd1f8896283d7979542cf0e8bf2126806.tar.gz
ports-f59d514fd1f8896283d7979542cf0e8bf2126806.zip
Install the English dictionary when LANG is set to an unsupported
language by aspell. Approved by: MAINTAINER
Notes
Notes: svn path=/head/; revision=68815
Diffstat (limited to 'textproc')
-rw-r--r--textproc/aspell/Makefile9
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))