git: 7ab6a568f37a - main - textproc/py-pyexcel-xls: Add py-pyexcel-xls 0.6.2

Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed Jul 14 16:16:34 UTC 2021


The branch main has been updated by sunpoet:

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

commit 7ab6a568f37aeec1fe369172170fcc39fd1c688d
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-14 15:48:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-07-14 16:09:38 +0000

    textproc/py-pyexcel-xls: Add py-pyexcel-xls 0.6.2
    
    pyexcel-xls is a tiny wrapper library to read, manipulate and write data in xls
    format and it can read xlsx and xlsm fromat. You are likely to use it with
    pyexcel.
    
    WWW: https://github.com/pyexcel/pyexcel-xls
---
 textproc/Makefile                            |  1 +
 textproc/py-pyexcel-xls/Makefile             | 24 ++++++++++++++++++++++++
 textproc/py-pyexcel-xls/distinfo             |  3 +++
 textproc/py-pyexcel-xls/files/patch-setup.py | 11 +++++++++++
 textproc/py-pyexcel-xls/pkg-descr            |  5 +++++
 5 files changed, 44 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 967ef58e7652..a5193951a3fb 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1373,6 +1373,7 @@
     SUBDIR += py-pyexcel-ezodf
     SUBDIR += py-pyexcel-io
     SUBDIR += py-pyexcel-ods3
+    SUBDIR += py-pyexcel-xls
     SUBDIR += py-pygccxml
     SUBDIR += py-pygments
     SUBDIR += py-pygments-25
diff --git a/textproc/py-pyexcel-xls/Makefile b/textproc/py-pyexcel-xls/Makefile
new file mode 100644
index 000000000000..9914554ceec8
--- /dev/null
+++ b/textproc/py-pyexcel-xls/Makefile
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME=	pyexcel-xls
+PORTVERSION=	0.6.2
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	Read, manipulate and write data in xls format
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyexcel-io>=0.6.2:textproc/py-pyexcel-io@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xlrd>=0:textproc/py-xlrd@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xlwt>=0:textproc/py-xlwt@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-pyexcel-xls/distinfo b/textproc/py-pyexcel-xls/distinfo
new file mode 100644
index 000000000000..7ab86fb1c663
--- /dev/null
+++ b/textproc/py-pyexcel-xls/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1625585436
+SHA256 (pyexcel-xls-0.6.2.tar.gz) = 2fbf66e8df88051eaaa9745be433903d18db819ddd3a987c992ead1d68b7feb5
+SIZE (pyexcel-xls-0.6.2.tar.gz) = 54339
diff --git a/textproc/py-pyexcel-xls/files/patch-setup.py b/textproc/py-pyexcel-xls/files/patch-setup.py
new file mode 100644
index 000000000000..734ef40dc381
--- /dev/null
+++ b/textproc/py-pyexcel-xls/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2020-12-12 22:34:25 UTC
++++ setup.py
+@@ -69,7 +69,7 @@ PYTHON_REQUIRES = ">=3.6"
+ 
+ INSTALL_REQUIRES = [
+     "pyexcel-io>=0.6.2",
+-    "xlrd<2",
++    "xlrd",
+     "xlwt",
+ ]
+ SETUP_COMMANDS = {}
diff --git a/textproc/py-pyexcel-xls/pkg-descr b/textproc/py-pyexcel-xls/pkg-descr
new file mode 100644
index 000000000000..ea46ffa380f0
--- /dev/null
+++ b/textproc/py-pyexcel-xls/pkg-descr
@@ -0,0 +1,5 @@
+pyexcel-xls is a tiny wrapper library to read, manipulate and write data in xls
+format and it can read xlsx and xlsm fromat. You are likely to use it with
+pyexcel.
+
+WWW: https://github.com/pyexcel/pyexcel-xls


More information about the dev-commits-ports-main mailing list