ports/audio/xmms2/patches/patch-waftools_man_py

34 lines
931 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Bypass the gzip function that compress man files.
--- waftools/man.py.orig Thu Oct 20 21:26:08 2011
+++ waftools/man.py Tue May 8 12:50:16 2012
@@ -24,11 +24,11 @@ def gzip_func(task):
if outf:
outf.close()
-Task.task_factory('man', gzip_func, color='BLUE')
-
@feature('man')
@before_method('process_source')
def process_man(self):
+ def empty(x):
+ pass
source = self.to_nodes(getattr(self, 'source', []))
self.source = []
@@ -43,13 +43,7 @@ def process_man(self):
if not s:
raise Errors.BuildError('cannot determine man section from filename')
- out = self.path.find_or_declare(node.name + '.gz')
-
- tsk = self.create_task('man')
- tsk.set_inputs(node)
- tsk.set_outputs(out)
-
- self.bld.install_files('${MANDIR}/man%s' % s, out)
+ self.bld.install_files('${MANDIR}/man%s' % s, node)
def configure(conf):