diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-12-08 23:14:25 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-12-08 23:20:26 -0500 |
commit | dd4bad98c06a75c40014621d3be2a9af92a1708c (patch) | |
tree | e8e215b6702b555890df3a779f822423911025e7 /sys-apps/groff | |
parent | media-sound/lilypond: version bump to 2.19.52 (diff) | |
download | gentoo-dd4bad98c06a75c40014621d3be2a9af92a1708c.tar.gz gentoo-dd4bad98c06a75c40014621d3be2a9af92a1708c.tar.bz2 gentoo-dd4bad98c06a75c40014621d3be2a9af92a1708c.zip |
sys-apps/groff: handle missing pdf examples #602020
If ghostscript isn't available, groff won't build its pdf examples.
Diffstat (limited to 'sys-apps/groff')
-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 } |