1 |
commit: 0db598483072a439474a1676aa96b19bd80f447a |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 3 18:50:43 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 4 17:55:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0db59848 |
7 |
|
8 |
sys-apps/man-db: disable color groff output only when USE=manpager |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
sys-apps/man-db/man-db-2.10.2-r1.ebuild | 8 +++++--- |
13 |
sys-apps/man-db/man-db-9999.ebuild | 8 +++++--- |
14 |
2 files changed, 10 insertions(+), 6 deletions(-) |
15 |
|
16 |
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 |
17 |
index 215bd2c7051d..6ffa81f959e6 100644 |
18 |
--- a/sys-apps/man-db/man-db-2.10.2-r1.ebuild |
19 |
+++ b/sys-apps/man-db/man-db-2.10.2-r1.ebuild |
20 |
@@ -131,9 +131,11 @@ src_configure() { |
21 |
econf "${myeconfargs[@]}" |
22 |
|
23 |
# Disable color output from groff so that the manpager can add it. bug #184604 |
24 |
- sed -i \ |
25 |
- -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ |
26 |
- src/man_db.conf || die |
27 |
+ if use manpager; then |
28 |
+ sed -i \ |
29 |
+ -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ |
30 |
+ src/man_db.conf || die |
31 |
+ fi |
32 |
|
33 |
cat > 15man-db <<-EOF || die |
34 |
SANDBOX_PREDICT="/var/cache/man" |
35 |
|
36 |
diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild |
37 |
index ef05ecd8416f..cd2743aa2ef1 100644 |
38 |
--- a/sys-apps/man-db/man-db-9999.ebuild |
39 |
+++ b/sys-apps/man-db/man-db-9999.ebuild |
40 |
@@ -131,9 +131,11 @@ src_configure() { |
41 |
econf "${myeconfargs[@]}" |
42 |
|
43 |
# Disable color output from groff so that the manpager can add it. bug #184604 |
44 |
- sed -i \ |
45 |
- -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ |
46 |
- src/man_db.conf || die |
47 |
+ if use manpager; then |
48 |
+ sed -i \ |
49 |
+ -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ |
50 |
+ src/man_db.conf || die |
51 |
+ fi |
52 |
|
53 |
cat > 15man-db <<-EOF || die |
54 |
SANDBOX_PREDICT="/var/cache/man" |