commit: bfd02d0553727dac749920accc14de71a16ba31a
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sun Sep 14 00:05:24 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 14 00:11:23 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfd02d05
sys-apps/locale-gen: add 3.6
Kerin Millar (12):
Delete interim archives for which installation fails
Don't directly unlink $interim_path if renaming fails
Introduce the install_archive() subroutine
Remove a stray newline
Relieve run_localedef() of the duty of incorporating the --prefix option
Refrain from passing the --replace option to localedef(1)
Simplify a comment in the main block
Drop the run_localedef() subroutine
Ignore findmnt(8) exiting 1 where / is not a mountpoint
Revert "Ignore findmnt(8) exiting 1 where / is not a mountpoint"
Ignore findmnt(8) exiting 1 where / is not a mountpoint
Bump $VERSION to 3.6
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Bug: https://bugs.gentoo.org/962817
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/locale-gen/locale-gen-3.6.ebuild | 57 +++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/sys-apps/locale-gen/locale-gen-3.6.ebuild
b/sys-apps/locale-gen/locale-gen-3.6.ebuild
new file mode 100644
index 000000000000..c380120ac933
--- /dev/null
+++ b/sys-apps/locale-gen/locale-gen-3.6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2023-2025 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
+ # Run the interpreter by name so as not to have to prefixify
mkconfig.
+ perl mkconfig "${EROOT}"
+ } | newins - locale.gen
+ if (( PIPESTATUS[0] || PIPESTATUS[1] )); then
+ die "Failed to generate and/or install locale.gen"
+ fi
+ keepdir /usr/lib/locale
+}