pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/calibre Fix build with latest py-html5lib.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fd131e0a82fb
branches: trunk
changeset: 357284:fd131e0a82fb
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Jan 17 23:19:24 2017 +0000
description:
Fix build with latest py-html5lib.
>From kleink.
diffstat:
misc/calibre/Makefile | 3 +-
misc/calibre/distinfo | 3 +-
misc/calibre/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py | 24 ++++++++++
3 files changed, 28 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r 3de67f7462c4 -r fd131e0a82fb misc/calibre/Makefile
--- a/misc/calibre/Makefile Tue Jan 17 22:57:39 2017 +0000
+++ b/misc/calibre/Makefile Tue Jan 17 23:19:24 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.165 2017/01/01 16:00:03 wiz Exp $
+# $NetBSD: Makefile,v 1.166 2017/01/17 23:19:24 wiz Exp $
DISTNAME= calibre-2.76.0
+PKGREVISION= 1
CATEGORIES= misc
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/}
MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/
diff -r 3de67f7462c4 -r fd131e0a82fb misc/calibre/distinfo
--- a/misc/calibre/distinfo Tue Jan 17 22:57:39 2017 +0000
+++ b/misc/calibre/distinfo Tue Jan 17 23:19:24 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.83 2017/01/01 16:00:03 wiz Exp $
+$NetBSD: distinfo,v 1.84 2017/01/17 23:19:24 wiz Exp $
SHA1 (calibre-2.76.0.tar.xz) = e8d7296094fd194ae94a72d29c7f7d8ed05458ec
RMD160 (calibre-2.76.0.tar.xz) = b5b1cfbc3fb03cb3db69190946236923f630bf39
@@ -6,4 +6,5 @@
Size (calibre-2.76.0.tar.xz) = 38675824 bytes
SHA1 (patch-setup_build.py) = 4a601e44fb69085c1f05ca0f90b73ce3f6d51ba6
SHA1 (patch-setup_build__environment.py) = d44460d96f9fb76cd80814a9cba8b153c52b5bfc
+SHA1 (patch-src_calibre_ebooks_oeb_polish_parsing.py) = 62d02b7b901efac6ee3bb1b6628ab99b4a13a926
SHA1 (patch-src_calibre_linux.py) = 16c3122a612ec9996f774c5c2c9d40a475723662
diff -r 3de67f7462c4 -r fd131e0a82fb misc/calibre/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py Tue Jan 17 23:19:24 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_calibre_ebooks_oeb_polish_parsing.py,v 1.1 2017/01/17 23:19:24 wiz Exp $
+
+html5lib 0.99999999 moved treebuilders._base to .base to clarify its
+status as public, and ihatexml to _ihatexml to clarify as private.
+
+--- src/calibre/ebooks/oeb/polish/parsing.py.orig 2017-01-13 03:38:35.000000000 +0000
++++ src/calibre/ebooks/oeb/polish/parsing.py
+@@ -13,8 +13,14 @@ from bisect import bisect
+ from lxml.etree import ElementBase, XMLParser, ElementDefaultClassLookup, CommentBase, fromstring, Element as LxmlElement
+
+ from html5lib.constants import namespaces, tableInsertModeElements, EOF
+-from html5lib.treebuilders._base import TreeBuilder as BaseTreeBuilder
+-from html5lib.ihatexml import InfosetFilter, DataLossWarning
++try:
++ from html5lib.treebuilders.base import TreeBuilder as BaseTreeBuilder
++except:
++ from html5lib.treebuilders._base import TreeBuilder as BaseTreeBuilder
++try:
++ from html5lib._ihatexml import InfosetFilter, DataLossWarning
++except:
++ from html5lib.ihatexml import InfosetFilter, DataLossWarning
+ from html5lib.html5parser import HTMLParser
+
+ from calibre import xml_replace_entities
Home |
Main Index |
Thread Index |
Old Index