summaryrefslogtreecommitdiff
path: root/app-alternatives
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-17 16:03:04 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-17 16:03:04 +0100
commit29ef84a753ab20dbbb228238713a3c7443c6520e (patch)
treeebe889f9f8817c5c6601a6dbfd0b12d537b4e91d /app-alternatives
parentcf89ca044e37f79e2329552cda857215f9824e11 (diff)
gentoo auto-resync : 17:10:2023 - 16:03:04
Diffstat (limited to 'app-alternatives')
-rw-r--r--app-alternatives/Manifest.gzbin1678 -> 1838 bytes
-rw-r--r--app-alternatives/ninja/Manifest2
-rw-r--r--app-alternatives/ninja/metadata.xml16
-rw-r--r--app-alternatives/ninja/ninja-1.ebuild27
4 files changed, 45 insertions, 0 deletions
diff --git a/app-alternatives/Manifest.gz b/app-alternatives/Manifest.gz
index 737d0d46081f..13f672a8d621 100644
--- a/app-alternatives/Manifest.gz
+++ b/app-alternatives/Manifest.gz
Binary files differ
diff --git a/app-alternatives/ninja/Manifest b/app-alternatives/ninja/Manifest
new file mode 100644
index 000000000000..c3dc726946cc
--- /dev/null
+++ b/app-alternatives/ninja/Manifest
@@ -0,0 +1,2 @@
+EBUILD ninja-1.ebuild 623 BLAKE2B 2916ebffa1c5e42805ddb8279939e0044c8bb221e46d64f420e65d483b30f1fe8c494434eec0b10d4afa696ff89a627cdbeedabb1147e6d944d2f8ad03c762a8 SHA512 fe5458f6546fec776e43173bde2c4799327a4c30567b91056b4828c2afaa3a0252f3ac53f1d4c239f1a187e01067f04d31b1e4f1250ee4f304fe66ed06943e75
+MISC metadata.xml 505 BLAKE2B a07182685045c1780adfe431aa48878b6635259aa58d7753c456e152b9ce4061880ebe073aae58c7424a333c6044638f6b883fa7474e6fc0d7567be938558b58 SHA512 ceb2d216d4a0d7d90d0dd6d26395a7214dfcac5cef49b77c2113c71c32127877434ad5f2d2738f93cb3dfa9758b0554990aca772b7224eb1920b3d0b0472d0e8
diff --git a/app-alternatives/ninja/metadata.xml b/app-alternatives/ninja/metadata.xml
new file mode 100644
index 000000000000..20bceb308997
--- /dev/null
+++ b/app-alternatives/ninja/metadata.xml
@@ -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>
diff --git a/app-alternatives/ninja/ninja-1.ebuild b/app-alternatives/ninja/ninja-1.ebuild
new file mode 100644
index 000000000000..bcb516b5373f
--- /dev/null
+++ b/app-alternatives/ninja/ninja-1.ebuild
@@ -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
+}