diff --git a/devel/py-flufl.i18n/Makefile b/devel/py-flufl.i18n/Makefile index 1142f6d62c8f..64ad05d759f8 100644 --- a/devel/py-flufl.i18n/Makefile +++ b/devel/py-flufl.i18n/Makefile @@ -1,24 +1,39 @@ PORTNAME= flufl.i18n DISTVERSION= 6.0.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:tl:C|[-_.]+|_|g}-${DISTVERSION} MAINTAINER= acm@FreeBSD.org COMMENT= High-level API for Python internationalization WWW= https://flufli18n.readthedocs.io LICENSE= APACHE20 BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atpublic>=0:devel/py-atpublic@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}diff-cover>=0:devel/py-diff-cover@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sybil>=0:devel/py-sybil@${PY_FLAVOR} USES= python USE_PYTHON= autoplist pep517 pytest NO_ARCH= yes +# remove the following blocks after setuptools/python.mk update +# incorporating the period (.) portion of name normalisation +# https://packaging.python.org/en/latest/specifications/name-normalization/ +# https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode +PEP517_INSTALL_CMD= ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} \ + ${BUILD_WRKSRC}/dist/${PORTNAME:tl:C|[-_.]+|_|g}-${DISTVERSION}*.whl && \ + ${CP} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/flufl_i18n-${DISTVERSION}.dist-info/RECORD \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/flufl.i18n-${DISTVERSION}.dist-info/RECORD + +pre-install: + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/flufl.i18n-${DISTVERSION}.dist-info + +post-install: + ${RM} -r ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/flufl.i18n-${DISTVERSION}.dist-info + .include diff --git a/devel/py-flufl.i18n/files/patch-pyproject.toml b/devel/py-flufl.i18n/files/patch-pyproject.toml deleted file mode 100644 index bd17e88eca82..000000000000 --- a/devel/py-flufl.i18n/files/patch-pyproject.toml +++ /dev/null @@ -1,14 +0,0 @@ -remove after setuptools/python.mk update incorporating the period (.) portion of name normalisation - -https://packaging.python.org/en/latest/specifications/name-normalization/ -https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode - ---- pyproject.toml.orig 2020-02-02 00:00:00 UTC -+++ pyproject.toml -@@ -1,5 +1,5 @@ - [project] --name = 'flufl.i18n' -+name = 'flufl-i18n' - authors = [ - {name = 'Barry Warsaw', email = 'barry@python.org'}, - ]