From fcc010a5fa585022d22946cf13236af6a7d0b6fa 2019-06-29 18:06:49 From: Po-Chuan Hsieh Date: 2019-06-29 18:06:49 Subject: [PATCH] Fix manpage path in FreeBSD FreeBSD stores manpages under ${PREFIX}/man (defaults to /usr/local/man) rather than ${PREFIX}/share/man. --- diff --git a/setupbase.py b/setupbase.py index ea66d7d..084c341 100644 --- a/setupbase.py +++ b/setupbase.py @@ -162,7 +162,10 @@ def find_data_files(): Just man pages at this point. """ - manpagebase = pjoin('share', 'man', 'man1') + if "freebsd" in sys.platform: + manpagebase = pjoin('man', 'man1') + else: + manpagebase = pjoin('share', 'man', 'man1') # Simple file lists can be made by hand manpages = [f for f in glob(pjoin('docs','man','*.1.gz')) if isfile(f)]