summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-08-10 10:50:59 +0000
committer Eric Hameleers <alien@slackware.com>2012-08-10 10:50:59 +0000
commit073847c3a11334e3c7d38f9c2e9c3adc17523516 (patch)
tree82008fe4b63d54e61e7788b6f2abed637066341e
parent14cb814afc8e0c4901d7655e4b450119a5cce95b (diff)
downloadasb-073847c3a11334e3c7d38f9c2e9c3adc17523516.tar.gz
asb-073847c3a11334e3c7d38f9c2e9c3adc17523516.tar.xz
Initial revision
-rw-r--r--calibre/build/calibre_nomtp.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/calibre/build/calibre_nomtp.patch b/calibre/build/calibre_nomtp.patch
new file mode 100644
index 00000000..3fefaac5
--- /dev/null
+++ b/calibre/build/calibre_nomtp.patch
@@ -0,0 +1,38 @@
+--- calibre/setup/extensions.py 2012-08-10 05:33:57.000000000 +0200
++++ calibre.orig/setup/extensions.py 2012-08-03 06:45:28.000000000 +0200
+@@ -182,20 +174,6 @@
+ ldflags=['-framework', 'IOKit'])
+ )
+
+-if islinux:
+- extensions.append(Extension('libmtp',
+- [
+- 'calibre/devices/mtp/unix/devices.c',
+- 'calibre/devices/mtp/unix/libmtp.c'
+- ],
+- headers=[
+- 'calibre/devices/mtp/unix/devices.h',
+- 'calibre/devices/mtp/unix/upstream/music-players.h',
+- 'calibre/devices/mtp/unix/upstream/device-flags.h',
+- ],
+- libraries=['mtp']
+- ))
+-
+ if isunix:
+ cc = os.environ.get('CC', 'gcc')
+ cxx = os.environ.get('CXX', 'g++')
+--- calibre/src/calibre/constants.py 2012-08-10 05:33:57.000000000 +0200
++++ calibre.orig/src/calibre/constants.py 2012-08-03 06:45:28.000000000 +0200
+@@ -90,11 +90,9 @@
+ 'speedup',
+ ]
+ if iswindows:
+- plugins.extend(['winutil', 'wpd'])
++ plugins.append('winutil')
+ if isosx:
+ plugins.append('usbobserver')
+- if islinux:
+- plugins.append('libmtp')
+ self.plugins = frozenset(plugins)
+
+ def load_plugin(self, name):