summaryrefslogtreecommitdiff
path: root/app-alternatives
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-09 06:05:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-09 06:05:12 +0100
commit431cb94e4e840d61ea21c2c2bd10e07fc27b5538 (patch)
treea5ea0afac6f3ea24f6bafd60b9199e358b1a243f /app-alternatives
parent94ead5b3c01213a82c9b72a2df165452421db42b (diff)
gentoo auto-resync : 09:10:2023 - 06:05:11
Diffstat (limited to 'app-alternatives')
-rw-r--r--app-alternatives/Manifest.gzbin1676 -> 1678 bytes
-rw-r--r--app-alternatives/gzip/Manifest1
-rw-r--r--app-alternatives/gzip/gzip-1.ebuild44
3 files changed, 45 insertions, 0 deletions
diff --git a/app-alternatives/Manifest.gz b/app-alternatives/Manifest.gz
index 5ec2247404f8..737d0d46081f 100644
--- a/app-alternatives/Manifest.gz
+++ b/app-alternatives/Manifest.gz
Binary files differ
diff --git a/app-alternatives/gzip/Manifest b/app-alternatives/gzip/Manifest
index a2028459fe8c..cd2f063da38b 100644
--- a/app-alternatives/gzip/Manifest
+++ b/app-alternatives/gzip/Manifest
@@ -1,2 +1,3 @@
EBUILD gzip-0.ebuild 1050 BLAKE2B 11b768ce1dc1c1b1467990454376283a7d54e7c6212c5989edef8d8eeab236f5009692b48feeafc7df30af1a183e8e62cc1dd9ac2a3d4454371f546408199d52 SHA512 83d845beba77b9cbebbd75361b45ccb47f95a74084c89b48f917f120283344f62ecaeaf5d873cbc368babb29bd766a78431f9a5962f14a2e20da8110541ae2a2
+EBUILD gzip-1.ebuild 1064 BLAKE2B 750ad793dace680306a5d0b41b94c582ab674b91663a709c4bd499bd5df14ed2ad3825a35f74a8698caa247b4ecb6a127d7fcb987d81cfc4eedc997bb9806737 SHA512 e1f89c738cc31c01b653cfc2b45e4ebb97cf0b86c43a0c669dd18eeca0edb3c2c0e36aa8843de641b1dd677038bc08122ca44f5635fa42c3c6ee60dc90e99140
MISC metadata.xml 528 BLAKE2B 099aec3cb340caeedc0fc6e2f62162baf276b1262b4758dd39695a03ee5110c717a9b553190762c939171d7776b2048fe73c1fc7a966eef916e992abeed0ec21 SHA512 e654f8d548769c00425cd9a3f796c17af28300ea297294b335166f023164a5696216135badc82074b6a88669114f7db819af827aad8144987c7cfc7a474a2191
diff --git a/app-alternatives/gzip/gzip-1.ebuild b/app-alternatives/gzip/gzip-1.ebuild
new file mode 100644
index 000000000000..8a083740abc5
--- /dev/null
+++ b/app-alternatives/gzip/gzip-1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ALTERNATIVES=(
+ "reference:>=app-arch/gzip-1.12-r3"
+ "pigz:>=app-arch/pigz-2.8[-symlink(-)]"
+)
+
+inherit app-alternatives
+
+DESCRIPTION="gzip 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"
+IUSE="split-usr"
+
+RDEPEND="
+ !<app-arch/gzip-1.12-r3
+ !app-arch/pigz[symlink(-)]
+"
+
+src_install() {
+ local usr_prefix=
+ use split-usr && usr_prefix=../usr/bin/
+
+ case $(get_alternative) in
+ pigz)
+ dosym "${usr_prefix}pigz" /bin/gzip
+ dosym gzip /bin/gunzip
+ dosym gzip /bin/zcat
+ newman - gzip.1 <<<".so pigz.1"
+ ;;
+ reference)
+ dosym gzip-reference /bin/gzip
+ # gzip uses shell wrappers rather than argv[0]
+ dosym gunzip-reference /bin/gunzip
+ dosym zcat-reference /bin/zcat
+ newman - gzip.1 <<<".so gzip-reference.1"
+ ;;
+ esac
+
+ newman - gunzip.1 <<<".so gzip.1"
+ newman - zcat.1 <<<".so gzip.1"
+}