diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /eclass/xorg-3.eclass | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'eclass/xorg-3.eclass')
-rw-r--r-- | eclass/xorg-3.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index 15bb0b381a36..557a65233cb7 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -140,7 +140,7 @@ if [[ ${XORG_STATIC} == yes \ IUSE+=" static-libs" fi -DEPEND+=" virtual/pkgconfig" +BDEPEND+=" virtual/pkgconfig" # @ECLASS-VARIABLE: XORG_DRI # @DESCRIPTION: @@ -367,6 +367,16 @@ xorg-3_src_install() { emake DESTDIR="${D}" "${install_args[@]}" "$@" install || die "emake install failed" fi + # Many X11 libraries unconditionally install developer documentation + if [[ -d "${D}"/usr/share/man/man3 ]]; then + ! in_iuse doc && eqawarn "ebuild should set XORG_DOC=doc since package installs library documentation" + fi + + if in_iuse doc && ! use doc; then + rm -rf "${D}"/usr/share/man/man3 + rmdir "${D}"/usr{/share{/man,},} 2>/dev/null + fi + # Don't install libtool archives (even for modules) find "${D}" -type f -name '*.la' -delete || die } |