git: f484396210f0 - main - devel/py-pycocotools: Add py-pycocotools 2.0.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 18:30:23 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f484396210f0f4e9725fac690350f1fafcba801e commit f484396210f0f4e9725fac690350f1fafcba801e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-08-16 18:06:35 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-08-16 18:25:06 +0000 devel/py-pycocotools: Add py-pycocotools 2.0.6 pycocotools is a fork of the original cocoapi, with bug fixes and packaging improvements. Changes in this fork include: - Add CircleCI tests - Support pip-installation correctly - Support windows - Don't import matplotlib unless needed - Close file handle after openning - Fix a small bug in rleToBbox - Fix a segfault in RLE decoding - Fix deprecated usage of other libraries For compatibility, we will not make any API changes or non-bug behavior changes to the existing APIs of the official cocoapi. --- devel/Makefile | 1 + devel/py-pycocotools/Makefile | 25 +++++++++++++++++++++++++ devel/py-pycocotools/distinfo | 3 +++ devel/py-pycocotools/files/patch-pyproject.toml | 11 +++++++++++ devel/py-pycocotools/pkg-descr | 15 +++++++++++++++ 5 files changed, 55 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0d8973db6a7b..741bb7fff9fc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5240,6 +5240,7 @@ SUBDIR += py-pycapsicum SUBDIR += py-pycerberus SUBDIR += py-pycmd + SUBDIR += py-pycocotools SUBDIR += py-pycodeexport SUBDIR += py-pycodestyle SUBDIR += py-pycognito diff --git a/devel/py-pycocotools/Makefile b/devel/py-pycocotools/Makefile new file mode 100644 index 000000000000..cb396b665965 --- /dev/null +++ b/devel/py-pycocotools/Makefile @@ -0,0 +1,25 @@ +PORTNAME= pycocotools +PORTVERSION= 2.0.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Official APIs for the MS-COCO dataset +WWW= https://github.com/ppwwyyxx/cocoapi/tree/master/PythonAPI + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=43.0.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=2.1.0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent cython pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/devel/py-pycocotools/distinfo b/devel/py-pycocotools/distinfo new file mode 100644 index 000000000000..2debc1a8cf66 --- /dev/null +++ b/devel/py-pycocotools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069896 +SHA256 (pycocotools-2.0.6.tar.gz) = 7fe089b05cc18e806dcf3bd764708d86dab922a100f3734eb77fb77a70a1d18c +SIZE (pycocotools-2.0.6.tar.gz) = 24100 diff --git a/devel/py-pycocotools/files/patch-pyproject.toml b/devel/py-pycocotools/files/patch-pyproject.toml new file mode 100644 index 000000000000..99b5925c9fe1 --- /dev/null +++ b/devel/py-pycocotools/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2022-11-04 06:39:37 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ + [build-system] + requires = [ + "cython>=0.27.3", +- "oldest-supported-numpy", ++ "numpy", + "setuptools>=43.0.0", + "wheel", + ] diff --git a/devel/py-pycocotools/pkg-descr b/devel/py-pycocotools/pkg-descr new file mode 100644 index 000000000000..a36f506b80db --- /dev/null +++ b/devel/py-pycocotools/pkg-descr @@ -0,0 +1,15 @@ +pycocotools is a fork of the original cocoapi, with bug fixes and packaging +improvements. + +Changes in this fork include: +- Add CircleCI tests +- Support pip-installation correctly +- Support windows +- Don't import matplotlib unless needed +- Close file handle after openning +- Fix a small bug in rleToBbox +- Fix a segfault in RLE decoding +- Fix deprecated usage of other libraries + +For compatibility, we will not make any API changes or non-bug behavior changes +to the existing APIs of the official cocoapi.