pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/calibre1



Module Name:    pkgsrc
Committed By:   kleink
Date:           Wed Jan 18 11:07:13 UTC 2017

Modified Files:
        pkgsrc/misc/calibre1: Makefile distinfo
Added Files:
        pkgsrc/misc/calibre1/patches:
            patch-src_calibre_ebooks_oeb_polish_parsing.py

Log Message:
html5lib 0.99999999 moved treebuilders._base to .base to clarify its
status as public, and ihatexml to _ihatexml to clarify as private.
Deal with it.

(Same as for misc/calibre.)

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/misc/calibre1/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/calibre1/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/calibre1/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/calibre1/Makefile
diff -u pkgsrc/misc/calibre1/Makefile:1.22 pkgsrc/misc/calibre1/Makefile:1.23
--- pkgsrc/misc/calibre1/Makefile:1.22  Sun Jan  1 14:43:47 2017
+++ pkgsrc/misc/calibre1/Makefile       Wed Jan 18 11:07:13 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2017/01/01 14:43:47 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2017/01/18 11:07:13 kleink Exp $
 
 DISTNAME=      calibre-1.48.0
-PKGREVISION=   21
+PKGREVISION=   22
 CATEGORIES=    misc
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=calibre/}
 EXTRACT_SUFX=  .tar.xz

Index: pkgsrc/misc/calibre1/distinfo
diff -u pkgsrc/misc/calibre1/distinfo:1.2 pkgsrc/misc/calibre1/distinfo:1.3
--- pkgsrc/misc/calibre1/distinfo:1.2   Tue Nov  3 23:49:32 2015
+++ pkgsrc/misc/calibre1/distinfo       Wed Jan 18 11:07:13 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 23:49:32 agc Exp $
+$NetBSD: distinfo,v 1.3 2017/01/18 11:07:13 kleink Exp $
 
 SHA1 (calibre-1.48.0.tar.xz) = 9a466a33f5d2076d7ed7d096b5247b89a12b1625
 RMD160 (calibre-1.48.0.tar.xz) = ff8e1bf0daa3c2ec6ace3cb9280c9bca3952c8a0
@@ -9,4 +9,5 @@ RMD160 (qt-everywhere-opensource-src-4.8
 SHA512 (qt-everywhere-opensource-src-4.8.5.tar.gz) = 47118d1aa30c59a1eb74e805023cd060edcb35bb0944fe6651889254b75acbd4b83700ba92a9bc215663474d26330cb44f084098c380fac9270742659e5864eb
 Size (qt-everywhere-opensource-src-4.8.5.tar.gz) = 241491467 bytes
 SHA1 (patch-setup_extensions.py) = 285ab1aff5b0d5f7c0a016f68e705d312a120d65
+SHA1 (patch-src_calibre_ebooks_oeb_polish_parsing.py) = 581b32aa5d02b1e995bbacfd64fbc393a0af1f4d
 SHA1 (patch-src_calibre_linux.py) = 5abce220798f9a32ffda45080227a8bc937de838

Added files:

Index: pkgsrc/misc/calibre1/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py
diff -u /dev/null pkgsrc/misc/calibre1/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py:1.1
--- /dev/null   Wed Jan 18 11:07:13 2017
+++ pkgsrc/misc/calibre1/patches/patch-src_calibre_ebooks_oeb_polish_parsing.py Wed Jan 18 11:07:13 2017
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_calibre_ebooks_oeb_polish_parsing.py,v 1.1 2017/01/18 11:07:13 kleink 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      2014-08-08 03:21: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