git: 5d6cd5d24b33 - main - textproc/py-epy-reader: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Tue, 06 Feb 2024 14:52:36 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5d6cd5d24b33e6d6bc9fe864972debf2b11e8316

commit 5d6cd5d24b33e6d6bc9fe864972debf2b11e8316
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-02-06 14:49:20 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-02-06 14:49:20 +0000

    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
---
 textproc/Makefile                |  1 +
 textproc/py-epy-reader/Makefile  | 22 ++++++++++++++++++++++
 textproc/py-epy-reader/distinfo  |  3 +++
 textproc/py-epy-reader/pkg-descr | 18 ++++++++++++++++++
 4 files changed, 44 insertions(+)

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)