diff options
author | 2022-11-30 17:04:15 +0100 | |
---|---|---|
committer | 2022-12-01 01:39:30 +0000 | |
commit | 90657783651efa366c78e2dfdd44e15a4f372e49 (patch) | |
tree | 28fcbc648907f832acdf22d2a7df670526c05e12 /app-arch/bzip2/bzip2-9999.ebuild | |
parent | app-alternatives/bzip2: Add an ebuild for bzip2 symlinks (diff) | |
download | gentoo-90657783651efa366c78e2dfdd44e15a4f372e49.tar.gz gentoo-90657783651efa366c78e2dfdd44e15a4f372e49.tar.bz2 gentoo-90657783651efa366c78e2dfdd44e15a4f372e49.zip |
app-arch/bzip2: Support app-alternatives/bzip2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/28481
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch/bzip2/bzip2-9999.ebuild')
-rw-r--r-- | app-arch/bzip2/bzip2-9999.ebuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/app-arch/bzip2/bzip2-9999.ebuild b/app-arch/bzip2/bzip2-9999.ebuild index e463fbf759d7..025f6378d542 100644 --- a/app-arch/bzip2/bzip2-9999.ebuild +++ b/app-arch/bzip2/bzip2-9999.ebuild @@ -19,9 +19,8 @@ SLOT="0/1" # subslot = SONAME IUSE="static-libs" -RDEPEND=" - !app-arch/lbzip2[symlink(-)] - !app-arch/pbzip2[symlink(-)] +PDEPEND=" + app-alternatives/bzip2 " multilib_src_configure() { @@ -39,16 +38,17 @@ multilib_src_install() { if multilib_is_native_abi ; then gen_usr_ldscript -a bz2 - - dodir /bin - mv "${ED}"/usr/bin/bzip2 "${ED}"/bin || die fi } multilib_src_install_all() { - # Move "important" bzip2 binaries to /bin and use the shared libbz2.so - dosym bzip2 /bin/bzcat - dosym bzip2 /bin/bunzip2 + dodir /bin + mv "${ED}"/usr/bin/bzip2 "${ED}"/bin/bzip2-reference || die + mv "${ED}"/usr/share/man/man1/bzip2{,-reference}.1 || die + + # moved to app-alternatives/bzip2 + rm "${ED}"/usr/bin/{bzcat,bunzip2} || die + rm "${ED}"/usr/share/man/man1/{bzcat,bunzip2.1} || die dosym bzdiff /usr/bin/bzcmp dosym bzmore /usr/bin/bzless @@ -57,8 +57,7 @@ multilib_src_install_all() { dosym bzgrep /usr/bin/${x} done - dosym bzip2.1 /usr/share/man/man1/bzip2recover.1 + dosym bzip2-reference.1 /usr/share/man/man1/bzip2recover.1 - local DOCS=( AUTHORS NEWS{,-pre-1.0.7} README.md ) einstalldocs } |