summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-07 13:48:01 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-07 13:48:12 -0500
commit8ea21c463a5b0bfbe7303361809e76735d86b03b (patch)
treede749f7f17b55b76a42b8c4c590d342143d8c74e
parentprofiles: mask USE=notmuch for mail-client/mutt on arches lacking the keyword... (diff)
downloadgentoo-8ea21c463a5b0bfbe7303361809e76735d86b03b.tar.gz
gentoo-8ea21c463a5b0bfbe7303361809e76735d86b03b.tar.bz2
gentoo-8ea21c463a5b0bfbe7303361809e76735d86b03b.zip
sys-apps/groff: rework mom-pdf.pdf clean up again #454196 #516732
-rw-r--r--sys-apps/groff/groff-1.22.2.ebuild4
-rw-r--r--sys-apps/groff/groff-1.22.3.ebuild7
2 files changed, 9 insertions, 2 deletions
diff --git a/sys-apps/groff/groff-1.22.2.ebuild b/sys-apps/groff/groff-1.22.2.ebuild
index 0a7ac7b86d6..e731d95545c 100644
--- a/sys-apps/groff/groff-1.22.2.ebuild
+++ b/sys-apps/groff/groff-1.22.2.ebuild
@@ -84,7 +84,9 @@ src_install() {
dosym tbl /usr/bin/gtbl
if ! use examples ; then
- rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ # 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
+ 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 c228175daea..712f51ff794 100644
--- a/sys-apps/groff/groff-1.22.3.ebuild
+++ b/sys-apps/groff/groff-1.22.3.ebuild
@@ -74,5 +74,10 @@ src_install() {
dosym eqn /usr/bin/geqn
dosym tbl /usr/bin/gtbl
- use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ 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
+ rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ fi
}