You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/gramps/files/gramps-4.2.8-uncompressed-d...

34 lines
1.2 KiB

diff --git a/setup.py b/setup.py
index 0177ce7..7aaa681 100644
--- a/setup.py
+++ b/setup.py
@@ -160,27 +160,8 @@ def build_man(build_cmd):
subst_vars = (('@VERSION@', VERSION), )
substitute_variables(filename, newfile, subst_vars)
- import gzip
- man_file_gz = os.path.join(newdir, 'gramps.1.gz')
- if os.path.exists(man_file_gz):
- if newer(filename, man_file_gz):
- os.remove(man_file_gz)
- else:
- filename = False
- os.remove(newfile)
-
- if filename:
- #Binary io, so open is OK
- with open(newfile, 'rb') as f_in,\
- gzip.open(man_file_gz, 'wb') as f_out:
- f_out.writelines(f_in)
- log.info('Compiling %s >> %s', filename, man_file_gz)
-
- os.remove(newfile)
- filename = False
-
lang = man_dir[8:]
- src = build_cmd.build_base + '/data/man/' + lang + '/gramps.1.gz'
+ src = build_cmd.build_base + '/data/man/' + lang + '/gramps.1'
target = 'share/man/' + lang + '/man1'
data_files.append((target, [src]))