mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 06:00:30 -04:00
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)
37 lines
1,007 B
Text
37 lines
1,007 B
Text
--- ./info/Makefile.orig 2011-10-19 17:46:38.000000000 +0900
|
|
+++ ./info/Makefile 2011-11-21 19:26:11.000000000 +0900
|
|
@@ -15,7 +15,7 @@
|
|
## EDIT THE FOLLOWINGS
|
|
##
|
|
|
|
-prefix=/usr/local
|
|
+prefix=${PREFIX}
|
|
infodir=$(prefix)/info
|
|
|
|
EMACS=emacs
|
|
@@ -48,20 +48,20 @@
|
|
info:
|
|
sed -e 's/@setfilename mew.ja.info/@setfilename mew.info/' \
|
|
-e 's/@set ja/@set en/' mew.texi > tmp.texi
|
|
- mv tmp.texi mew.texi
|
|
$(RM) mew.info*
|
|
$(TOUCH) mew.info
|
|
$(EMACS) -batch -q -no-site-file -l texinfmt \
|
|
- -f batch-texinfo-format mew.texi
|
|
+ -f batch-texinfo-format tmp.texi
|
|
+ $(RM) tmp.texi
|
|
|
|
jinfo:
|
|
sed -e 's/@setfilename mew.info/@setfilename mew.ja.info/' \
|
|
- -e 's/@set en/@set ja/' mew.texi > tmp.texi
|
|
- mv tmp.texi mew.texi
|
|
+ -e 's/@set en/@set ja/' mew.texi > tmp.ja.texi
|
|
$(RM) mew.ja.info*
|
|
$(TOUCH) mew.ja.info
|
|
$(EMACS) -batch -q -no-site-file -l texinfmt \
|
|
- -f batch-texinfo-format mew.texi
|
|
+ -f batch-texinfo-format tmp.ja.texi
|
|
+ $(RM) tmp.ja.texi
|
|
|
|
install: install-info
|
|
install-info:
|