You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
|
inherit prefix
|
||
10 years ago
|
|
||
|
DESCRIPTION="LSB version query program"
|
||
8 years ago
|
HOMEPAGE="https://wiki.linuxfoundation.org/lsb/"
|
||
10 years ago
|
SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||
10 years ago
|
|
||
|
# Perl isn't needed at runtime, it is just used to generate the man page.
|
||
3 years ago
|
BDEPEND="dev-lang/perl"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-os-release.patch # bug 443116
|
||
|
)
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
3 years ago
|
default
|
||
10 years ago
|
|
||
|
# use POSIX 'printf' instead of bash 'echo -e', bug #482370
|
||
|
sed -i \
|
||
|
-e "s:echo -e:printf '%b\\\n':g" \
|
||
|
-e 's:--long:-l:g' \
|
||
|
lsb_release || die
|
||
7 years ago
|
|
||
|
hprefixify lsb_release
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake \
|
||
7 years ago
|
prefix="${ED}/usr" \
|
||
|
mandir="${ED}/usr/share/man" \
|
||
10 years ago
|
install
|
||
|
|
||
3 years ago
|
# installs gz compressed manpage, https://bugs.gentoo.org/729140
|
||
|
rm "${ED}/usr/share/man/man1/lsb_release.1.gz" || die
|
||
|
gunzip lsb_release.1.gz
|
||
|
doman lsb_release.1
|
||
|
|
||
10 years ago
|
dodir /etc
|
||
3 years ago
|
cat > "${ED}/etc/lsb-release" <<- EOF || die
|
||
10 years ago
|
DISTRIB_ID="Gentoo"
|
||
|
EOF
|
||
|
}
|