mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 16:43:17 -04:00
Include a patch to disable compressing manpage with gzip at build time. Closes: https://bugs.gentoo.org/780960 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
32 lines
1019 B
Diff
32 lines
1019 B
Diff
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -3,7 +3,6 @@
|
|
from distutils.core import setup
|
|
import distutils.core
|
|
from distutils.command import build, install_data
|
|
-import gzip
|
|
import os.path
|
|
import sys
|
|
|
|
@@ -29,9 +28,9 @@
|
|
def build_man_page(self):
|
|
"""
|
|
"""
|
|
- man_path = os.path.join(self.build_base, 'osc.1.gz')
|
|
+ man_path = os.path.join(self.build_base, 'osc.1')
|
|
distutils.log.info('generating %s' % man_path)
|
|
- outfile = gzip.open(man_path, 'wt')
|
|
+ outfile = open(man_path, 'w')
|
|
osccli = commandline.Osc(stdout=outfile)
|
|
# FIXME: we cannot call the main method because osc expects an ~/.oscrc
|
|
# file (this would break builds in environments like the obs)
|
|
@@ -100,7 +99,7 @@
|
|
|
|
data_files = []
|
|
if sys.platform[:3] != 'win':
|
|
- data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
|
|
+ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1']))
|
|
|
|
with open("README") as fh:
|
|
long_description = fh.read()
|