sys-libs/safeclib: do not remove manpages if not built

Closes: https://bugs.gentoo.org/784686
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri 2021-04-25 18:46:03 +02:00
parent d9d35ac515
commit c90a6450be
No known key found for this signature in database
GPG Key ID: 75DFA720D0EF7660

View File

@ -87,12 +87,15 @@ src_install() {
cd "${S}-lib" || die
default
einstalldocs
use doc && dodoc -r doc/.
# wcsstr towupper towlower manpages collide with sys-apps/man-pages
rm "${ED}/usr/share/man/man3/towlower.3" || die
rm "${ED}/usr/share/man/man3/towupper.3" || die
rm "${ED}/usr/share/man/man3/wcsstr.3" || die
if use doc ; then
dodoc -r doc/.
# wcsstr towupper towlower manpages collide with sys-apps/man-pages
rm "${ED}/usr/share/man/man3/towlower.3" || die
rm "${ED}/usr/share/man/man3/towupper.3" || die
rm "${ED}/usr/share/man/man3/wcsstr.3" || die
fi
}
src_test() {