Subject: [PATCH] main/mandoc: add /usr/local/share/man to MANPATH

From: [email-masked]
Date: Wed, 15 Sep 2021 16:06:53 -0300

From: Nulo <[email-masked]>

This allows seeing the man pages of things installed to /usr/local.
---
 main/mandoc/APKBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main/mandoc/APKBUILD b/main/mandoc/APKBUILD
index 1058e8da87..b725ddcdf7 100644
--- a/main/mandoc/APKBUILD
+++ b/main/mandoc/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=mandoc
 pkgver=1.14.5
-pkgrel=5
+pkgrel=6
 pkgdesc="mandoc (formerly mdocml) UNIX manpage compiler toolset"
 url="https://mandoc.bsd.lv/"
 arch="all"
@@ -27,11 +27,11 @@ prepare() {
 
 	cat >configure.local<<-__EOF__
 	PREFIX=/usr
-	MANDIR=/usr/share/man
+	MANDIR=/usr/share/man:/usr/local/share/man
 	LIBDIR=/usr/lib
 	CFLAGS="$CFLAGS"
 	UTF8_LOCALE="en_US.UTF-8"
-	MANPATH_DEFAULT="/usr/share/man:/usr/local/man"
+	MANPATH_DEFAULT="/usr/share/man:/usr/local/man:/usr/local/share/man"
 	MANPATH_BASE="/usr/share/man"
 	LN="ln -sf"
 	HAVE_LESS_T=0
-- 
2.33.0