mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
sys-apps/locale-gen: Sync with Gentoo
It's from Gentoo commit d26c8e00eecb2b9d4b1011a75681a34c14e5d15c. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
514cda4e1a
commit
eaf2a28b41
@ -1,2 +1,3 @@
|
||||
DIST locale-gen-3.10.tar.bz2 18016 BLAKE2B 0ddedf66dfa584b5685f52a3c95be560642d7314bb95a3912a65bffde1687454a6a6a5795c07057e147e7b8b229736f9e2c3e34cbeffc5de5f807e3db056de81 SHA512 192c5823edfaa4681fc809578358755c794f1c3b23f2c99fd819d65abafc886fa36e9f57ccf00d166b1a659d307a5a390373d8099a91fed6d3b7a8cc83e9f586
|
||||
DIST locale-gen-3.8.tar.bz2 17593 BLAKE2B 0197096021286f47f4e289ee5c4cbf0220264b5784c101df567c0a5dc81a0a83999e8306e8ab72e47f4f35f92d0f7e7e40589ff3c74936e22c56e3b5a172fb15 SHA512 6e802283bce6a927ed020d3011a9bc4a81ef017d728a698fa6a8c74887895a87d225cdbe23cf18798a12f2e58beacfdd6ba5e3990d74ebafb4b2ba5986d35720
|
||||
DIST locale-gen-3.9.tar.bz2 17793 BLAKE2B 982c6460a40ac29b9aa3f2bab42cfa7862510c715e13bb68b0b6c7f7910fd728862ed4cc2ce7a07bfe1888566a469c1264174a4f41306506d77edc7189957a7c SHA512 8bdb5e7cb19d62284291d092b03e04f2c40b52cac542192afe5e3c28776a88f4452efdd6dd76a6719fe7b73edf37b916322db4d048c08fd7d03d6d3474fdd6fe
|
||||
|
||||
70
sdk_container/src/third_party/portage-stable/sys-apps/locale-gen/locale-gen-3.10.ebuild
vendored
Normal file
70
sdk_container/src/third_party/portage-stable/sys-apps/locale-gen/locale-gen-3.10.ebuild
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Generate locales based upon the config file /etc/locale.gen"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/locale-gen.git/"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/locale-gen.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/perl-5.36
|
||||
dev-perl/File-Slurper
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-lang/perl-5.36
|
||||
!<sys-libs/glibc-2.37-r3
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# EPREFIX is readonly.
|
||||
local -x MY_EPREFIX=${EPREFIX}
|
||||
|
||||
eapply_user
|
||||
|
||||
perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END { exit !$f }' "${PN}" \
|
||||
|| die "Failed to prefixify ${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin locale-gen
|
||||
doman *.[0-8]
|
||||
insinto /etc
|
||||
{
|
||||
cat <<-'EOF' &&
|
||||
# This file defines which locales to incorporate into the glibc locale archive.
|
||||
# See the locale.gen(5) and locale-gen(8) man pages for more details.
|
||||
|
||||
EOF
|
||||
if [[ -e ${EROOT}/usr/share/i18n/SUPPORTED ]]; then
|
||||
# Run the interpreter by name so as not to have to prefixify.
|
||||
perl mkconfig "${EROOT}"
|
||||
else
|
||||
ewarn "Skipping the incorporation of locale.gen examples because the SUPPORTED file is absent"
|
||||
fi
|
||||
} | newins - locale.gen
|
||||
if (( PIPESTATUS[0] || PIPESTATUS[1] )); then
|
||||
die "Failed to generate and/or install locale.gen"
|
||||
fi
|
||||
keepdir /usr/lib/locale
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
while read -r; do ewarn "${REPLY}"; done <<-'EOF'
|
||||
As of version 3.10, the locale.gen(5) config file grammar has been
|
||||
simplified. For instance, "en_US.UTF-8 UTF-8" may instead be written as
|
||||
"en_US UTF-8", or even "en_US". The grammar remains backward compatible with
|
||||
version 3.9, so there is no requirement to update the /etc/locale.gen file.
|
||||
EOF
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user