aboutsummaryrefslogtreecommitdiff
path: root/office/calibre/patches/fix-manpages.patch
blob: b9ea10be00ecd9ff4ba442343affd6f60a7ff978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naur calibre.orig/src/calibre/linux.py calibre/src/calibre/linux.py
--- calibre.orig/src/calibre/linux.py	2010-03-05 21:13:33.000000000 +0000
+++ calibre/src/calibre/linux.py	2010-03-07 00:02:26.000000000 +0000
@@ -325,7 +325,7 @@
             if isfreebsd:
                 manpath = os.path.join(self.opts.staging_root, 'man/man1')
             else:
-                manpath = os.path.join(self.opts.staging_sharedir, 'man/man1')
+                manpath = os.path.join(self.opts.staging_root, 'usr/man/man1')
             if not os.path.exists(manpath):
                 os.makedirs(manpath)
             self.info('Installing MAN pages...')
@@ -341,7 +341,7 @@
                 if isfreebsd:
                     manfile = os.path.join(manpath, prog+'.1')
                 else:
-                    manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2')
+                    manfile = os.path.join(manpath, prog+'.1'+'.bz2')
                 self.info('\tInstalling MAN page for', prog)
                 open(manfile, 'wb').write(raw)
                 self.manifest.append(manfile)