summaryrefslogtreecommitdiff
blob: 4b6dadbfa5d44791d85caf31610670b290ae623b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit prefix

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"

# Totally unclear what the license is. Following here the statement
# in the Debian file that the tools accompanying glibc are GPL-2+
LICENSE="GPL-2+"

SLOT="0"
#KEYWORDS="~amd64"

RDEPEND="
	app-alternatives/awk
	app-arch/gzip
	sys-apps/gentoo-functions
	sys-apps/grep
	>=sys-libs/glibc-2.38
	!<sys-libs/glibc-2.38
"
DEPEND=""

src_prepare() {
	default
	eprefixify locale-gen
}

src_install() {
	dosbin locale-gen
	doman *.[0-8]
	insinto /etc
	doins locale.gen
	keepdir /usr/lib/locale
}