mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
calibre: add python-html2text dep
This commit is contained in:
parent
0f43428a36
commit
79b55d0f56
2 changed files with 35 additions and 2 deletions
27
srcpkgs/calibre/patches/disable-unrar-test.patch
Normal file
27
srcpkgs/calibre/patches/disable-unrar-test.patch
Normal file
|
@ -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()
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'calibre'
|
# Template file for 'calibre'
|
||||||
pkgname=calibre
|
pkgname=calibre
|
||||||
version=4.13.0
|
version=4.13.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=python2-module
|
build_style=python2-module
|
||||||
pycompile_dirs="/usr/lib/calibre/"
|
pycompile_dirs="/usr/lib/calibre/"
|
||||||
hostmakedepends="pkg-config python-BeautifulSoup4 python-Pillow python-PyQt5-svg
|
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-PyQt5-webengine python-PyQt5-webchannel python-Pygments python-apsw
|
||||||
python-css-parser python-cssselect python-dateutil python-dbus
|
python-css-parser python-cssselect python-dateutil python-dbus
|
||||||
python-dnspython python-feedparser python-html5-parser python-mechanize
|
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"
|
short_desc="Ebook management application"
|
||||||
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
|
@ -43,6 +44,11 @@ do_build() {
|
||||||
python2 setup.py rapydscript
|
python2 setup.py rapydscript
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# requires an X11 environment...
|
||||||
|
do_check() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/share/zsh/site-functions
|
vmkdir usr/share/zsh/site-functions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue