aboutsummaryrefslogtreecommitdiff
path: root/office/calibre/patches/fix-manpages.diff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-12 23:32:59 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:32:59 +0200
commit3c0d0ed10fd9d54954c21c24951aafbc00c11e0a (patch)
tree5bde069b5347a3ef5cacc9f1e34310814b0b091f /office/calibre/patches/fix-manpages.diff
parent2434206fd0ba430516f5bf6f5a8755438f5d3022 (diff)
office/calibre: Added to 12.2 repository
Diffstat (limited to 'office/calibre/patches/fix-manpages.diff')
-rw-r--r--office/calibre/patches/fix-manpages.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/office/calibre/patches/fix-manpages.diff b/office/calibre/patches/fix-manpages.diff
new file mode 100644
index 0000000000000..55e7ff8582cf7
--- /dev/null
+++ b/office/calibre/patches/fix-manpages.diff
@@ -0,0 +1,21 @@
+diff -Naur calibre-0.5.6.orig/src/calibre/linux.py calibre-0.5.6/src/calibre/linux.py
+--- calibre-0.5.6.orig/src/calibre/linux.py 2009-04-09 04:13:27.000000000 +0000
++++ calibre-0.5.6/src/calibre/linux.py 2009-04-13 22:17:10.000000000 +0000
+@@ -417,7 +417,7 @@
+ def install_man_pages(fatal_errors, use_destdir=False):
+ from calibre.utils.help2man import create_man_page
+ prefix = os.environ.get('DESTDIR', '/') if use_destdir else '/'
+- manpath = os.path.join(prefix, 'usr/share/man/man1')
++ manpath = os.path.join(prefix, 'usr/man/man1')
+ if not os.path.exists(manpath):
+ os.makedirs(manpath)
+ print 'Installing MAN pages...'
+@@ -431,7 +431,7 @@
+ continue
+ parser = parser()
+ raw = create_man_page(prog, parser)
+- manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2')
++ manfile = os.path.join(manpath, prog+'.1'+'.bz2')
+ print '\tInstalling MAN page for', prog
+ open(manfile, 'wb').write(raw)
+ manifest.append(manfile)