mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 01:21:02 +02:00
app-alternatives/bzip2: Add from Gentoo
It's from Gentoo commit ca66920b8d97794aeea2fe783c17b55328821e17.
This commit is contained in:
parent
c372b5d0e3
commit
763b1ac69b
45
sdk_container/src/third_party/portage-stable/app-alternatives/bzip2/bzip2-1.ebuild
vendored
Normal file
45
sdk_container/src/third_party/portage-stable/app-alternatives/bzip2/bzip2-1.ebuild
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ALTERNATIVES=(
|
||||
"reference:>=app-arch/bzip2-1.0.8-r4"
|
||||
"lbzip2:app-arch/lbzip2[-symlink(-)]"
|
||||
"pbzip2:app-arch/pbzip2[-symlink(-)]"
|
||||
)
|
||||
|
||||
inherit app-alternatives
|
||||
|
||||
DESCRIPTION="bzip2 symlink"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="split-usr"
|
||||
|
||||
RDEPEND="
|
||||
!<app-arch/bzip2-1.0.8-r4
|
||||
!app-arch/lbzip2[symlink(-)]
|
||||
!app-arch/pbzip2[symlink(-)]
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local alt=$(get_alternative)
|
||||
local usr_prefix=
|
||||
use split-usr && usr_prefix=../usr/bin/
|
||||
|
||||
case ${alt} in
|
||||
reference)
|
||||
dosym bzip2-reference /bin/bzip2
|
||||
alt=bzip2-reference
|
||||
;;
|
||||
*)
|
||||
dosym "${usr_prefix}${alt}" /bin/bzip2
|
||||
;;
|
||||
esac
|
||||
|
||||
dosym bzip2 /bin/bunzip2
|
||||
dosym bzip2 /bin/bzcat
|
||||
|
||||
newman - bzip2.1 <<<".so ${alt}.1"
|
||||
newman - bunzip2.1 <<<".so bzip2.1"
|
||||
newman - bzcat.1 <<<".so bzip2.1"
|
||||
}
|
23
sdk_container/src/third_party/portage-stable/app-alternatives/bzip2/metadata.xml
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/app-alternatives/bzip2/metadata.xml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>mgorny@gentoo.org</email>
|
||||
<name>Michał Górny</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="lbzip2">
|
||||
Symlink to <pkg>app-arch/lbzip2</pkg>.
|
||||
</flag>
|
||||
<flag name="pbzip2">
|
||||
Symlink to <pkg>app-arch/pbzip2</pkg>.
|
||||
</flag>
|
||||
<flag name="reference">
|
||||
Symlink to <pkg>app-arch/bzip2</pkg>.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user