sys-apps/locale-gen: add 9999

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-08-08 06:22:33 +01:00
parent 197d3342fc
commit 02b54f4932
2 changed files with 41 additions and 2 deletions

View File

@@ -5,11 +5,18 @@ EAPI=8
DESCRIPTION="Generate locales based upon the config file /etc/locale.gen"
HOMEPAGE="https://gitweb.gentoo.org/proj/locale-gen.git/"
SRC_URI="https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/${P}.tar.bz2"
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"
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
dev-lang/perl

View File

@@ -0,0 +1,32 @@
# 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"
RDEPEND="
dev-lang/perl
!<sys-libs/glibc-2.37-r3
"
src_install() {
dosbin locale-gen
doman *.[0-8]
insinto /etc
doins locale.gen
keepdir /usr/lib/locale
}