Сравнение lsb-release-1.4-r4 с lsb-release-3.2

/usr/portage/sys-apps/lsb-release/lsb-release-3.2.ebuild 2023-10-09 14:52:35.388368499 +0300
1 1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit prefix
7 7

  
8 8
DESCRIPTION="LSB version query program"
9 9
HOMEPAGE="https://wiki.linuxfoundation.org/lsb/"
10
SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz"
10
# mirror://sourceforge/lsb/${P}.tar.gz
11
SRC_URI="https://github.com/thkukuk/lsb-release_os-release/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
12
S="${WORKDIR}"/${PN}_os-release-${PV}
11 13

  
12 14
LICENSE="GPL-2"
13 15
SLOT="0"
......
16 18
# Perl isn't needed at runtime, it is just used to generate the man page.
17 19
BDEPEND="dev-lang/perl"
18 20

  
19
PATCHES=(
20
	"${FILESDIR}"/${P}-os-release.patch # bug 443116
21
)
22

  
23 21
src_prepare() {
24 22
	default
25 23

  
26
	# use POSIX 'printf' instead of bash 'echo -e', bug #482370
24
	# Use POSIX 'printf' instead of bash 'echo -e', bug #482370
27 25
	sed -i \
28 26
		-e "s:echo -e:printf '%b\\\n':g" \
29 27
		-e 's:--long:-l:g' \
30 28
		lsb_release || die
31 29

  
32
	hprefixify lsb_release
30
	# TODO: unbundle help2man?
31
	hprefixify lsb_release help2man
33 32
}
34 33

  
35 34
src_install() {
36
	emake \
37
		prefix="${ED}/usr" \
38
		mandir="${ED}/usr/share/man" \
39
		install
40

  
41
	# installs gz compressed manpage, https://bugs.gentoo.org/729140
42
	rm "${ED}/usr/share/man/man1/lsb_release.1.gz" || die
43
	gunzip lsb_release.1.gz
44
	doman lsb_release.1
35
	emake prefix="${ED}"/usr install
45 36

  
46 37
	dodir /etc
47
	cat > "${ED}/etc/lsb-release" <<- EOF || die
38
	cat > "${ED}"/etc/lsb-release <<- EOF || die
48 39
		DISTRIB_ID="Gentoo"
49 40
	EOF
50 41
}
Спасибо!