diff options
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/groff/groff-1.22.2.ebuild | 9 | ||||
-rw-r--r-- | sys-apps/groff/groff-1.22.3.ebuild | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/sys-apps/groff/groff-1.22.2.ebuild b/sys-apps/groff/groff-1.22.2.ebuild index e731d95545ce..de668f383538 100644 --- a/sys-apps/groff/groff-1.22.2.ebuild +++ b/sys-apps/groff/groff-1.22.2.ebuild @@ -84,9 +84,12 @@ src_install() { dosym tbl /usr/bin/gtbl if ! use examples ; then - # Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 - rm -f "${ED}"/usr/share/doc/${PF}/pdf/mom-pdf.pdf - mv "${ED}"/usr/share/doc/${PF}/{examples/mom,pdf}/mom-pdf.pdf || die + # The pdf files might not be generated if ghostscript is unavailable. #602020 + local pdf="${ED}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf" + if [[ -e ${pdf} ]] ; then + # Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 + mv "${pdf}" "${ED}"/usr/share/doc/${PF}/pdf/ || die + fi rm -rf "${ED}"/usr/share/doc/${PF}/examples fi } diff --git a/sys-apps/groff/groff-1.22.3.ebuild b/sys-apps/groff/groff-1.22.3.ebuild index 712f51ff7945..4007d84cf458 100644 --- a/sys-apps/groff/groff-1.22.3.ebuild +++ b/sys-apps/groff/groff-1.22.3.ebuild @@ -75,9 +75,12 @@ src_install() { dosym tbl /usr/bin/gtbl if ! use examples ; then - # Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 - rm -f "${ED}"/usr/share/doc/${PF}/pdf/mom-pdf.pdf - mv "${ED}"/usr/share/doc/${PF}/{examples/mom,pdf}/mom-pdf.pdf || die + # The pdf files might not be generated if ghostscript is unavailable. #602020 + local pdf="${ED}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf" + if [[ -e ${pdf} ]] ; then + # Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 + mv "${pdf}" "${ED}"/usr/share/doc/${PF}/pdf/ || die + fi rm -rf "${ED}"/usr/share/doc/${PF}/examples fi } |