summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <hsoft@hardcoded.net>2017-08-22 08:13:41 -0400
committerMichał Górny <mgorny@gentoo.org>2017-09-02 11:31:28 +0200
commit0aaf72027909a79fbd65145451b5a03f33ae99cf (patch)
tree6d8efde37190efa0a9ea61a792dc78f76a5a5857 /app-emulation/lxd
parentsys-fs/duperemove: fix sysmacros.h error w/ new sys-libs/glibc (diff)
downloadgentoo-0aaf72027909a79fbd65145451b5a03f33ae99cf.tar.gz
gentoo-0aaf72027909a79fbd65145451b5a03f33ae99cf.tar.bz2
gentoo-0aaf72027909a79fbd65145451b5a03f33ae99cf.zip
app-emulation/lxd: Remove PLOCALES definition
as per mgorny's suggestion in https://github.com/gentoo/gentoo/pull/5483 I have tested that, after a merge of that ebuild, localizations still worked (at least the `fr` one). Closes: https://github.com/gentoo/gentoo/pull/5503 Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-emulation/lxd')
-rw-r--r--app-emulation/lxd/lxd-2.16.ebuild20
1 files changed, 2 insertions, 18 deletions
diff --git a/app-emulation/lxd/lxd-2.16.ebuild b/app-emulation/lxd/lxd-2.16.ebuild
index 60e19a973a29..17d8d477ef34 100644
--- a/app-emulation/lxd/lxd-2.16.ebuild
+++ b/app-emulation/lxd/lxd-2.16.ebuild
@@ -45,12 +45,9 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-# Portage complains about zh_Hans missing, but repoman doesn't like it when it's there.
-PLOCALES="de el fr it ja nl ru sr sv tr zh"
IUSE="+daemon nls test"
-# IUSE and PLOCALES must be defined before l10n inherited
-inherit bash-completion-r1 golang-build l10n linux-info systemd user golang-vcs-snapshot
+inherit bash-completion-r1 golang-build linux-info systemd user golang-vcs-snapshot
SRC_URI="${ARCHIVE_URI}
${EGO_VENDOR_URI}"
@@ -117,17 +114,9 @@ PATCHES=(
"${FILESDIR}/${P}-dont-go-get.patch"
)
-# KNOWN ISSUES:
-# - Translations may not work. I've been unsuccessful in forcing
-# localized output. Anyway, upstream (Canonical) doesn't install the
-# message files.
-
src_prepare() {
default_src_prepare
- # Warn on unhandled locale changes
- l10n_find_plocales_changes "${S}/src/${EGO_PN}/po" "" .po
-
# Examples in go-lxc make our build fail.
rm -rf "${S}/src/${EGO_PN}/vendor/gopkg.in/lxc/go-lxc.v2/examples" || die
}
@@ -170,12 +159,7 @@ src_install() {
cd "src/${EGO_PN}" || die "can't cd into ${S}/src/${EGO_PN}"
if use nls; then
- local lingua
- for lingua in ${PLOCALES}; do
- if use linguas_${lingua}; then
- domo po/${lingua}.mo
- fi
- done
+ domo po/*.mo
fi
if use daemon; then