devel/py-pyyaml5: Add py-pyyaml5 5.4.1 (copied from py-yaml)

- Add CONFLICTS_INSTALL
- Add PORTSCOUT
This commit is contained in:
Po-Chuan Hsieh 2023-01-31 07:48:59 +08:00
parent 95dfbfd1a1
commit 4398982683
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 72 additions and 0 deletions

View File

@ -5287,6 +5287,7 @@
SUBDIR += py-pyvisa-py
SUBDIR += py-pyxb
SUBDIR += py-pyyaml-include
SUBDIR += py-pyyaml5
SUBDIR += py-pyyaml_env_tag
SUBDIR += py-pyzipper
SUBDIR += py-q

50
devel/py-pyyaml5/Makefile Normal file
View File

@ -0,0 +1,50 @@
PORTNAME= pyyaml
PORTVERSION= 5.4.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 5
DISTNAME= PyYAML-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
COMMENT= Python YAML parser
WWW= https://pyyaml.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.6+
USE_PYTHON= autoplist concurrent cython distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}yaml
PORTSCOUT= limit:^5\.
OPTIONS_DEFINE= LIBYAML EXAMPLES
OPTIONS_DEFAULT=LIBYAML
LIBYAML_DESC= Use textproc/libyaml for faster parsing
LIBYAML_LIB_DEPENDS= libyaml.so:textproc/libyaml
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MLIBYAML}
PYDISTUTILS_SETUP+= --with-libyaml
PYDISTUTILS_BUILD_TARGET= build_ext
PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include \
--library-dirs=${LOCALBASE}/lib
.else
PYDISTUTILS_SETUP+= --without-libyaml
NO_ARCH= yes
.endif
post-install-EXAMPLES-on:
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
post-install-LIBYAML-on:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/yaml/_yaml*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1622221237
SHA256 (PyYAML-5.4.1.tar.gz) = 607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e
SIZE (PyYAML-5.4.1.tar.gz) = 175147

View File

@ -0,0 +1,14 @@
PyYAML is a YAML parser and emitter for the Python programming language.
PyYAML features:
* a complete YAML 1.1 parser. In particular, PyYAML can parse all examples
from the specification. The parsing algorithm is simple enough to be a
reference for YAML parser implementors.
* Unicode support including UTF-8/UTF-16 input/output and \u escape
sequences.
* low-level event-based parser and emitter API (like SAX).
* high-level API for serializing and deserializing native Python objects
(like DOM or pickle).
* support for all types from the YAML types repository. A simple extension
API is provided.
* relatively sensible error messages.

View File

@ -0,0 +1,4 @@
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pygments-lexer/example.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pygments-lexer/yaml.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yaml-highlight/yaml_hl.cfg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yaml-highlight/yaml_hl.py