summaryrefslogtreecommitdiff
path: root/x11-misc/arandr/files/arandr-0.1.10-manpages.patch
blob: 8e02c4928f365b873afa1185c008fc089c665a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/setup.py
+++ b/setup.py
@@ -101,8 +101,8 @@
         self.mkpath('build')
 
         for (sourcefile, gzfile) in [
-                ('data/arandr.1.txt', os.path.join('build', 'arandr.1.gz')),
-                ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1.gz')),
+                ('data/arandr.1.txt', os.path.join('build', 'arandr.1')),
+                ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1')),
                 ]:
 
             if newer(sourcefile, gzfile):
@@ -111,7 +111,7 @@
                 info('compressing man page to %s', gzfile)
 
                 if not self.dry_run:
-                    compressed = gzip.open(gzfile, 'w', 9)
+                    compressed = open(gzfile, 'wb')
                     compressed.write(manpage)
                     compressed.close()
 
@@ -259,7 +259,7 @@
             },
         data_files = [
             ('share/applications', ['data/arandr.desktop']), # FIXME: use desktop-file-install?
-            ('share/man/man1', ['build/arandr.1.gz', 'build/unxrandr.1.gz']),
+            ('share/man/man1', ['build/arandr.1', 'build/unxrandr.1']),
             ],
         scripts = ['arandr', 'unxrandr'],
 )