diff --git a/srcpkgs/calibre/patches/disable-unrar-test.patch b/srcpkgs/calibre/patches/disable-unrar-test.patch new file mode 100644 index 00000000000..bcbe25335a3 --- /dev/null +++ b/srcpkgs/calibre/patches/disable-unrar-test.patch @@ -0,0 +1,27 @@ +Source: Debian + +--- + src/calibre/test_build.py | 5 +++++ + 1 file changed, 5 insertions(+) + +--- src/calibre/test_build.py ++++ src/calibre/test_build.py +@@ -17,6 +17,10 @@ from polyglot.builtins import iteritems, + + is_ci = os.environ.get('CI', '').lower() == 'true' + ++try: ++ import unrardll ++except: ++ unrardll = None + + class BuildTest(unittest.TestCase): + +@@ -265,6 +269,7 @@ class BuildTest(unittest.TestCase): + from calibre.gui2.win_file_dialogs import test + test() + ++ @unittest.skipUnless(unrardll, 'Module unrardll is missing') + def test_unrar(self): + from calibre.utils.unrar import test_basic + test_basic() diff --git a/srcpkgs/calibre/template b/srcpkgs/calibre/template index 0d07182a036..f9ae0a5923b 100644 --- a/srcpkgs/calibre/template +++ b/srcpkgs/calibre/template @@ -1,7 +1,7 @@ # Template file for 'calibre' pkgname=calibre version=4.13.0 -revision=2 +revision=3 build_style=python2-module pycompile_dirs="/usr/lib/calibre/" hostmakedepends="pkg-config python-BeautifulSoup4 python-Pillow python-PyQt5-svg @@ -16,7 +16,8 @@ depends="desktop-file-utils optipng poppler-utils python-BeautifulSoup4 python-PyQt5-webengine python-PyQt5-webchannel python-Pygments python-apsw python-css-parser python-cssselect python-dateutil python-dbus python-dnspython python-feedparser python-html5-parser python-mechanize - python-msgpack python-netifaces python-psutil python-regex qt5-webengine" + python-msgpack python-netifaces python-psutil python-regex python-html2text + qt5-webengine" short_desc="Ebook management application" maintainer="bra1nwave " license="GPL-3.0-only" @@ -43,6 +44,11 @@ do_build() { python2 setup.py rapydscript } +# requires an X11 environment... +do_check() { + : +} + do_install() { vmkdir usr/share/zsh/site-functions