diff --git a/textproc/Makefile b/textproc/Makefile index a580342d3798..1d57ff36c178 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1338,6 +1338,7 @@ SUBDIR += py-asonic SUBDIR += py-autopep8 SUBDIR += py-awesome-slugify + SUBDIR += py-backrefs SUBDIR += py-bibtexparser SUBDIR += py-bracex SUBDIR += py-cchardet diff --git a/textproc/py-backrefs/Makefile b/textproc/py-backrefs/Makefile new file mode 100644 index 000000000000..7dab29e80fb8 --- /dev/null +++ b/textproc/py-backrefs/Makefile @@ -0,0 +1,29 @@ +PORTNAME= backrefs +DISTVERSION= 5.8 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Wrapper around re and regex that adds additional back references +WWW= https://github.com/facelessuser/backrefs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0.21.1:devel/py-hatchling@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 pytest + +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +OPTIONS_DEFINE= EXTRAS +OPTIONS_DEFAULT= EXTRAS + +EXTRAS_DESC= Support for bregex (a wrapper for the external Regex library) +EXTRAS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOR} + +.include diff --git a/textproc/py-backrefs/distinfo b/textproc/py-backrefs/distinfo new file mode 100644 index 000000000000..551bb31115c3 --- /dev/null +++ b/textproc/py-backrefs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1741278890 +SHA256 (backrefs-5.8.tar.gz) = 2cab642a205ce966af3dd4b38ee36009b31fa9502a35fd61d59ccc116e40a6bd +SIZE (backrefs-5.8.tar.gz) = 6773994 diff --git a/textproc/py-backrefs/pkg-descr b/textproc/py-backrefs/pkg-descr new file mode 100644 index 000000000000..f2403b684b28 --- /dev/null +++ b/textproc/py-backrefs/pkg-descr @@ -0,0 +1,8 @@ +Backrefs is a wrapper around Python's built-in Re and the 3rd party Regex +library. + +Backrefs adds various additional back references (and a couple other features) +that are known to some regular expression engines, but not to Python's Re +and/or Regex. The supported back references actually vary depending on the +regular expression engine being used as the engine may already have support for +some.