git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26834 from calvertvl/upgrade-calibre-to-3.1.1

calibre: 2.84.0 -> 3.1.1

commitbc488d4cb5379abd0b0b1e0ebad89c9b0a4cec14 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 25 Jun 2017, 10:22 (9 years ago) parentf506b72e600317
2 files changed+7−34
pkgs/applications/misc/calibre/default.nix+3−8 pkgs/applications/misc/calibre/dont_build_unrar_plugin.patch+4−26
pkgs/applications/misc/calibre/default.nix+3−8
@@ -5,29 +5,23 @@
55}:
66
77stdenv.mkDerivation rec {
8− version = "2.84.0";
8+ version = "3.1.1";
99 name = "calibre-${version}";
1010
1111 src = fetchurl {
1212 url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz";
13− sha256 = "1kvnmb6hsby4bdnx70bcy32f4dz1axzlr310dr6mkvnc8bqw59km";
13+ sha256 = "1lh1gz0915r49igfhy1icz79qx36s3d8m32qlih0g3zn7jahp86g";
1414 };
1515
1616 patches = [
1717 # Patches from Debian that:
1818 # - disable plugin installation (very insecure)
19− # - disables loading of web bug for privacy
2019 # - switches the version update from enabled to disabled by default
2120 (fetchpatch {
2221 name = "disable_plugins.patch";
2322 url = "http://bazaar.launchpad.net/~calibre-packagers/calibre/debian/download/head:/disable_plugins.py-20111220183043-dcl08ccfagjxt1dv-1/disable_plugins.py";
2423 sha256 = "19spdx52dhbrfn9lm084yl3cfwm6f90imd51k97sf7flmpl569pk";
2524 })
26− (fetchpatch {
27− name = "links_privacy.patch";
28− url = "http://bazaar.launchpad.net/~calibre-packagers/calibre/debian/download/head:/linksprivacy.patch-20160417214308-6hvive72pc0r4awc-1/links-privacy.patch";
29− sha256 = "0f6pq2b7q56pxrq2j8yqd7bksc623q2zgq29qcli30f13vga1w60";
30− })
3125 (fetchpatch {
3226 name = "no_updates_dialog.patch";
3327 url = "http://bazaar.launchpad.net/~calibre-packagers/calibre/debian/download/head:/no_updates_dialog.pa-20081231120426-rzzufl0zo66t3mtc-16/no_updates_dialog.patch";
@@ -57,6 +51,7 @@ stdenv.mkDerivation rec {
5751 ] ++ (with python2Packages; [
5852 apsw cssselect cssutils dateutil lxml mechanize netifaces pillow
5953 python pyqt5 sip
54+ regex msgpack
6055 # the following are distributed with calibre, but we use upstream instead
6156 chardet cherrypy html5lib_0_9999999 odfpy routes
6257 ]);
pkgs/applications/misc/calibre/dont_build_unrar_plugin.patch+4−26
@@ -1,34 +1,12 @@
1−diff --git a/setup/extensions.json b/setup/extensions.json
2−index 1f6d1fb..1273904 100644
3−--- a/setup/extensions.json
4−+++ b/setup/extensions.json
5−@@ -211,16 +211,5 @@
6− "sources": "calibre/devices/mtp/unix/devices.c calibre/devices/mtp/unix/libmtp.c",
7− "headers": "calibre/devices/mtp/unix/devices.h calibre/devices/mtp/unix/upstream/music-players.h calibre/devices/mtp/unix/upstream/device-flags.h",
8− "libraries": "mtp"
9−- },
10−- {
11−- "name": "unrar",
12−- "sources": "unrar/rar.cpp unrar/strlist.cpp unrar/strfn.cpp unrar/pathfn.cpp unrar/savepos.cpp unrar/smallfn.cpp unrar/global.cpp unrar/file.cpp unrar/filefn.cpp unrar/filcreat.cpp unrar/archive.cpp unrar/arcread.cpp unrar/unicode.cpp unrar/system.cpp unrar/isnt.cpp unrar/crypt.cpp unrar/crc.cpp unrar/rawread.cpp unrar/encname.cpp unrar/resource.cpp unrar/match.cpp unrar/timefn.cpp unrar/rdwrfn.cpp unrar/consio.cpp unrar/options.cpp unrar/ulinks.cpp unrar/errhnd.cpp unrar/rarvm.cpp unrar/secpassword.cpp unrar/rijndael.cpp unrar/getbits.cpp unrar/sha1.cpp unrar/extinfo.cpp unrar/extract.cpp unrar/volume.cpp unrar/list.cpp unrar/find.cpp unrar/unpack.cpp unrar/cmddata.cpp unrar/filestr.cpp unrar/scantree.cpp calibre/utils/unrar.cpp",
13−- "inc_dirs": "unrar",
14−- "defines": "SILENT RARDLL UNRAR _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE",
15−- "windows_defines": "SILENT RARDLL UNRAR",
16−- "haiku_defines": "LITTLE_ENDIAN SILENT RARDLL UNRAR _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _BSD_SOURCE",
17−- "haiku_libraries": "bsd",
18−- "optimize_level": 2,
19−- "windows_libraries": "User32 Advapi32 kernel32 Shell32"
20− }
21− ]
221diff --git a/src/calibre/ebooks/metadata/archive.py b/src/calibre/ebooks/metadata/archive.py
232index 938ab24..1e095f8 100644
243--- a/src/calibre/ebooks/metadata/archive.py
254+++ b/src/calibre/ebooks/metadata/archive.py
26−@@ -44,7 +44,7 @@ class ArchiveExtract(FileTypePlugin):
27− description = _('Extract common e-book formats from archives '
28− '(zip/rar) files. Also try to autodetect if they are actually '
29− 'cbz/cbr files.')
5+@@ -44,7 +44,7 @@
6+ description = _('Extract common e-book formats from archive files '
7+ '(ZIP/RAR). Also try to autodetect if they are actually '
8+ 'CBZ/CBR files.')
309- file_types = set(['zip', 'rar'])
3110+ file_types = set(['zip'])
3211 supported_platforms = ['windows', 'osx', 'linux']
3312 on_import = True
34−