diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-08-03 14:50:43 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-08-04 13:55:45 -0400 |
commit | 0db598483072a439474a1676aa96b19bd80f447a (patch) | |
tree | e6ded5a4702ac250ef8eb78b830168143a713ead /sys-apps/man-db | |
parent | dev-qt/qtwayland: Stabilize 5.15.5-r1 ppc64, #860258 (diff) | |
download | gentoo-0db598483072a439474a1676aa96b19bd80f447a.tar.gz gentoo-0db598483072a439474a1676aa96b19bd80f447a.tar.bz2 gentoo-0db598483072a439474a1676aa96b19bd80f447a.zip |
sys-apps/man-db: disable color groff output only when USE=manpager
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/man-db')
-rw-r--r-- | sys-apps/man-db/man-db-2.10.2-r1.ebuild | 8 | ||||
-rw-r--r-- | sys-apps/man-db/man-db-9999.ebuild | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sys-apps/man-db/man-db-2.10.2-r1.ebuild b/sys-apps/man-db/man-db-2.10.2-r1.ebuild index 215bd2c7051d..6ffa81f959e6 100644 --- a/sys-apps/man-db/man-db-2.10.2-r1.ebuild +++ b/sys-apps/man-db/man-db-2.10.2-r1.ebuild @@ -131,9 +131,11 @@ src_configure() { econf "${myeconfargs[@]}" # Disable color output from groff so that the manpager can add it. bug #184604 - sed -i \ - -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ - src/man_db.conf || die + if use manpager; then + sed -i \ + -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ + src/man_db.conf || die + fi cat > 15man-db <<-EOF || die SANDBOX_PREDICT="/var/cache/man" diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild index ef05ecd8416f..cd2743aa2ef1 100644 --- a/sys-apps/man-db/man-db-9999.ebuild +++ b/sys-apps/man-db/man-db-9999.ebuild @@ -131,9 +131,11 @@ src_configure() { econf "${myeconfargs[@]}" # Disable color output from groff so that the manpager can add it. bug #184604 - sed -i \ - -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ - src/man_db.conf || die + if use manpager; then + sed -i \ + -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ + src/man_db.conf || die + fi cat > 15man-db <<-EOF || die SANDBOX_PREDICT="/var/cache/man" |