summaryrefslogtreecommitdiff
path: root/textproc/py-sphinx-inline-tabs
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-22 02:48:43 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-22 03:21:23 +0800
commitb58796e739ff0eb6a77db1df42f1d7ef151c7c68 (patch)
tree460c798f3e9a6152959c38588fb9bea10299d349 /textproc/py-sphinx-inline-tabs
parenttextproc/py-sphinx-examples: Convert to USE_PYTHON=pep517 (diff)
textproc/py-sphinx-inline-tabs: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
Diffstat (limited to 'textproc/py-sphinx-inline-tabs')
-rw-r--r--textproc/py-sphinx-inline-tabs/Makefile7
-rw-r--r--textproc/py-sphinx-inline-tabs/files/setup.py34
2 files changed, 3 insertions, 38 deletions
diff --git a/textproc/py-sphinx-inline-tabs/Makefile b/textproc/py-sphinx-inline-tabs/Makefile
index 635061e0c012..455d226c3e11 100644
--- a/textproc/py-sphinx-inline-tabs/Makefile
+++ b/textproc/py-sphinx-inline-tabs/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sphinx-inline-tabs
PORTVERSION= 2022.1.2b11
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +13,11 @@ WWW= https://github.com/pradyunsg/sphinx-inline-tabs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=3,1:textproc/py-sphinx@${PY_FLAVOR}
USES= python:3.7+
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
@@ -25,7 +27,4 @@ NO_ARCH= yes
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
.endif
-post-patch:
- @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
.include <bsd.port.post.mk>
diff --git a/textproc/py-sphinx-inline-tabs/files/setup.py b/textproc/py-sphinx-inline-tabs/files/setup.py
deleted file mode 100644
index 395ea6b275e9..000000000000
--- a/textproc/py-sphinx-inline-tabs/files/setup.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['sphinx_inline_tabs']
-
-package_data = \
-{'': ['*'], 'sphinx_inline_tabs': ['static/*']}
-
-package_dir = \
-{'': 'src'}
-
-install_requires = \
-['sphinx >= 3']
-
-extras_require = \
-{'doc': ['myst-parser', 'furo'],
- 'test': ['pytest', 'pytest-cov', 'pytest-xdist']}
-
-setup(name='sphinx_inline_tabs',
- version='%%PORTVERSION%%',
- description='Add inline tabbed content to your Sphinx documentation.',
- author='Pradyun Gedam',
- author_email='mail@pradyunsg.me',
- url='https://github.com/pradyunsg/sphinx-inline-tabs',
- packages=packages,
- package_data=package_data,
- package_dir=package_dir,
- install_requires=install_requires,
- extras_require=extras_require,
- python_requires='>=3.7',
- )