summaryrefslogtreecommitdiff
path: root/deskutils/calibre/files/patch-src_calibre_linux.py
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-10-12 11:59:01 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-10-12 11:59:01 +0000
commitdfabbc95ca4338d767011b24fe5af0f3402cc1d6 (patch)
tree97c6382c07f8c84fc2fb777942d6dd8284cd3624 /deskutils/calibre/files/patch-src_calibre_linux.py
parent- Remove the patch which is required for upcoming GNOME 2.28 only (diff)
- Add deskutils/calibre, a ebook management application.
Author: Kovid Goyal <kovid@kovidgoyal.net> WWW: http://calibre.kovidgoyal.net/
Diffstat (limited to '')
-rw-r--r--deskutils/calibre/files/patch-src_calibre_linux.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/deskutils/calibre/files/patch-src_calibre_linux.py b/deskutils/calibre/files/patch-src_calibre_linux.py
new file mode 100644
index 000000000000..5614a76e87c2
--- /dev/null
+++ b/deskutils/calibre/files/patch-src_calibre_linux.py
@@ -0,0 +1,40 @@
+--- src/calibre/linux.py.orig 2009-10-10 06:15:01.000000000 +0400
++++ src/calibre/linux.py 2009-10-12 14:10:34.000000000 +0400
+@@ -128,10 +128,7 @@
+ self.icon_resources = []
+ self.menu_resources = []
+ self.mime_resources = []
+- self.setup_completion()
+- self.setup_udev_rules()
+ self.install_man_pages()
+- self.setup_desktop_integration()
+ self.create_uninstaller()
+
+ from calibre.utils.config import config_dir
+@@ -140,8 +137,6 @@
+ for f in os.listdir('.'):
+ if os.stat(f).st_uid == 0:
+ os.rmdir(f) if os.path.isdir(f) else os.unlink(f)
+- if os.stat(config_dir).st_uid == 0:
+- os.rmdir(config_dir)
+
+ if warn is None and self.warnings:
+ self.info('There were %d warnings'%len(self.warnings))
+@@ -319,7 +314,7 @@
+ def install_man_pages(self):
+ try:
+ from calibre.utils.help2man import create_man_page
+- manpath = os.path.join(self.opts.staging_sharedir, 'man/man1')
++ manpath = os.path.join(self.opts.staging_root, 'man/man1')
+ if not os.path.exists(manpath):
+ os.makedirs(manpath)
+ self.info('Installing MAN pages...')
+@@ -332,7 +327,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')
+ self.info('\tInstalling MAN page for', prog)
+ open(manfile, 'wb').write(raw)
+ self.manifest.append(manfile)