summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2018-08-26 19:25:15 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2018-10-05 00:10:36 +0100
commite9e6efc4e28c3dd52fce622b8c50d42df7959fba (patch)
treef2e21330da560e032792e162c967c4780a7c74bf /profiles
parentapp-crypt/trezord: Version bump (diff)
downloadportage-e9e6efc4e28c3dd52fce622b8c50d42df7959fba.tar.xz
profiles/common: Source L10N from make.conf since it's not available in
the global env
Diffstat (limited to 'profiles')
-rw-r--r--profiles/common/profile.bashrc16
1 files changed, 16 insertions, 0 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc
index 30b633d4..e4106449 100644
--- a/profiles/common/profile.bashrc
+++ b/profiles/common/profile.bashrc
@@ -44,6 +44,20 @@ function __restore_bash_options () {
fi
}
+function __load_make_conf () {
+ if (( ${#} == 0 )) ; then
+ return 1
+ fi
+
+ source <(
+ source "${PORTAGE_CONFIGROOT}/etc/portage/make.conf"
+ declare -p "${@}" 2> /dev/null \
+ | sed -e 's/^declare -. /declare -g /'
+ )
+
+ return $?
+}
+
function __drop-nls-man-pages () {
local -a _DIRS=(
/usr/share/man
@@ -90,6 +104,8 @@ function __drop-nls-locales () {
/usr/share/help
)
+ __load_make_conf L10N
+
local _dir _l
for _dir in ${_DIRS[@]} ; do
if [[ ! -d "${_ed}${_dir}" ]] ; then