bec9e30e50
https://github.com/yaml/pyyaml/blob/5.1/announcement.msg ======================= Announcing PyYAML-5.1 ======================= A new MAJOR RELEASE of PyYAML is now available: https://pypi.org/project/PyYAML/ This is the first major release of PyYAML under the new maintenance team. Among the many changes listed below, this release specifically addresses the arbitrary code execution issue raised by: https://nvd.nist.gov/vuln/detail/CVE-2017-18342 (See https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation for complete details). ... PR: 237501 Reported by: sergey@akhmatov.ru
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: ijliao@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yaml
|
|
PORTVERSION= 5.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyYAML-${PORTVERSION}
|
|
|
|
MAINTAINER= jpaetzel@FreeBSD.org
|
|
COMMENT= Python YAML parser
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
OPTIONS_DEFINE= LIBYAML EXAMPLES
|
|
LIBYAML_DESC= Use textproc/libyaml for faster parsing
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
.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
|
|
LIB_DEPENDS+= libyaml.so:textproc/libyaml
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_yaml.so
|
|
.else
|
|
PYDISTUTILS_SETUP+= --without-libyaml
|
|
NO_ARCH= yes
|
|
.endif
|
|
|
|
post-install-EXAMPLES-on:
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|