diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-05 21:07:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-05 21:07:33 +0000 |
commit | 7ac0e89e1c8027ed5be76f6005e8cb52b1e5d484 (patch) | |
tree | 6e8094136a65c722d055bff2797c5e26074dc77e /app-alternatives/bzip2 | |
parent | fbfe3f841f32cbf766cd6ba1d05c3930540be577 (diff) |
gentoo auto-resync : 05:12:2022 - 21:07:33
Diffstat (limited to 'app-alternatives/bzip2')
-rw-r--r-- | app-alternatives/bzip2/Manifest | 2 | ||||
-rw-r--r-- | app-alternatives/bzip2/bzip2-1.ebuild | 43 |
2 files changed, 21 insertions, 24 deletions
diff --git a/app-alternatives/bzip2/Manifest b/app-alternatives/bzip2/Manifest index 0da99e63177c..c1380cf60046 100644 --- a/app-alternatives/bzip2/Manifest +++ b/app-alternatives/bzip2/Manifest @@ -1,2 +1,2 @@ -EBUILD bzip2-1.ebuild 1254 BLAKE2B 38c087d2a7d15dcd39094036ce94c0494f6d600ba473d447f8bcc51fc775101a144b2d362c11236894c2981836f13900074f536a71d50b0c2ab2a034f8256907 SHA512 86d7b9df293bb0256e798b78db171a5d82462a682be1999ab70035c19157a217d401c5112d3b756df160bca94a147808ee95f6397ade67d6db0faedb5e3bcf19 +EBUILD bzip2-1.ebuild 942 BLAKE2B 1b4f3e831ab7170f26c718465d8ce26444c02990c459be837216a17bbab00906acdb4eaf7e6614fdef50f56d3ac42bfadb57dc7342b32ca8cd8083e4676f0167 SHA512 a3d272ff41cadcb5564e72cd75aab2465012f7125cff6b544212c114cc15b6781051ca34f7d46e8549d9ef4810bd8ef8fb56b5c726040fe105ce6e45023c3a8f MISC metadata.xml 608 BLAKE2B a8bd6f79e552943ee891edc7e90399c77dca3347ce407767902446d0e25720eacc137a6ed31fb851553caf8a938cf6be63c7a1451b2b8aa4a3c367995204216b SHA512 a3863d41f2b3475e64903389efa2b0f8258bf5f21df4e83ff0e28fa44519b012ab92d4a773d05089d7fcf210e4c29da63d25be8e9e098d15284e13dc75bfcf6d diff --git a/app-alternatives/bzip2/bzip2-1.ebuild b/app-alternatives/bzip2/bzip2-1.ebuild index 6e61b5e2135d..6b0b5ef620d1 100644 --- a/app-alternatives/bzip2/bzip2-1.ebuild +++ b/app-alternatives/bzip2/bzip2-1.ebuild @@ -3,46 +3,43 @@ EAPI=8 -DESCRIPTION="bzip2 symlink" -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives" -SRC_URI="" -S=${WORKDIR} +ALTERNATIVES=( + "reference:>=app-arch/bzip2-1.0.8-r4" + "lbzip2:app-arch/lbzip2[-symlink(-)]" + "pbzip2:app-arch/pbzip2[-symlink(-)]" +) + +inherit app-alternatives -LICENSE="CC0-1.0" -SLOT="0" +DESCRIPTION="bzip2 symlink" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="lbzip2 pbzip2 +reference split-usr" -REQUIRED_USE="^^ ( lbzip2 pbzip2 reference )" +IUSE="split-usr" RDEPEND=" - lbzip2? ( app-arch/lbzip2[-symlink(-)] ) - pbzip2? ( app-arch/pbzip2[-symlink(-)] ) - reference? ( >=app-arch/bzip2-1.0.8-r4 ) !<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/ - if use lbzip2; then - dosym "${usr_prefix}lbzip2" /bin/bzip2 - newman - bzip2.1 <<<".so lbzip2.1" - elif use pbzip2; then - dosym "${usr_prefix}pbzip2" /bin/bzip2 - newman - bzip2.1 <<<".so pbzip2.1" - elif use reference; then - dosym bzip2-reference /bin/bzip2 - newman - bzip2.1 <<<".so bzip2-reference.1" - else - die "Invalid USE flag combination (broken REQUIRED_USE?)" - fi + 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" } |