aboutsummaryrefslogtreecommitdiff
path: root/office/calibre/patches/calibre-module-fix.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-15 04:26:34 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-15 04:26:34 -0500
commit4bdda09a8054e97a1535288cf41919f3b2575207 (patch)
tree133349a3c7a0a7d5a8ed66b334dc25d4a1f2b4d6 /office/calibre/patches/calibre-module-fix.patch
parent45e8294d0e6bf58b1777f07e427973bdc29ac412 (diff)
office/calibre: Updated for version 0.7.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/calibre/patches/calibre-module-fix.patch')
-rw-r--r--office/calibre/patches/calibre-module-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/office/calibre/patches/calibre-module-fix.patch b/office/calibre/patches/calibre-module-fix.patch
new file mode 100644
index 0000000000000..d2288d288e40d
--- /dev/null
+++ b/office/calibre/patches/calibre-module-fix.patch
@@ -0,0 +1,14 @@
+diff -Naur calibre.orig/setup/install.py calibre/setup/install.py
+--- calibre.orig/setup/install.py 2010-03-05 21:13:33.000000000 +0000
++++ calibre/setup/install.py 2010-03-07 00:07:41.000000000 +0000
+@@ -142,7 +142,9 @@
+
+ def install_env_module(self):
+ import distutils.sysconfig as s
+- libdir = s.get_python_lib(prefix=self.opts.staging_root)
++ libdir = s.get_python_lib(prefix=(self.opts.staging_root + sys.prefix))
++ if not os.path.exists(libdir):
++ os.makedirs(libdir)
+ if os.path.exists(libdir):
+ path = os.path.join(libdir, 'init_calibre.py')
+ self.info('Installing calibre environment module: '+path)