mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
devel/py-yaml:
- Add LICENSE_FILE - Switch to options helpers - Strip library - Add support for tests Add devel/py3-yaml python3 counterpart of this port PR: 212692 Submitted by: amdmi3 Approved by: maintainer timeout (jpaetzel, 2 weeks)
This commit is contained in:
parent
ba6465bb3f
commit
061617f378
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422821
@ -4690,6 +4690,7 @@
|
||||
SUBDIR += py3-threema-msgapi
|
||||
SUBDIR += py3-vcversioner
|
||||
SUBDIR += py3-xdg
|
||||
SUBDIR += py3-yaml
|
||||
SUBDIR += py_static_check
|
||||
SUBDIR += pybugz
|
||||
SUBDIR += pychecker
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= yaml
|
||||
PORTVERSION= 3.11
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -12,30 +13,36 @@ 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
|
||||
USES?= python
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
post-install:
|
||||
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
|
||||
.endif
|
||||
|
||||
.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>
|
||||
|
7
devel/py3-yaml/Makefile
Normal file
7
devel/py3-yaml/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../py-yaml
|
||||
|
||||
USES= python:3.1+
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
Loading…
x
Reference in New Issue
Block a user