mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
36 lines
791 B
Makefile
36 lines
791 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= hunspell
|
|
DISTVERSION= 0.01-2
|
|
PORTREVISION= 3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= GNU/aspell/dict/te
|
|
PKGNAMEPREFIX= te-
|
|
DISTNAME= aspell6-te-${DISTVERSION}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= office@FreeBSD.org
|
|
COMMENT= Telugu hunspell dictionaries
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= prezip-bin:textproc/aspell \
|
|
wordlist2hunspell:textproc/hunspell
|
|
|
|
NO_ARCH= yes
|
|
USES= tar:bzip2
|
|
|
|
PLIST_FILES= %%DATADIR%%/te_IN.aff \
|
|
%%DATADIR%%/te_IN.dic
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}; \
|
|
${LOCALBASE}/bin/prezip-bin -d < te.cwl > te.txt; \
|
|
${SETENV} LANG=te_IN.utf8 LC_ALL=te_IN.utf8 ${LOCALBASE}/bin/wordlist2hunspell te.txt te_IN
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/te_IN.aff ${WRKSRC}/te_IN.dic ${STAGEDIR}${DATADIR}/
|
|
|
|
.include <bsd.port.mk>
|