git: ed2846c0431a - main - textproc/py-pyxlsb2: Add py-pyxlsb2 0.0.9

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:30:48 UTC
The branch main has been updated by sunpoet:

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

commit ed2846c0431aa13b41dfe67f78c47988591b0350
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:33 +0000

    textproc/py-pyxlsb2: Add py-pyxlsb2 0.0.9
    
    pyxlsb2 (a variant of pyxlsb) is an Excel 2007+ Binary Workbook (xlsb) parser
    written in Python.
    
    pyxslb2 offers the following improvements/changes in comparison to pyxlsb:
    - By default, keeps all data in memory instead of creating temporary files. This
      is mainly to speed up the processing and also not changing the local file
      system during the processing.
    - relies on both "xl\workbook.bin" and "xl\_rels\workbook.bin.rels" to load
      locate boundsheets. As a result, it can load all worksheets as well as all
      macrosheets.
    - extracts macro formulas:
      - accurately shows the formulas
      - supports A1 addressing
      - supports external addressing (partially implemented))
    - extracts defined names such as auto_open
    
    WWW: https://github.com/DissectMalware/pyxlsb2
---
 textproc/Makefile             |  1 +
 textproc/py-pyxlsb2/Makefile  | 18 ++++++++++++++++++
 textproc/py-pyxlsb2/distinfo  |  3 +++
 textproc/py-pyxlsb2/pkg-descr | 17 +++++++++++++++++
 4 files changed, 39 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index b94469e3d373..84007e05cff9 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1465,6 +1465,7 @@
     SUBDIR += py-pytkdocs
     SUBDIR += py-pytoml
     SUBDIR += py-pyx12
+    SUBDIR += py-pyxlsb2
     SUBDIR += py-qrcode
     SUBDIR += py-rdflib
     SUBDIR += py-readchar
diff --git a/textproc/py-pyxlsb2/Makefile b/textproc/py-pyxlsb2/Makefile
new file mode 100644
index 000000000000..7ed313007e34
--- /dev/null
+++ b/textproc/py-pyxlsb2/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	pyxlsb2
+PORTVERSION=	0.0.9
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Excel 2007+ Binary Workbook (xlsb) parser
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.5+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-pyxlsb2/distinfo b/textproc/py-pyxlsb2/distinfo
new file mode 100644
index 000000000000..d105646928e9
--- /dev/null
+++ b/textproc/py-pyxlsb2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576694
+SHA256 (pyxlsb2-0.0.9.tar.gz) = 7746c4ce999714957409fd6a446499fee7a1528ea6e0f40f8ca4aed90c4cd488
+SIZE (pyxlsb2-0.0.9.tar.gz) = 37003
diff --git a/textproc/py-pyxlsb2/pkg-descr b/textproc/py-pyxlsb2/pkg-descr
new file mode 100644
index 000000000000..6c56703ad1d8
--- /dev/null
+++ b/textproc/py-pyxlsb2/pkg-descr
@@ -0,0 +1,17 @@
+pyxlsb2 (a variant of pyxlsb) is an Excel 2007+ Binary Workbook (xlsb) parser
+written in Python.
+
+pyxslb2 offers the following improvements/changes in comparison to pyxlsb:
+- By default, keeps all data in memory instead of creating temporary files. This
+  is mainly to speed up the processing and also not changing the local file
+  system during the processing.
+- relies on both "xl\workbook.bin" and "xl\_rels\workbook.bin.rels" to load
+  locate boundsheets. As a result, it can load all worksheets as well as all
+  macrosheets.
+- extracts macro formulas:
+  - accurately shows the formulas
+  - supports A1 addressing
+  - supports external addressing (partially implemented))
+- extracts defined names such as auto_open
+
+WWW: https://github.com/DissectMalware/pyxlsb2