On Wed, Mar 10, 2021 at 07:59:08PM +0100, Caspar Schutijser wrote:
> When attempting to convert a PDF to EPUB with the "Heuristic processing"
> feature enabled, the conversion fails with the message that html2text
> is not installed. This diff fixes the issue.
>
> I can trigger the problem as follows:
> import a PDF; right-click the newly imported item; select
> "Convert books" > "Convert individually". Then go to the
> "Heuristic processing" tab and check the "Enable heuristic processing"
> checkbox. Click OK; after a while, it errors out.
>
> I don't have much experience with ports that use Python so not sure
> if my diff is 100% correct.
tb@ kindly informed me I forgot to include the actual diff; apologies.
Diff below.
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/calibre/Makefile,v
retrieving revision 1.85
diff -u -p -r1.85 Makefile
--- Makefile 28 Feb 2021 21:01:59 -0000 1.85
+++ Makefile 10 Mar 2021 18:57:31 -0000
@@ -4,6 +4,7 @@ COMMENT = ebook management application
V = 5.12.0
DISTNAME = calibre-$V
+REVISION = 0
CATEGORIES = textproc
@@ -61,6 +62,7 @@ BUILD_DEPENDS = ${COMMON_DEPENDS} \
sysutils/py-packaging${MODPY_FLAVOR}
RUN_DEPENDS = ${COMMON_DEPENDS} \
+ converters/py-html2text${MODPY_FLAVOR} \
devel/desktop-file-utils \
misc/shared-mime-info \
net/py-netifaces${MODPY_FLAVOR} \