$OpenBSD: patch-mesonbuild_scripts_meson_install_py,v 1.3 2018/03/12 07:44:14 ajacoutot Exp $

Do not install compressed manpages

Index: mesonbuild/scripts/meson_install.py
--- mesonbuild/scripts/meson_install.py.orig
+++ mesonbuild/scripts/meson_install.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import sys, pickle, os, shutil, subprocess, gzip, platform, errno
+import sys, pickle, os, shutil, subprocess, platform, errno
 import shlex
 from glob import glob
 from . import depfixer
@@ -242,16 +242,7 @@ def install_man(d):
         outdir = os.path.dirname(outfilename)
         d.dirmaker.makedirs(outdir, exist_ok=True)
         print('Installing %s to %s' % (full_source_filename, outdir))
-        if outfilename.endswith('.gz') and not full_source_filename.endswith('.gz'):
-            with open(outfilename, 'wb') as of:
-                with open(full_source_filename, 'rb') as sf:
-                    # Set mtime and filename for reproducibility.
-                    with gzip.GzipFile(fileobj=of, mode='wb', filename='', mtime=0) as gz:
-                        gz.write(sf.read())
-            shutil.copystat(full_source_filename, outfilename)
-            append_to_log(outfilename)
-        else:
-            do_copyfile(full_source_filename, outfilename)
+        do_copyfile(full_source_filename, outfilename)
 
 def install_headers(d):
     for t in d.headers:
