1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/deskutils/calibre/files/patch-src_calibre_linux.py
Guido Falsi bee7994781 - Update calibre to 3.15.0
- Avoid packaging mime database auto generated files

This version enables MTP devices support on FreeBSD.

Many thanks to cem@ for reporting the lack of support, doing most
of the coding, taking care of upstreaming patches and testing. Also
thanks for reminding me to fix the mime database problem!

PR:		224580
Submitted by:	cem@
2018-01-06 09:26:24 +00:00

39 lines
1.3 KiB
Python

--- src/calibre/linux.py.orig 2018-01-05 05:41:54 UTC
+++ src/calibre/linux.py
@@ -841,7 +841,7 @@ class PostInstall:
f.close()
des = ('calibre-gui.desktop', 'calibre-lrfviewer.desktop',
'calibre-ebook-viewer.desktop', 'calibre-ebook-edit.desktop')
- appdata = os.path.join(os.path.dirname(self.opts.staging_sharedir), 'metainfo')
+ appdata = os.path.join(os.path.dirname(self.opts.staging_sharedir), 'appdata')
if not os.path.exists(appdata):
try:
os.mkdir(appdata)
@@ -1008,7 +1008,7 @@ Name=E-book Viewer
GenericName=Viewer for E-books
Comment=Viewer for E-books in all the major formats
TryExec=ebook-viewer
-Exec=ebook-viewer --detach %f
+Exec=ebook-viewer %f
Icon=calibre-viewer
Categories=Graphics;Viewer;
'''
@@ -1021,7 +1021,7 @@ Name=E-book Editor
GenericName=Editor for E-books
Comment=Edit E-books in various formats
TryExec=ebook-edit
-Exec=ebook-edit --detach %f
+Exec=ebook-edit %f
Icon=calibre-ebook-edit
Categories=Office;
'''
@@ -1034,7 +1034,7 @@ Name=calibre
GenericName=E-book library management
Comment=E-book library management: Convert, view, share, catalogue all your e-books
TryExec=calibre
-Exec=calibre --detach %F
+Exec=calibre %F
Icon=calibre-gui
Categories=Office;
'''