git: 96ce98e85d5f - main - textproc/py-markups: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 18:53:33 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=96ce98e85d5f490746ae3bfa4687097bfbd95d6b
commit 96ce98e85d5f490746ae3bfa4687097bfbd95d6b
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-05 18:40:17 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-05 18:47:21 +0000
textproc/py-markups: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
---
textproc/py-markups/Makefile | 8 ++++----
textproc/py-markups/files/patch-pyproject.toml | 11 +++++++++++
textproc/py-markups/files/setup.py | 3 ---
3 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/textproc/py-markups/Makefile b/textproc/py-markups/Makefile
index 335a972e0768..dd8a6bdfb630 100644
--- a/textproc/py-markups/Makefile
+++ b/textproc/py-markups/Makefile
@@ -1,5 +1,6 @@
PORTNAME= markups
PORTVERSION= 4.0.0
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,6 +13,8 @@ WWW= https://github.com/retext-project/pymarkups
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.2:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-markdown-math>=0:textproc/py-python-markdown-math@${PY_FLAVOR}
TEST_DEPENDS= asciidoc>=0:textproc/asciidoc \
${PYTHON_PKGNAMEPREFIX}docutils>=0,1:textproc/py-docutils@${PY_FLAVOR} \
@@ -23,11 +26,8 @@ TEST_DEPENDS= asciidoc>=0:textproc/asciidoc \
${PYTHON_PKGNAMEPREFIX}textile>=0:www/py-textile@${PY_FLAVOR}
USES= python:3.9+
-USE_PYTHON= autoplist concurrent distutils unittest
+USE_PYTHON= autoplist concurrent pep517 unittest
NO_ARCH= yes
-post-patch:
- @${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
.include <bsd.port.mk>
diff --git a/textproc/py-markups/files/patch-pyproject.toml b/textproc/py-markups/files/patch-pyproject.toml
new file mode 100644
index 000000000000..c7271453f3c7
--- /dev/null
+++ b/textproc/py-markups/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2023-01-16 19:07:22 UTC
++++ pyproject.toml
+@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+-name = "Markups"
++name = "markups"
+ description = "A wrapper around various text markups"
+ readme = "README.rst"
+ authors = [{name = "Dmitry Shachnev", email = "mitya57@gmail.com"}]
diff --git a/textproc/py-markups/files/setup.py b/textproc/py-markups/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/textproc/py-markups/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()