office/calibre: Updated for version 0.9.13.

Added a patch to remove the qt_hack module, that needs
qt private headers (not shipped with stock slackware) to build

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Larry Hajali 2013-01-06 06:54:52 +01:00 committed by dsomero
parent d016b9eef8
commit 54c929b079
3 changed files with 34 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for calibre
# Copyright 2009-2012 Larry Hajali <larryhaja[at]gmail[dot]com>
# Copyright 2009-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=calibre
VERSION=${VERSION:-0.9.11}
VERSION=${VERSION:-0.9.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -78,6 +78,9 @@ patch -p1 < $CWD/patches/calibre-module-fix.patch
patch -p1 < $CWD/patches/fix-shebangs.patch
# Make sure version string is correct.
sed -i "/^numeric_version/s|(.*)|(${VERSION//\./, })|" src/calibre/constants.py
# Don't build qt_hack. Calibre dev won't fix. Patch from AlienBob.
# https://bugs.launchpad.net/calibre/+bug/1094719
patch -p1 < $CWD/patches/calibre_noqthack.patch
OVERRIDE_CFLAGS="$SLKCFLAGS" \
OVERRIDE_LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \

View File

@ -1,8 +1,8 @@
PRGNAM="calibre"
VERSION="0.9.11"
VERSION="0.9.13"
HOMEPAGE="http://calibre-ebook.com/"
DOWNLOAD="http://downloads.sourceforge.net/calibre/calibre-0.9.11.tar.xz"
MD5SUM="07e620aed65d7bae2a27ccea123da4c9"
DOWNLOAD="http://downloads.sourceforge.net/calibre/calibre-0.9.13.tar.xz"
MD5SUM="3ad062f85eca072c3990c766bc05412a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="cssutils cssselect dnspython lxml mechanize podofo python-dateutil netifaces psutil"

View File

@ -0,0 +1,26 @@
--- calibre/setup/extensions.py.orig 2012-12-28 04:59:30.000000000 +0100
+++ calibre/setup/extensions.py 2012-12-28 23:05:09.572200438 +0100
@@ -183,13 +183,6 @@
sip_files = ['calibre/gui2/progress_indicator/QProgressIndicator.sip']
),
- Extension('qt_hack',
- ['calibre/ebooks/pdf/render/qt_hack.cpp'],
- inc_dirs = qt_private_inc + ['calibre/ebooks/pdf/render', 'qt-harfbuzz/src'],
- headers = ['calibre/ebooks/pdf/render/qt_hack.h'],
- sip_files = ['calibre/ebooks/pdf/render/qt_hack.sip']
- ),
-
Extension('unrar',
['unrar/%s.cpp'%(x.partition('.')[0]) for x in '''
rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o
--- calibre/src/calibre/constants.py.orig 2012-12-28 04:59:30.000000000 +0100
+++ calibre/src/calibre/constants.py 2012-12-28 23:07:10.690575371 +0100
@@ -100,7 +100,6 @@
'freetype',
'woff',
'unrar',
- 'qt_hack',
]
if iswindows:
plugins.extend(['winutil', 'wpd', 'winfonts'])