mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
app-alternatives/ninja: Add from Gentoo
It's from Gentoo commit b447bd77c1d4306c57fc0106b189090884625a5f.
This commit is contained in:
parent
fac0e2df1d
commit
10c941e1f6
16
sdk_container/src/third_party/portage-stable/app-alternatives/ninja/metadata.xml
vendored
Normal file
16
sdk_container/src/third_party/portage-stable/app-alternatives/ninja/metadata.xml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<?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>vimproved@inventati.org</email>
|
||||
<name>Violet Purcell</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="reference">Symlink to dev-util/ninja.</flag>
|
||||
<flag name="samurai">Symlink to dev-util/samurai.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
27
sdk_container/src/third_party/portage-stable/app-alternatives/ninja/ninja-1.ebuild
vendored
Normal file
27
sdk_container/src/third_party/portage-stable/app-alternatives/ninja/ninja-1.ebuild
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ALTERNATIVES=(
|
||||
"reference:>=dev-util/ninja-1.11.1-r3"
|
||||
samurai:dev-util/samurai
|
||||
)
|
||||
|
||||
inherit app-alternatives
|
||||
|
||||
DESCRIPTION="ninja symlinks"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
|
||||
RDEPEND="!<dev-util/ninja-1.11.1-r3"
|
||||
|
||||
src_install() {
|
||||
local alt=$(get_alternative)
|
||||
|
||||
case ${alt} in
|
||||
reference) alt=ninja-reference;;
|
||||
samurai) alt=samu;;
|
||||
esac
|
||||
|
||||
dosym "${alt}" /usr/bin/ninja
|
||||
}
|
Loading…
Reference in New Issue
Block a user