From 7f89ab41cdd72799845afc689bf77ad33a779970 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 8 Dec 2013 20:43:29 -0200 Subject: calibre-libre-1.14.0-1: updating version --- libre/calibre-libre/desktop_integration.patch | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'libre/calibre-libre/desktop_integration.patch') diff --git a/libre/calibre-libre/desktop_integration.patch b/libre/calibre-libre/desktop_integration.patch index 2c6f07672..2749e1d1c 100644 --- a/libre/calibre-libre/desktop_integration.patch +++ b/libre/calibre-libre/desktop_integration.patch @@ -1,6 +1,7 @@ ---- a/src/calibre/linux.py 2013-03-01 05:49:28.000000000 +0100 -+++ b/src/calibre/linux.py 2013-03-03 14:53:05.000000000 +0100 -@@ -447,19 +447,6 @@ +diff -aur calibre/src/calibre/linux.py calibre.new/src/calibre/linux.py +--- calibre/src/calibre/linux.py 2013-12-06 05:13:34.000000000 +0100 ++++ calibre.new/src/calibre/linux.py 2013-12-08 20:30:59.097240827 +0100 +@@ -451,18 +451,6 @@ self.setup_completion() if islinux or isbsd: self.setup_desktop_integration() @@ -16,11 +17,10 @@ - shutil.rmtree(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)) - for args, kwargs in self.warnings: -@@ -508,7 +495,7 @@ +@@ -513,7 +501,7 @@ if isnetbsd: f = os.path.join(self.opts.staging_root, 'share/bash_completion.d/calibre') else: @@ -29,7 +29,7 @@ if not os.path.exists(os.path.dirname(f)): os.makedirs(os.path.dirname(f)) if zsh.dest: -@@ -651,63 +638,39 @@ +@@ -657,48 +645,28 @@ with TemporaryDirectory() as tdir, CurrentDir(tdir), \ PreserveMIMEDefaults(): @@ -57,6 +57,9 @@ - render_img('viewer.png', 'calibre-viewer.png') - cc('xdg-icon-resource install --size 128 calibre-viewer.png calibre-viewer', shell=True) - self.icon_resources.append(('apps', 'calibre-viewer', '128')) +- render_img('tweak.png', 'calibre-ebook-tweak.png') +- cc('xdg-icon-resource install --size 128 calibre-ebook-tweak.png calibre-ebook-tweak', shell=True) +- self.icon_resources.append(('apps', 'calibre-ebook-tweak', '128')) + dir = os.path.join(self.opts.staging_sharedir,'../pixmaps') + os.mkdir(dir) + render_img('mimetypes/lrf.png', os.path.join(dir,'calibre-lrf.png')) @@ -73,6 +76,7 @@ def write_mimetypes(f): f.write('MimeType=%s;\n'%';'.join(mimetypes)) + from calibre.ebooks.oeb.polish.main import SUPPORTED - f = open('calibre-lrfviewer.desktop', 'wb') + dir = os.path.join(self.opts.staging_sharedir,'../applications') + os.mkdir(dir) @@ -83,6 +87,10 @@ + f = open(os.path.join(dir, 'calibre-ebook-viewer.desktop'), 'wb') f.write(EVIEWER) write_mimetypes(f) + f = open('calibre-ebook-tweak.desktop', 'wb') +@@ -706,22 +674,15 @@ + mt = [guess_type('a.' + x.lower())[0] for x in SUPPORTED] + f.write('MimeType=%s;\n'%';'.join(mt)) f.close() - f = open('calibre-gui.desktop', 'wb') + f = open(os.path.join(dir, 'calibre-gui.desktop'), 'wb') @@ -90,7 +98,7 @@ write_mimetypes(f) f.close() - des = ('calibre-gui.desktop', 'calibre-lrfviewer.desktop', -- 'calibre-ebook-viewer.desktop') +- 'calibre-ebook-viewer.desktop', 'calibre-ebook-tweak.desktop') - for x in des: - cmd = ['xdg-desktop-menu', 'install', '--noupdate', './'+x] - cc(' '.join(cmd), shell=True) -- cgit v1.2.3