Skip to content

Commit

Permalink
textproc/py-markups: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for dependency and package change
  • Loading branch information
sunpoet committed Jun 5, 2023
1 parent f9098a1 commit 96ce98e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions 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}
Expand All @@ -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} \
Expand All @@ -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>
11 changes: 11 additions & 0 deletions 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"}]
3 changes: 0 additions & 3 deletions textproc/py-markups/files/setup.py

This file was deleted.

0 comments on commit 96ce98e

Please sign in to comment.