aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2024-02-06 14:49:20 +0000
committerNicola Vitale <nivit@FreeBSD.org>2024-02-06 14:49:20 +0000
commit5d6cd5d24b33e6d6bc9fe864972debf2b11e8316 (patch)
tree93f002c51a70f66793803d361fa6abe317076f43
parentbc2df9ae4b953204916357991c7ff1c36b941663 (diff)
textproc/py-epy-reader: Add new port
TUI Ebook Reader. Main features: - Supported formats: Epub (.epub, .epub3) FictionBook (.fb2) Mobi (.mobi) AZW3 (.azw, .azw3) URL (online reading) - Reading progress percentage - Bookmarks - External dictionary integration (sdcv, dict or wkdict) - Inline formats: bold and italic (depend on terminal and font capability. Italic only supported in python>=3.7) - Text-to-Speech (with additional setup, read below) - Double Spread - Seamless (disabled by default) https://github.com/wustho/epy
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-epy-reader/Makefile22
-rw-r--r--textproc/py-epy-reader/distinfo3
-rw-r--r--textproc/py-epy-reader/pkg-descr18
4 files changed, 44 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index e702745f7781..c51bc706f8c6 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1356,6 +1356,7 @@
SUBDIR += py-empy
SUBDIR += py-enchant
SUBDIR += py-enrich
+ SUBDIR += py-epy-reader
SUBDIR += py-et_xmlfile
SUBDIR += py-evtx2splunk
SUBDIR += py-extract-msg
diff --git a/textproc/py-epy-reader/Makefile b/textproc/py-epy-reader/Makefile
new file mode 100644
index 000000000000..e20c57c0e71d
--- /dev/null
+++ b/textproc/py-epy-reader/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= epy-reader
+DISTVERSION= 2023.6.11
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= TUI Ebook Reader
+WWW= https://github.com/wustho/epy
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES= python shebangfix
+USE_PYTHON= autoplist pep517
+
+SHEBANG_FILES= ${WRKSRC}/src/epy_reader/tools/KindleUnpack/*.py
+
+.include <bsd.port.mk>
diff --git a/textproc/py-epy-reader/distinfo b/textproc/py-epy-reader/distinfo
new file mode 100644
index 000000000000..4dd3445ef51b
--- /dev/null
+++ b/textproc/py-epy-reader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707230438
+SHA256 (epy_reader-2023.6.11.tar.gz) = 81e979d377bc0d78eb3092bd969019e86c50b2b6a1297f928e2c91c0a6e22546
+SIZE (epy_reader-2023.6.11.tar.gz) = 126858
diff --git a/textproc/py-epy-reader/pkg-descr b/textproc/py-epy-reader/pkg-descr
new file mode 100644
index 000000000000..311cc2ea682f
--- /dev/null
+++ b/textproc/py-epy-reader/pkg-descr
@@ -0,0 +1,18 @@
+TUI Ebook Reader.
+
+Main features:
+
+- Supported formats:
+ Epub (.epub, .epub3)
+ FictionBook (.fb2)
+ Mobi (.mobi)
+ AZW3 (.azw, .azw3)
+ URL (online reading)
+- Reading progress percentage
+- Bookmarks
+- External dictionary integration (sdcv, dict or wkdict)
+- Inline formats: bold and italic (depend on terminal and font capability.
+ Italic only supported in python>=3.7)
+- Text-to-Speech (with additional setup, read below)
+- Double Spread
+- Seamless (disabled by default, read below)