pkgsrc/devel/bpython/patches/patch-setup.py

19 lines
541 B
Python
Raw Normal View History

2017-06-28 01:33:08 +02:00
$NetBSD: patch-setup.py,v 1.2 2017/06/27 23:33:08 wiedi Exp $
Use the same man directory across all platforms.
2017-06-28 01:33:08 +02:00
--- setup.py.orig 2016-10-10 19:21:11.000000000 +0000
+++ setup.py
@@ -185,10 +185,7 @@ if using_sphinx:
build.sub_commands.insert(0, ('build_sphinx_man', None))
cmdclass['build_sphinx_man'] = BuildDocMan
- if platform.system() in ['FreeBSD', 'OpenBSD']:
- man_dir = 'man'
- else:
- man_dir = 'share/man'
2017-06-28 01:33:08 +02:00
+ man_dir = os.environ.get('PKGMANDIR', 'man')
# manual pages
man_pages = [